Advertisement
Zeldaboy111

Skript Tutorial #59

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