Advertisement
Zeldaboy111

Skript Tutorial #60

Dec 12th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. options:
  2. {spells::wands::lightningwand::%player%} = {spells::wands::lightningwand::%loop-player%}
  3. {spells::wands::lightningspark::%player%} = {spells::wands::lightningspark::%loop-player%}
  4. {spells::wands::lightning::%player%} = {spells::wands::lightning::%loop-player%}
  5. {spellpoints::wands::lightningspark::%player%} = {spellpoints::wands::lightningspark::%loop-player%}
  6. {spells::wands::lightningspark::%player%} = {spells::wands::lightningspark::%arg 2%}
  7. {spells::wands::lightning::%player%} = {spells::wands::lightning::%arg 2%}
  8.  
  9. on enable:
  10. set {text::wands::title} to "&3[&bWands&3]"
  11. set {text::wands::helpemessage} to "%{text::wands::title}% &4Doe &c/wand help &4om de help pagina te krijgen."
  12. set {text::wands::nep} to "%{text::wands::title}% &4Je hebt &convoldoende permissies &4om deze command uit te voeren."
  13. set {text::wands::gbw} to "%{text::wands::title}% &4Deze wand bestaat niet, doe &c/wand get list &4om de wandlist te krijgen."
  14.  
  15. on join:
  16. if {spellpoints::wands::lightningspark::%player%} is not set:
  17. set {spellpoints::wands::lightningspark::%player%} to 0
  18.  
  19. command /wand [<text>] [<text>] [<text>] [<number>]:
  20. trigger:
  21. if player has permission "wand.get" OR "wand.*":
  22.  
  23. if arg 1 is "help":
  24. send "&b============%{text::wands::title}%&b============"
  25. send "&b/wand help &7&k::&f &3Krijg een help bericht in de chat."
  26. send "&b/wand get list &7&k::&f &3Krijg een lijst met alle wands."
  27. send "&b/wand get [wandnaam] &7&k::&f &3Krijg een wand."
  28. send "&b/wand set [speler] [spell] [aantal spellpoints] &7&k::&f &3Zet de spellpoints van een speler naar het aantal opgegeven spellpoints."
  29. send "&b/wand reset [speler] [all/spell] &7&k::&f &3Reset de spellpoints van de opgegeven speler."
  30. send "&b============%{text::wands::title}%&b============"
  31. stop
  32.  
  33. if arg 1 is "set":
  34. if arg 2 is set:
  35. if arg 3 is set:
  36. if "%{spells::wands::list::*}%" contains arg 3:
  37. if arg 4 is set:
  38. send "%{text::wands::title}% &3Succesvol toegepast:"
  39. send "&3Spellpoints van: &b%arg 2%"
  40. send "&3Voor de spell: &b%arg 3%"
  41. send "&3Gezet naar: &b%arg 4%"
  42. stop
  43. else:
  44. send "%{text::wands::title}% &4Je moet nog een &caantal spellpoints &4invullen."
  45. stop
  46.  
  47. else:
  48. send "%{text::wands::title}% &4Dit is geen bestaande spell."
  49. stop
  50.  
  51. else:
  52. send "%{text::wands::title}% &4Je moet nog een &cspell &4opgeven."
  53. stop
  54.  
  55. else:
  56. send "%{text::wands::title}% &4Doe &c/wand set [speler] [spell] [aantal spellpoints]&4."
  57. stop
  58.  
  59. if arg 1 is "reset":
  60. if arg 2 is set:
  61. if arg 3 is set:
  62. if arg 3 is "all":
  63. send "%{text::wands::title}% &3Alle spells zijn gereset van &b%arg 2%"
  64. set {spellpoints::wands::lightningspark::%arg 2%} to 0
  65. set {spellpoints::wands::lightning::%arg 2%} to 0
  66. stop
  67.  
  68. if {spells::wands::list::*} contains arg 3:
  69. send "%{text::wands::title}% &3Alle spells zijn gereset van &b%arg 2%"
  70. set {spellpoints::wands::%arg 3%::%arg 2%} to 0
  71. stop
  72.  
  73. else:
  74. send "%{text::wands::title}% &4Dit is geen bestaande spell."
  75. stop
  76.  
  77.  
  78. if arg 1 is "get":
  79.  
  80. if arg 2 is "list":
  81. send "%{text::wands::title}% &3Dit is de lijst met alle wands:"
  82. send "%{text::wands::title}% &bLightning"
  83. stop
  84.  
  85. if arg 2 is "Lightning":
  86. send "%{text::wands::title}% &3Veel plezier met je &b&lLightning Wand&3."
  87. give player a blaze rod named "&b&lLightning Wand" with lore "&5&kl"
  88. stop
  89.  
  90. else:
  91. send "%{text::wands::gbw}%"
  92. stop
  93.  
  94. else:
  95. send "%{text::wands::helpemessage}%"
  96. stop
  97.  
  98. else:
  99. send "%{text::wands::nep}%"
  100. stop
  101.  
  102.  
  103. on leftclick:
  104. if player is in world "Kingdom":
  105. if player is holding a blaze rod named "&b&lLightning Wand" with lore "&5&kl":
  106. if {spells::wands::lightningwand::%player%} is 1:
  107. if {spellpoints::wands::lightningspark::%player%} is not 10:
  108. chance of 10%:
  109. create an explosion of force 2 at the targeted block
  110. create an explosion of force 1 at the player
  111. chance of 5%:
  112. spawn 1 zombie at location of player
  113. chance of 25%:
  114. add 1 to {spellpoints::wands::lightningspark::%player%}
  115. send "&b[&3Spells&b] &3Je hebt &b&l1 spellpoint &3gekregen."
  116.  
  117.  
  118.  
  119. on leftclick:
  120. if player is in world "Kingdom":
  121. if player is holding a blaze rod named "&b&lLightning Wand" with lore "&5&kl":
  122. if {spells::wands::lightningwand::%player%} is 1:
  123. if {spellpoints::wands::lightningspark::%player%} is 10:
  124. if {spells::wands::lightningspark::%player%} is 0:
  125. show 50 "magical_crit" particles at location of targeted block for player offset by 0.5, 0.5, 0.5
  126. damage targeted entity by 2 hearts
  127. set {spells::wands::lightningspark::%player%} to 5
  128. stop
  129.  
  130. else:
  131. send "&b[&3Spells&b] &3Je hebt nog een cooldown van &b&l%{spells::wands::lightningspark::%player%}%"
  132. stop
  133.  
  134.  
  135. if {spells::wands::lightningwand::%player%} is 0:
  136. if {spellpoints::wands::lightning::%player%} is 20:
  137. if {spells::wands::lightning::%player%} is 0:
  138. strike lightning at the targeted block
  139. set {spells::wands::lightning::%player%} to 10
  140. stop
  141.  
  142. else:
  143. send "&b[&3Spells&b] &3Je hebt nog een cooldown van &b&l%{spells::wands::lightning::%player%}%"
  144. stop
  145.  
  146. on rightclick:
  147. if player is in world "Kingdom":
  148. if player is holding a blaze rod named "&b&lLightning Wand" with lore "&5&kl":
  149. if {spells::wands::lightningwand::%player%} is not set:
  150. set {spells::wands::lightningwand::%player%} to 1
  151. send "&b[&3Spells&b] &b&lLightning Spark"
  152. stop
  153.  
  154. if {spells::wands::lightningwand::%player%} is 0:
  155. set {spells::wands::lightningwand::%player%} to 1
  156. send "&b[&3Spells&b] &b&lLightning Spark"
  157. stop
  158.  
  159. if {spells::wands::lightningwand::%player%} is 1:
  160. set {spells::wands::lightningwand::%player%} to 0
  161. send "&b[&3Spells&b] &b&lLightning"
  162. stop
  163.  
  164.  
  165. every 1 second:
  166. loop all players in world "Kingdom":
  167.  
  168. if {spells::wands::lightningspark::%loop-player%} is not set:
  169. set {spells::wands::lightningspark::%loop-player%} to 0
  170.  
  171. if {spells::wands::lightning::%loop-player%} is not set:
  172. set {spells::wands::lightning::%loop-player%} to 0
  173.  
  174. if {spells::wands::lightningspark::%loop-player%} is more than 0:
  175. remove 1 from {spells::wands::lightningspark::%loop-player%}
  176. if {spells::wands::lightning::%loop-player%} is more than 0:
  177.  
  178. remove 1 from {spells::wands::lightning::%loop-player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement