Zeldaboy111

Spell Roulatie ]|[ Skript #310

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