Give player potions

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

iStopcontact

Member
Feb 18, 2017
115
2
18
Hello, I want to give players potions when they select a kit on my kitpvp server.
I have created more kits, but now i also have a kit with multiple potions Splash and Lingering potions.

Can someone maybe help me with this?
 
@Snow-Pyon How can i add in my skript that i can give player potions?

For example this is one of my kits:
code_language.skript:
            send "{@PVP} &a&lNecromancer &7kit selected" to arg 2
            clear arg 2's inventory
            play raw sound "note.pling" at arg 2 with pitch 1 volume 0.1
            give 1 golden sword of sharpness 1, unbreaking 3 to arg 2
            give 2 skeleton spawn egg to arg 2
            give 2 spider spawn egg to arg 2
            give 1 diamond sword to arg 2
            give 5 zombie spawn egg to arg 2
            give 1 zombie pigman spawn egg to arg 2
            equip arg 2 with chainmail Helmet of unbreaking 1
            equip arg 2 with leather ChestPlate of unbreaking 1
            equip arg 2 with chainmail Leggings of unbreaking 1
            equip arg 2 with leather Boots of unbreaking 1
            dye player's chestplate (127, 63, 178)
            dye player's boots (127, 63, 178)
            set durability of diamond sword to 1

But i also have a kit where player's have potions but i dont know how to do that
 
First of all, I'll quote this:
Tip:
The equip and give (aka add) effect has support for multiple objects at the same time, which let you to do the following:
code_language.skript:
add 1 stone, 1 bow and 8 arrows to the player
And:
code_language.skript:
equip player with iron helmet, chainmail chestplate, leather leggings and leather boots

And you should be able to do this with the QuarSK, ask @Syst3ms for that.
 
Yhea i saw that code, but how can i enchant the items when i do it that way @Snow-Pyon
code_language.skript:
equip player with chainmail helmet of unbreaking 1, leather chestplate of unbreaking 1, chainmail leggings of unbreaking 1 and leather boots of unbreaking 1
 
Status
Not open for further replies.