Zeldaboy111

Skript Tutorial #27 World config

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