Zeldaboy111

Spell Roulatie ]|[ Skript #310

May 10th, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
  2. #- Do not edit it and upload it as your own
  3. #- While using it in a video, please feature everything under "Video"
  4. #
  5. #Video:
  6. #Skript made by Zeldaboy111
  7. #More content of the creator: https://forums.skunity.com/search/26443679/
  8.  
  9. options:
  10. logo: &a&lWands &8:&7
  11.  
  12. function checkSpell(p: Player, wand: String, spellAmount: Number, spell: String):
  13. set {_spells::*} to {_spell} split at ", "
  14.  
  15. if {wands.%{_p}%.spellSelected::%{_wand}%} is not set:
  16. set {wands.%{_p}%.spellSelected::%{_wand}%} to 1
  17. send "{@logo} Spell &2&l%{_spells::1}% &7Selected!" to {_p}
  18.  
  19. if {wands.%{_p}%.spellSelected::%{_wand}%} < {_spellAmount}:
  20. send "{@logo} Spell &2&l%{_spells::%{wands.%{_p}%.spellSelected::%{_wand}%}%}% &7Selected!" to {_p}
  21. add 1 to {wands.%{_p}%.spellSelected::%{_wand}%}
  22. else:
  23. send "{@logo} Spell &2&l%{_spells::%{wands.%{_p}%.spellSelected::%{_wand}%}%}% &7Selected!" to {_p}
  24. set {wands.%{_p}%.spellSelected::%{_wand}%} to 1
  25.  
  26. command /wands [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
  27. aliases: /wand
  28. trigger:
  29. if executor is not a player:
  30. send "{@logo} This command can only be executed by a player."
  31.  
  32. if player has permission "wand.*":
  33. if arg-1 is "help":
  34. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  35. send "<ttp:&7Get a guide about this Skript><sgt:/wand guide>&2/wand guide [page]"
  36. send "<ttp:&7Get a list of all wands><sgt:/wand list>&2/wand list"
  37. send "<ttp:&7Get a list of all spells><sgt:/wand spells><sgt:/wand spells>&2/wand spells [wand]"
  38. send "<ttp:&7Get a wand><sgt:/wand get >&2/wand get <wand>"
  39. send "%nl%&7Try clicking and hovering over them."
  40. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  41.  
  42. else if arg-1 is "guide":
  43. if arg-2 is "1":
  44. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  45. 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."
  46. 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."
  47. send "%nl%&7Next Page <ttp:&7Next Page><cmd:/wands guide 2>&a>>"
  48. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  49.  
  50. else if arg-2 is "2":
  51. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  52. send "&a&lGetting a Wand&8:%nl% "
  53. 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."
  54. send "%nl%&a&lUsing a Wand&8:"
  55. send "%nl%&7Every player can use a wand. The controls are as follows&8:%nl%"
  56. send "&8♦ &aLeft-Click &8|| &7Left-Clicking will execute the spell."
  57. send "&8♦ &aRight-Click &8|| &7Right-Clicking will let you cycle through all spells."
  58. send "%nl%<ttp:&7Next Page><cmd:/wands guide 1>&a<<&r &7Previous Page"
  59. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  60.  
  61. else:
  62. execute player command "/wand guide 1"
  63.  
  64. else if arg-1 is "list":
  65. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  66. send "&7These are all current wands:%nl%"
  67. 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"
  68. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  69.  
  70. else if arg-1 is "get":
  71. if arg-2 is "ice":
  72. give player an iron axe named "&bIce Wand" with lore "&5&kl"
  73. else if arg-2 is "mobility":
  74. give player a feather named "&7Mobility Wand" with lore "&5&kl"
  75.  
  76. else if arg-1 is "spells":
  77. if arg-2 is "ice":
  78. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  79. send "&8♦ <ttp:&7Damages your opponent>&2&lIce Spark"
  80. send "&8♦ <ttp:&7Summon a snake to attack your opponent>&2&lIce Snake"
  81. #Freeze spell??
  82. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  83.  
  84. else if arg-2 is "mobility":
  85. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  86. send "&8♦ <ttp:&7Teleports you to a location>&2&lTeleport"
  87. send "&8♦ <ttp:&7Makes you fast and agile>&2&lAssassin"
  88. #Other player teleport
  89. send "%nl%&8&m &8[ &a&lWands &8]&m %nl% "
  90.  
  91. else:
  92. if arg-2 is set:
  93. send "{@logo} Invalid Wand! Do <sgt:&7Click to Execute><cmd:/wand list>&2/wand list &r&7for a full list with all wands."
  94. else:
  95. send "{@logo} Incorrect Usage! &2/wand spells <wand>&7."
  96. else:
  97. send "{@logo} Incorrect Usage! Do <ttp:&7Click to Execute><cmd:/wand help>&2/wand help&r &7for more info."
  98.  
  99. on right click:
  100. if player is holding an iron axe named "&bIce Wand" with lore "&5&kl":
  101. checkSpell(player, "IceWand", 2, "Ice Spark, Ice Snake")
  102.  
  103. else if player is holding a feather named "&7Mobility Wand" with lore "&5&kl":
  104. checkSpell(player, "MobilityWand", 2, "Teleport, Assasin")
Add Comment
Please, Sign In to add comment