Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #©
- #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
- #- Do not edit it and upload it as your own
- #- While using it in a video, please feature everything under "Video"
- #©
- #
- #Video:
- #Skript made by Zeldaboy111
- #More content of the creator: https://forums.skunity.com/search/26443679/
- options:
- logo: &a&lWands &8:&7
- function checkSpell(p: Player, wand: String, spellAmount: Number, spell: String):
- set {_spells::*} to {_spell} split at ", "
- if {wands.%{_p}%.spellSelected::%{_wand}%} is not set:
- set {wands.%{_p}%.spellSelected::%{_wand}%} to 1
- send "{@logo} Spell &2&l%{_spells::1}% &7Selected!" to {_p}
- if {wands.%{_p}%.spellSelected::%{_wand}%} < {_spellAmount}:
- send "{@logo} Spell &2&l%{_spells::%{wands.%{_p}%.spellSelected::%{_wand}%}%}% &7Selected!" to {_p}
- add 1 to {wands.%{_p}%.spellSelected::%{_wand}%}
- else:
- send "{@logo} Spell &2&l%{_spells::%{wands.%{_p}%.spellSelected::%{_wand}%}%}% &7Selected!" to {_p}
- set {wands.%{_p}%.spellSelected::%{_wand}%} to 1
- command /wands [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
- aliases: /wand
- trigger:
- if executor is not a player:
- send "{@logo} This command can only be executed by a player."
- if player has permission "wand.*":
- if arg-1 is "help":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "<ttp:&7Get a guide about this Skript><sgt:/wand guide>&2/wand guide [page]"
- send "<ttp:&7Get a list of all wands><sgt:/wand list>&2/wand list"
- send "<ttp:&7Get a list of all spells><sgt:/wand spells><sgt:/wand spells>&2/wand spells [wand]"
- send "<ttp:&7Get a wand><sgt:/wand get >&2/wand get <wand>"
- send "%nl%&7Try clicking and hovering over them."
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-1 is "guide":
- if arg-2 is "1":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&7The Wands Skript is user friendly, herefore there are added some tweaks for you to use. In this guide there will be explained how it works."
- send "&7Wands can be used by any player when it is given to them. The command execution has a <ttp:&7wand.*>&2permission&r&7, so not every player can get a wand by using this command."
- send "%nl%&7Next Page <ttp:&7Next Page><cmd:/wands guide 2>&a>>"
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-2 is "2":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&a&lGetting a Wand&8:%nl% "
- send "&7Getting a wand can be done in two ways, either by executing the <ttp:&7Click to Autofill><sgt:/wand get <wand>>&2get-command &r&7or by clicking the <ttp:&7Click to Autofill><sgt:/wand list>&2Wands List&7."
- send "%nl%&a&lUsing a Wand&8:"
- send "%nl%&7Every player can use a wand. The controls are as follows&8:%nl%"
- send "&8♦ &aLeft-Click &8|| &7Left-Clicking will execute the spell."
- send "&8♦ &aRight-Click &8|| &7Right-Clicking will let you cycle through all spells."
- send "%nl%<ttp:&7Next Page><cmd:/wands guide 1>&a<<&r &7Previous Page"
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else:
- execute player command "/wand guide 1"
- else if arg-1 is "list":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&7These are all current wands:%nl%"
- send "&8♦ <ttp:&7Click to Get><cmd:/wand get ice>&2&lIce Wand &8|| <ttp:&7Click to get the Spell List><cmd:/wand spells ice>&2Spell List%nl%&8♦ <ttp:&7Click to Get><cmd:/wand get mobility>&2&lMobility Wand &8|| <ttp:&7Click to get the Spell List><cmd:/wand spells mobility>&2Spell List"
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-1 is "get":
- if arg-2 is "ice":
- give player an iron axe named "&bIce Wand" with lore "&5&kl"
- else if arg-2 is "mobility":
- give player a feather named "&7Mobility Wand" with lore "&5&kl"
- else if arg-1 is "spells":
- if arg-2 is "ice":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&8♦ <ttp:&7Damages your opponent>&2&lIce Spark"
- send "&8♦ <ttp:&7Summon a snake to attack your opponent>&2&lIce Snake"
- #Freeze spell??
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else if arg-2 is "mobility":
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- send "&8♦ <ttp:&7Teleports you to a location>&2&lTeleport"
- send "&8♦ <ttp:&7Makes you fast and agile>&2&lAssassin"
- #Other player teleport
- send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
- else:
- if arg-2 is set:
- send "{@logo} Invalid Wand! Do <sgt:&7Click to Execute><cmd:/wand list>&2/wand list &r&7for a full list with all wands."
- else:
- send "{@logo} Incorrect Usage! &2/wand spells <wand>&7."
- else:
- send "{@logo} Incorrect Usage! Do <ttp:&7Click to Execute><cmd:/wand help>&2/wand help&r &7for more info."
- on right click:
- if player is holding an iron axe named "&bIce Wand" with lore "&5&kl":
- checkSpell(player, "IceWand", 2, "Ice Spark, Ice Snake")
- else if player is holding a feather named "&7Mobility Wand" with lore "&5&kl":
- checkSpell(player, "MobilityWand", 2, "Teleport, Assasin")
Add Comment
Please, Sign In to add comment