Advertisement
Zeldaboy111

Skript Tutorial #57

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