Advertisement
Zeldaboy111

Skript Tutorial #21 Spellpoints!

Oct 5th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.85 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. {IceWandP::IceSparkSpell::%player%} = {IceWandP::IceSparkSpell::%loop-player%}
  8. {IceWandP::IceExplosionSpell::%player%} = {IceWandP::IceExplosionSpell::%loop-player%}
  9.  
  10. {IceWandS::Spells::%player%} = {IceWandS::Spells::%loop-player%}
  11.  
  12. {IceWandS::IceSparkSpell::cooldown::%player%} = {IceWandS::IceSparkSpell::cooldown::%loop-player%}
  13. {IceWandS::IceExplosionSpell::cooldown::%player%} =- {IceWandS::IceExplosionSpell::cooldown::%loop-player%}
  14.  
  15. on join:
  16. if {IceWandS::Spells:%player%} is not set:
  17. set {IceWandS::Spells::%player%} to 0
  18.  
  19. if {IceWandP::IceSparkSpell::%player%} is not set:
  20. set {IceWandP::IceSparkSpell::%player%} to 0
  21. if {IceWandP::IceExplosionSpell::%player%} is not set:
  22. set {IceWandP::IceExplosionSpell::%player%} to 0
  23.  
  24. if {IceWandS::IceExplosionSpell::cooldown::%player%} is not set:
  25. set {IceWandS::IceExplosionSpell::cooldown::%player%} to 0
  26. if {IceWandS::IceSparkSpell::cooldown::%player%} is not set:
  27. set {iceWandS::IceSparkSpell::cooldown::%player%} to 0
  28.  
  29. command /wand [<text>] [<text>] [<offline player>] [<number>]:
  30. trigger:
  31. if player has permission "wand.*" OR "wand.getwand":
  32. if arg 1 is "help":
  33. send "&e=======<&6Wands Help&e>======="
  34. send "&e/wand help &6Krijg meer informatie over de commands."
  35. send "&e/wand info &6Krijg meer informatie over de skript."
  36. send "&e/wand list &6Krijg een lijst met alle wands."
  37. send "&e/wand reset [spell/wand] &6Reset de spellpoints van een spell of wand"
  38. send "&e/wand set [spell/wand] [speler] [nummer] &6Zet de spellpoints naar een bepaald nummer"
  39. send "&e======<&6Pagina 1/1&e>======"
  40. stop
  41. if arg 1 is "info":
  42. send "&e=======<&6Wands info&e>======="
  43. send "&eMaker: &6&lZeldaboy111"
  44. send "&eVersie: &6&l1.0"
  45. send "&e=======<&6Wands info&e>======="
  46. stop
  47. if arg 1 is "list":
  48. send "&e=======<&6Wands info&e>======="
  49. send "&eWand: &6&lIce"
  50. send "&e=======<&6Wands info&e>======="
  51. stop
  52. if arg 1 is "ice":
  53. give player 1 stick named "&b&lIceWand" with lore "&kl"
  54. send "&e<&6Wands&e> &6Veel plezier met je &e&lIcewand&6!"
  55. stop
  56. if arg 1 is "reset":
  57. if arg 2 is "icespark":
  58. if arg 3 is set:
  59. send "&e<&6Wands&e> &6Je hebt de spell: &eIceSpark &6gereset bij: &e%arg 3%&6."
  60. set {IceWandP::IceSparkSpell::%arg 3%} to 0
  61. stop
  62. else:
  63. send "&e<&6Wands&e> &6Je hebt de spell: &eIceSpark &6gereset."
  64. set {IceWandP::IceSparkSpell::%player%} to 0
  65. stop
  66. if arg 2 is "iceexplosion":
  67. if arg 3 is set:
  68. send "&e<&6Wands&e> &6Je hebt de spell: &eIceExplosion &6gereset bij: &e%arg 3%&6."
  69. set {IceWandP::IceExplosionSpell::%arg 3%} to 0
  70. stop
  71.  
  72. else:
  73. send "&e<&6Wands&e> &6Je hebt de spell: &eIceExplosion &6gereset."
  74. set {IceWandP::IceExplosionSpell::%player%} to 0
  75. stop
  76.  
  77. if arg 2 is "IceWand" OR "Ice":
  78. if arg 3 is set:
  79. send "&e<&6Wands&e> &6Je hebt de wand: &eIceWand &6gereset bij: &e%arg 3%&6."
  80. set {IceWandP::IceSparkSpell::%arg 3%} to 0
  81. set {IceWandP::IceExplosionSpell::%arg 3%} to 0
  82. stop
  83. else:
  84. send "&e<&6Wands&e> &6Je hebt de wand: &eIceWand &6gereset."
  85. set {IceWandP::IceSparkSpell::%player%} to 0
  86. set {IceWandP::IceExplosionSpell::%player%} to 0
  87. stop
  88.  
  89.  
  90. else:
  91. send "&e<&6Wands&e> &4Dit is geen bestaande spell of wand."
  92. stop
  93.  
  94. if arg 1 is "set":
  95. if arg 2 is "IceWand" OR "Ice":
  96. if arg 3 is set:
  97. if arg 4 is set:
  98. send "&e<&6Wands&e> &6Je hebt van de wand: &eIceWand &6de spellpoints gezet naar: &e%arg 4% &6gezet, bij: &e%arg 3%&6."
  99. set {IceWandP::IceSparkSpell::%arg 3%} to arg 4
  100. set {IceWandP::IceExplosionSpell::%arg 3%} to arg 4
  101. stop
  102. if arg 2 is "IceSpark":
  103. if arg 3 is set:
  104. if arg 4 is set:
  105. send "&e<&6Wands&e> &6Je hebt de spellpoints van: &eIceSpark &6naar: &e%arg 4% &6gezet, bij: &e%arg 3%&6."
  106. set {IceWandP::IceSparkSpell::%arg 3%} to arg 4
  107. stop
  108. if arg 2 is "IceExplosion":
  109. if arg 3 is set:
  110. if arg 4 is set:
  111. send "&e<&6Wands&e> &6Je hebt de spellpoints van: &eIceExplosion &6naar: &e%arg 4% &6gezet, bij: &e%arg 3%&6."
  112. set {IceWandP::IceExplosionSpell::%arg 3%} to arg 4
  113. stop
  114.  
  115. else:
  116. if arg 3 is set:
  117. if arg 4 is not set:
  118. send "&e<&6Wands&e> &4Je moet nog een nummer invoeren."
  119. stop
  120. else:
  121. send "&e<&6Wands&e> &4Je hebt waarschijnlijk de verkeerde volgorde, doe &c/wand help &4of &c/wand set [spell/wand] [speler] [nummer]&4."
  122. stop
  123.  
  124. else:
  125. send "&e<&6Wands&e> &4Dit is geen bestaande spell of wand."
  126. stop
  127.  
  128.  
  129.  
  130. else:
  131. if arg 1 is set:
  132. send "&e<&6Wands&e> &4Deze command &cbestaat niet&4, doe &c/wand help &4voor meer informatie."
  133. stop
  134. else:
  135. send "&e<&6Wands&e> &4Doe &c/wand help &4voor meer informatie."
  136. stop
  137. else:
  138. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze command uit te voeren."
  139. stop
  140.  
  141.  
  142. on rightclick:
  143. if player is holding a stick named "&b&lIceWand" with lore "&kl":
  144. if player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  145. if {IceWandS::Spells::%player%} is 0:
  146. send "&e<&6SpellSelected&e> &6&lIceSpark"
  147. set {IceWandS::Spells::%player%} to 1
  148. stop
  149.  
  150. if {IceWandS::Spells::%player%} is 1:
  151. send "&e<&6SpellSelected&e> &6&lIceExplosion"
  152. set {IceWandS::Spells::%player%} to 0
  153. stop
  154.  
  155.  
  156. else:
  157. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze wand te gebruiken."
  158. stop
  159.  
  160. on leftclick:
  161. if player is holding a stick named "&b&lIceWand" with lore "&kl":
  162. if player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  163. set {IceWandP::IceSparkSpell::Needed} to 10
  164. set {IceWandP::IceExplosionSpell::Needed} to 10
  165. if {IceWandS::Spells::%player%} is 1:
  166. if {IceWandP::IceSparkSpell::%player%} is more than 9:
  167.  
  168. else:
  169. chance of 10%:
  170. add 1 to {IceWandP::IceSparkSpell::%player%}
  171. send "&e<&6SpellPoints&e> &6Je hebt een SpellPoint erbij voor de spell: &eIceSpark"
  172.  
  173. if {IceWandS::IceSparkSpell::cooldown::%player%} is 0:
  174. send "&e<&6IceSpark&e> &6Je hebt nog &e%{IceWandP::IceSparkSpell::Needed}-{IceWandP::IceSparkSpell::%player%}% &6SpellPoints nodig."
  175. set {IceWandS::IceSparkSpell::cooldown::%player%} to 10
  176. stop
  177.  
  178. if {IceWandS::Spells::%player%} is 0:
  179. if {IceWandP::IceExplosionSpell::%player%} is more than 9:
  180.  
  181. else:
  182. chance of 5%:
  183. add 1 to {IceWandP::IceExplosionSpell::%player%}
  184. send "&e<&6SpellPoints&e> &6Je hebt een SpellPoint erbij voor de spell: &eIceExplosion"
  185.  
  186. if {IceWandS::IceExplosionSpell::cooldown::%player%} is 0:
  187. send "&e<&6IceExplosion&e> &6Je hebt nog &e%{IceWandP::IceExplosionSpell::Needed}-{IceWandP::IceExplosionSpell::%player%}% &6SpellPoints nodig."
  188. set {IceWandS::IceExplosionSpell::cooldown::%player%} to 10
  189. stop
  190.  
  191. else:
  192. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze wand te gebruiken."
  193. stop
  194.  
  195. every 1 tick:
  196. loop all players:
  197. if loop-player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  198. if loop-player is holding a stick named "&b&lIceWand" with lore "&kl":
  199. if {IceWandS::Spells::%loop-player%} is 1:
  200. if {IceWandP::IceSparkSpell::%loop-player%} is 0:
  201. show actionbar from "&b::::::::::::::::::::::" to loop-player
  202. if {IceWandP::IceSparkSpell::%loop-player%} is 1:
  203. show actionbar from "&3::&b::::::::::::::::::" to loop-player
  204. if {IceWandP::IceSparkSpell::%loop-player%} is 2:
  205. show actionbar from "&3::::&b::::::::::::::::" to loop-player
  206. if {IceWandP::IceSparkSpell::%loop-player%} is 3:
  207. show actionbar from "&3::::::&b::::::::::::::" to loop-player
  208. if {IceWandP::IceSparkSpell::%loop-player%} is 4:
  209. show actionbar from "&3::::::::&b::::::::::::" to loop-player
  210. if {IceWandP::IceSparkSpell::%loop-player%} is 5:
  211. show actionbar from "&3::::::::::&b::::::::::" to loop-player
  212. if {IceWandP::IceSparkSpell::%loop-player%} is 6:
  213. show actionbar from "&3::::::::::::&b::::::::" to loop-player
  214. if {IceWandP::IceSparkSpell::%loop-player%} is 7:
  215. show actionbar from "&3::::::::::::::&b::::::" to loop-player
  216. if {IceWandP::IceSparkSpell::%loop-player%} is 8:
  217. show actionbar from "&3::::::::::::::::&b::::" to loop-player
  218. if {IceWandP::IceSparkSpell::%loop-player%} is 9:
  219. show actionbar from "&3::::::::::::::::::&b::" to loop-player
  220. if {IceWandP::IceSparkSpell::%loop-player%} is more than 9:
  221. show actionbar from "&3&lIceSpark" to loop-player
  222.  
  223.  
  224. if {IceWandS::Spells::%loop-player%} is 0:
  225. if {IceWandP::IceExplosionSpell::%loop-player%} is 0:
  226. show actionbar from "&b::::::::::::::::::::::" to loop-player
  227. if {IceWandP::IceExplosionSpell::%loop-player%} is 1:
  228. show actionbar from "&3::&b::::::::::::::::::" to loop-player
  229. if {IceWandP::IceExplosionSpell::%loop-player%} is 2:
  230. show actionbar from "&3::::&b::::::::::::::::" to loop-player
  231. if {IceWandP::IceExplosionSpell::%loop-player%} is 3:
  232. show actionbar from "&3::::::&b::::::::::::::" to loop-player
  233. if {IceWandP::IceExplosionSpell::%loop-player%} is 4:
  234. show actionbar from "&3::::::::&b::::::::::::" to loop-player
  235. if {IceWandP::IceExplosionSpell::%loop-player%} is 5:
  236. show actionbar from "&3::::::::::&b::::::::::" to loop-player
  237. if {IceWandP::IceExplosionSpell::%loop-player%} is 6:
  238. show actionbar from "&3::::::::::::&b::::::::" to loop-player
  239. if {IceWandP::IceExplosionSpell::%loop-player%} is 7:
  240. show actionbar from "&3::::::::::::::&b::::::" to loop-player
  241. if {IceWandP::IceExplosionSpell::%loop-player%} is 8:
  242. show actionbar from "&3::::::::::::::::&b::::" to loop-player
  243. if {IceWandP::IceExplosionSpell::%loop-player%} is 9:
  244. show actionbar from "&3::::::::::::::::::&b::" to loop-player
  245. if {IceWandP::IceExplosionSpell::%loop-player%} is more than 9:
  246. show actionbar from "&3&lIceExplosion" to loop-player
  247.  
  248. every 1 second:
  249. loop all players:
  250. if {IceWandP::IceSparkSpell::%loop-player%} is less than 10:
  251. if {IceWandS::IceSparkSpell::cooldown::%loop-player%} is not 0:
  252. remove 1 from {IceWandS::IceSparkSpell::cooldown::%loop-player%}
  253. stop
  254. if {IceWandP::IceExplosionSpell::%loop-player%} is less than 10:
  255. if {IceWandS::IceExplosionSpell::cooldown::%loop-player%} is not 0:
  256. remove 1 from {IceWandS::IceExplosionSpell::cooldown::%loop-player%}
  257. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement