Advertisement
Zeldaboy111

Skript Tutorial #58

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