Zeldaboy111

Skript Tutorial #22 Spells maken!

Oct 7th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.27 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. set {IceWandT::IceSparkSpell::TargetedBlock::%player%} to location 1 meter above the targeted block of player
  168. #show 10 "fireworks_spark" particles at location of {IceWandT::IceSparkSpell::TargetedBlock::%player%} for player offset by 0.5, 0.5, 0.5
  169. show 10 "portal" particles at location of {IceWandT::IceSparkSpell::TargetedBlock::%player%} for player offset by 0.5, 0.5, 0.5
  170. damage targeted entity by 2 hearts
  171.  
  172. else:
  173. chance of 10%:
  174. add 1 to {IceWandP::IceSparkSpell::%player%}
  175. send "&e<&6SpellPoints&e> &6Je hebt een SpellPoint erbij voor de spell: &eIceSpark"
  176.  
  177. if {IceWandS::IceSparkSpell::cooldown::%player%} is 0:
  178. send "&e<&6IceSpark&e> &6Je hebt nog &e%{IceWandPA::IceSparkSpell::Needed}-{IceWandP::IceSparkSpell::%player%}% &6SpellPoints nodig."
  179. set {IceWandS::IceSparkSpell::cooldown::%player%} to 10
  180. stop
  181.  
  182. if {IceWandS::Spells::%player%} is 0:
  183. if {IceWandP::IceExplosionSpell::%player%} is more than 9:
  184.  
  185. else:
  186. chance of 5%:
  187. add 1 to {IceWandP::IceExplosionSpell::%player%}
  188. send "&e<&6SpellPoints&e> &6Je hebt een SpellPoint erbij voor de spell: &eIceExplosion"
  189.  
  190. if {IceWandS::IceExplosionSpell::cooldown::%player%} is 0:
  191. send "&e<&6IceExplosion&e> &6Je hebt nog &e%{IceWandP::IceExplosionSpell::Needed}-{IceWandP::IceExplosionSpell::%player%}% &6SpellPoints nodig."
  192. set {IceWandS::IceExplosionSpell::cooldown::%player%} to 10
  193. stop
  194.  
  195. else:
  196. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze wand te gebruiken."
  197. stop
  198.  
  199. every 1 tick:
  200. loop all players:
  201. if loop-player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  202. if loop-player is holding a stick named "&b&lIceWand" with lore "&kl":
  203. if {IceWandS::Spells::%loop-player%} is 1:
  204. if {IceWandP::IceSparkSpell::%loop-player%} is 0:
  205. show actionbar from "&b::::::::::::::::::::::" to loop-player
  206. if {IceWandP::IceSparkSpell::%loop-player%} is 1:
  207. show actionbar from "&3::&b::::::::::::::::::" to loop-player
  208. if {IceWandP::IceSparkSpell::%loop-player%} is 2:
  209. show actionbar from "&3::::&b::::::::::::::::" to loop-player
  210. if {IceWandP::IceSparkSpell::%loop-player%} is 3:
  211. show actionbar from "&3::::::&b::::::::::::::" to loop-player
  212. if {IceWandP::IceSparkSpell::%loop-player%} is 4:
  213. show actionbar from "&3::::::::&b::::::::::::" to loop-player
  214. if {IceWandP::IceSparkSpell::%loop-player%} is 5:
  215. show actionbar from "&3::::::::::&b::::::::::" to loop-player
  216. if {IceWandP::IceSparkSpell::%loop-player%} is 6:
  217. show actionbar from "&3::::::::::::&b::::::::" to loop-player
  218. if {IceWandP::IceSparkSpell::%loop-player%} is 7:
  219. show actionbar from "&3::::::::::::::&b::::::" to loop-player
  220. if {IceWandP::IceSparkSpell::%loop-player%} is 8:
  221. show actionbar from "&3::::::::::::::::&b::::" to loop-player
  222. if {IceWandP::IceSparkSpell::%loop-player%} is 9:
  223. show actionbar from "&3::::::::::::::::::&b::" to loop-player
  224. if {IceWandP::IceSparkSpell::%loop-player%} is more than 9:
  225. show actionbar from "&3&lIceSpark" to loop-player
  226.  
  227.  
  228. if {IceWandS::Spells::%loop-player%} is 0:
  229. if {IceWandP::IceExplosionSpell::%loop-player%} is 0:
  230. show actionbar from "&b::::::::::::::::::::::" to loop-player
  231. if {IceWandP::IceExplosionSpell::%loop-player%} is 1:
  232. show actionbar from "&3::&b::::::::::::::::::" to loop-player
  233. if {IceWandP::IceExplosionSpell::%loop-player%} is 2:
  234. show actionbar from "&3::::&b::::::::::::::::" to loop-player
  235. if {IceWandP::IceExplosionSpell::%loop-player%} is 3:
  236. show actionbar from "&3::::::&b::::::::::::::" to loop-player
  237. if {IceWandP::IceExplosionSpell::%loop-player%} is 4:
  238. show actionbar from "&3::::::::&b::::::::::::" to loop-player
  239. if {IceWandP::IceExplosionSpell::%loop-player%} is 5:
  240. show actionbar from "&3::::::::::&b::::::::::" to loop-player
  241. if {IceWandP::IceExplosionSpell::%loop-player%} is 6:
  242. show actionbar from "&3::::::::::::&b::::::::" to loop-player
  243. if {IceWandP::IceExplosionSpell::%loop-player%} is 7:
  244. show actionbar from "&3::::::::::::::&b::::::" to loop-player
  245. if {IceWandP::IceExplosionSpell::%loop-player%} is 8:
  246. show actionbar from "&3::::::::::::::::&b::::" to loop-player
  247. if {IceWandP::IceExplosionSpell::%loop-player%} is 9:
  248. show actionbar from "&3::::::::::::::::::&b::" to loop-player
  249. if {IceWandP::IceExplosionSpell::%loop-player%} is more than 9:
  250. show actionbar from "&3&lIceExplosion" to loop-player
  251.  
  252. every 1 second:
  253. loop all players:
  254. if {IceWandP::IceSparkSpell::%loop-player%} is less than 10:
  255. if {IceWandS::IceSparkSpell::cooldown::%loop-player%} is not 0:
  256. remove 1 from {IceWandS::IceSparkSpell::cooldown::%loop-player%}
  257. stop
  258. if {IceWandP::IceExplosionSpell::%loop-player%} is less than 10:
  259. if {IceWandS::IceExplosionSpell::cooldown::%loop-player%} is not 0:
  260. remove 1 from {IceWandS::IceExplosionSpell::cooldown::%loop-player%}
  261. stop
Advertisement
Add Comment
Please, Sign In to add comment