Advertisement
Zeldaboy111

Skript Tutorial #20 Actionbar voor de wands!

Oct 4th, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.10 KB | None | 0 0
  1. options:
  2. {IceWandP::IceSparkSpell::%player%} = {IceWandP::IceSparkSpell::%arg 3%}
  3. {IceWandP::IceSparkSpell::%player%} = {IceWandP::IceSparkSpell::%loop-player%}
  4. {IceWandP::IceExplosionSpell::%player%} = {IceWandP::IceExplosionSpell::%arg 3%}
  5. {IceWandP::IceExplosionSpell::%player%} = {IceWandP::IceExplosionSpell::%loop-player%}
  6.  
  7. {IceWandS::Spells::%player%} = {IceWandS::Spells::%loop-player%}
  8.  
  9. {IceWandS::IceSparkSpell::cooldown::%player%} = {IceWandS::IceSparkSpell::cooldown::%loop-player%}
  10. {IceWandS::IceExplosionSpell::cooldown::%player%} =- {IceWandS::IceExplosionSpell::cooldown::%loop-player%}
  11.  
  12. on join:
  13. if {IceWandS::Spells:%player%} is not set:
  14. set {IceWandS::Spells::%player%} to 0
  15.  
  16. if {IceWandP::IceSparkSpell::%player%} is not set:
  17. set {IceWandP::IceSparkSpell::%player%} to 0
  18. if {IceWandP::IceExplosionSpell::%player%} is not set:
  19. set {IceWandP::IceExplosionSpell::%player%} to 0
  20.  
  21. if {IceWandS::IceExplosionSpell::cooldown::%player%} is not set:
  22. set {IceWandS::IceExplosionSpell::cooldown::%player%} to 0
  23. if {IceWandS::IceSparkSpell::cooldown::%player%} is not set:
  24. set {iceWandS::IceSparkSpell::cooldown::%player%} to 0
  25.  
  26. command /wand [<text>] [<text>] [<offline player>]:
  27. trigger:
  28. if player has permission "wand.*" OR "wand.getwand":
  29. if arg 1 is "help":
  30. send "&e=======<&6Wands Help&e>======="
  31. send "&e/wand help &6Krijg meer informatie over de commands."
  32. send "&e/wand info &6Krijg meer informatie over de skript."
  33. send "&e/wand list &6Krijg een lijst met alle wands."
  34. send "&e======<&6Pagina 1/1&e>======"
  35. stop
  36. if arg 1 is "info":
  37. send "&e=======<&6Wands info&e>======="
  38. send "&eMaker: &6&lZeldaboy111"
  39. send "&eVersie: &6&l1.0"
  40. send "&e=======<&6Wands info&e>======="
  41. stop
  42. if arg 1 is "list":
  43. send "&e=======<&6Wands info&e>======="
  44. send "&eWand: &6&lIce"
  45. send "&e=======<&6Wands info&e>======="
  46. stop
  47. if arg 1 is "ice":
  48. give player 1 stick named "&b&lIceWand" with lore "&kl"
  49. send "&e<&6Wands&e> &6Veel plezier met je &e&lIcewand&6!"
  50. stop
  51. if arg 1 is "reset":
  52. if arg 2 is "icespark":
  53. if arg 3 is set:
  54. send "&e<&6Wands&e> &6Je hebt de spell: &eIceSpark &6gereset bij: &e%arg 3%&6."
  55. set {IceWandP::IceSparkSpell::%arg 3%} to 0
  56. stop
  57. else:
  58. send "&e<&6Wands&e> &6Je hebt de spell: &eIceSpark &6gereset."
  59. set {IceWandP::IceSparkSpell::%player%} to 0
  60. stop
  61. if arg 2 is "iceexplosion":
  62. if arg 3 is set:
  63. send "&e<&6Wands&e> &6Je hebt de spell: &eIceExplosion &6gereset bij: &e%arg 3%&6."
  64. set {IceWandP::IceExplosionSpell::%arg 3%} to 0
  65. stop
  66.  
  67. else:
  68. send "&e<&6Wands&e> &6Je hebt de spell: &eIceExplosion &6gereset."
  69. set {IceWandP::IceExplosionSpell::%player%} to 0
  70. stop
  71.  
  72. else:
  73. send "&e<&6Wands&e> &4Dit is geen bestaande spell."
  74. stop
  75.  
  76.  
  77.  
  78. else:
  79. if arg 1 is set:
  80. send "&e<&6Wands&e> &4Deze command &cbestaat niet&4, doe &c/wand help &4voor meer informatie."
  81. stop
  82. else:
  83. send "&e<&6Wands&e> &4Doe &c/wand help &4voor meer informatie."
  84. stop
  85. else:
  86. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze command uit te voeren."
  87. stop
  88.  
  89.  
  90. on rightclick:
  91. if player is holding a stick named "&b&lIceWand" with lore "&kl":
  92. if player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  93. if {IceWandS::Spells::%player%} is 0:
  94. send "&e<&6SpellSelected&e> &6&lIceSpark"
  95. set {IceWandS::Spells::%player%} to 1
  96. stop
  97.  
  98. if {IceWandS::Spells::%player%} is 1:
  99. send "&e<&6SpellSelected&e> &6&lIceExplosion"
  100. set {IceWandS::Spells::%player%} to 0
  101. stop
  102.  
  103.  
  104. else:
  105. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze wand te gebruiken."
  106. stop
  107.  
  108. on leftclick:
  109. if player is holding a stick named "&b&lIceWand" with lore "&kl":
  110. if player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  111. set {IceWandP::IceSparkSpell::Needed} to 10
  112. set {IceWandP::IceExplosionSpell::Needed} to 10
  113. if {IceWandS::Spells::%player%} is 1:
  114. if {IceWandP::IceSparkSpell::%player%} is 10:
  115.  
  116. else:
  117. chance of 10%:
  118. add 1 to {IceWandP::IceSparkSpell::%player%}
  119. send "&e<&6SpellPoints&e> &6Je hebt een SpellPoint erbij voor de spell: &eIceSpark"
  120.  
  121. if {IceWandS::IceSparkSpell::cooldown::%player%} is 0:
  122. send "&e<&6IceSpark&e> &6Je hebt nog &e%{IceWandP::IceSparkSpell::Needed}-{IceWandP::IceSparkSpell::%player%}% &6SpellPoints nodig."
  123. set {IceWandS::IceSparkSpell::cooldown::%player%} to 10
  124. stop
  125.  
  126. if {IceWandS::Spells::%player%} is 0:
  127. if {IceWand::IceExplosionSpell::%player%} is 10:
  128.  
  129. else:
  130. chance of 5%:
  131. add 1 to {IceWandP::IceExplosionSpell::%player%}
  132. send "&e<&6SpellPoints&e> &6Je hebt een SpellPoint erbij voor de spell: &eIceExplosion"
  133.  
  134. if {IceWandS::IceExplosionSpell::cooldown::%player%} is 0:
  135. send "&e<&6IceExplosion&e> &6Je hebt nog &e%{IceWandP::IceExplosionSpell::Needed}-{IceWandP::IceExplosionSpell::%player%}% &6SpellPoints nodig."
  136. set {IceWandS::IceExplosionSpell::cooldown::%player%} to 10
  137. stop
  138.  
  139. else:
  140. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze wand te gebruiken."
  141. stop
  142.  
  143. every 1 tick:
  144. loop all players:
  145. if loop-player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  146. if loop-player is holding a stick named "&b&lIceWand" with lore "&kl":
  147. if {IceWandS::Spells::%loop-player%} is 1:
  148. if {IceWandP::IceSparkSpell::%loop-player%} is 0:
  149. show actionbar from "&b::::::::::" to loop-player
  150. if {IceWandP::IceSparkSpell::%loop-player%} is 1:
  151. show actionbar from "&3:&b:::::::::" to loop-player
  152. if {IceWandP::IceSparkSpell::%loop-player%} is 2:
  153. show actionbar from "&3::&b::::::::" to loop-player
  154. if {IceWandP::IceSparkSpell::%loop-player%} is 3:
  155. show actionbar from "&3:::&b:::::::" to loop-player
  156. if {IceWandP::IceSparkSpell::%loop-player%} is 4:
  157. show actionbar from "&3::::&b::::::" to loop-player
  158. if {IceWandP::IceSparkSpell::%loop-player%} is 5:
  159. show actionbar from "&3:::::&b:::::" to loop-player
  160. if {IceWandP::IceSparkSpell::%loop-player%} is 6:
  161. show actionbar from "&3::::::&b::::" to loop-player
  162. if {IceWandP::IceSparkSpell::%loop-player%} is 7:
  163. show actionbar from "&3:::::::&b:::" to loop-player
  164. if {IceWandP::IceSparkSpell::%loop-player%} is 8:
  165. show actionbar from "&3::::::::&b::" to loop-player
  166. if {IceWandP::IceSparkSpell::%loop-player%} is 9:
  167. show actionbar from "&3:::::::::&b:" to loop-player
  168. if {IceWandP::IceSparkSpell::%loop-player%} is 10:
  169. show actionbar from "&3&lIceSpark" to loop-player
  170.  
  171.  
  172. if {IceWandS::Spells::%loop-player%} is 0:
  173.  
  174.  
  175. every 1 second:
  176. loop all players:
  177. if {IceWandS::IceSparkSpell::cooldown::%loop-player%} is not 0:
  178. remove 1 from {IceWandS::IceSparkSpell::cooldown::%loop-player%}
  179. stop
  180. if {IceWandS::IceExplosionSpell::cooldown::%loop-player%} is not 0:
  181. remove 1 from {IceWandS::IceExplosionSpell::cooldown::%loop-player%}
  182. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement