Advertisement
Zeldaboy111

Skript Tutorial #19 Wands maken!

Oct 4th, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. #Paar kleine veranderingen gedaan na de opname, kijk de volgende aflevering voor info over de veranderingen
  2.  
  3. options:
  4. {IceWandP::IceSparkSpell::%player%} = {IceWandP::IceSparkSpell::%arg 3%}
  5. {IceWandP::IceExplosionSpell::%player%} = {IceWandP::IceExplosionSpell::%arg 3%}
  6.  
  7. on join:
  8. if {IceWandS::Spells:%player%} is not set:
  9. set {IceWandS::Spells::%player%} to 0
  10.  
  11. if {IceWandP::IceSparkSpell::%player%} is not set:
  12. set {IceWandP::IceSparkSpell::%player%} to 0
  13. if {IceWandP::IceExplosionSpell::%player%} is not set:
  14. set {IceWandP::IceExplosionSpell::%player%} to 0
  15.  
  16. command /wand [<text>] [<text>] [<offline player>]:
  17. trigger:
  18. if player has permission "wand.*" OR "wand.getwand":
  19. if arg 1 is "help":
  20. send "&e=======<&6Wands Help&e>======="
  21. send "&e/wand help &6Krijg meer informatie over de commands."
  22. send "&e/wand info &6Krijg meer informatie over de skript."
  23. send "&e/wand list &6Krijg een lijst met alle wands."
  24. send "&e======<&6Pagina 1/1&e>======"
  25. stop
  26. if arg 1 is "info":
  27. send "&e=======<&6Wands info&e>======="
  28. send "&eMaker: &6&lZeldaboy111"
  29. send "&eVersie: &6&l1.0"
  30. send "&e=======<&6Wands info&e>======="
  31. stop
  32. if arg 1 is "list":
  33. send "&e=======<&6Wands info&e>======="
  34. send "&eWand: &6&lIce"
  35. send "&e=======<&6Wands info&e>======="
  36. stop
  37. if arg 1 is "ice":
  38. give player 1 stick named "&b&lIceWand" with lore "&kl"
  39. send "&e<&6Wands&e> &6Veel plezier met je &e&lIcewand&6!"
  40. stop
  41. if arg 1 is "reset":
  42. if arg 2 is "icespark":
  43. if arg 3 is set:
  44. send "&e<&6Wands&e> &6Je hebt de spell: &eIceSpark &6gereset bij: &e%arg 3%&6."
  45. set {IceWandP::IceSparkSpell::%arg 3%} to 0
  46. stop
  47. else:
  48. send "&e<&6Wands&e> &6Je hebt de spell: &eIceSpark &6gereset."
  49. set {IceWandP::IceSparkSpell::%player%} to 0
  50. stop
  51. if arg 2 is "iceexplosion":
  52. if arg 3 is set:
  53. send "&e<&6Wands&e> &6Je hebt de spell: &eIceExplosion &6gereset bij: &e%arg 3%&6."
  54. set {IceWandP::IceExplosionSpell::%arg 3%} to 0
  55. stop
  56.  
  57. else:
  58. send "&e<&6Wands&e> &6Je hebt de spell: &eIceExplosion &6gereset."
  59. set {IceWandP::IceExplosionSpell::%arg 3%} to 0
  60. stop
  61.  
  62. else:
  63. send "&e<&6Wands&e> &4Dit is geen bestaande spell."
  64. stop
  65.  
  66.  
  67.  
  68. else:
  69. if arg 1 is set:
  70. send "&e<&6Wands&e> &4Deze command &cbestaat niet&4, doe &c/wand help &4voor meer informatie."
  71. stop
  72. else:
  73. send "&e<&6Wands&e> &4Doe &c/wand help &4voor meer informatie."
  74. stop
  75. else:
  76. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze command uit te voeren."
  77. stop
  78.  
  79.  
  80. on rightclick:
  81. if player is holding a stick named "&b&lIceWand" with lore "&kl":
  82. if player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  83. if {IceWandS::Spells::%player%} is 0:
  84. send "&e<&6SpellSelected&e> &6&lIceSpark"
  85. set {IceWandS::Spells::%player%} to 1
  86. stop
  87.  
  88. if {IceWandS::Spells::%player%} is 1:
  89. send "&e<&6SpellSelected&e> &6&lIceExplosion"
  90. set {IceWandS::Spells::%player%} to 0
  91. stop
  92.  
  93.  
  94. else:
  95. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze wand te gebruiken."
  96. stop
  97.  
  98. on leftclick:
  99. if player is holding a stick named "&b&lIceWand" with lore "&kl":
  100. if player has permission "wand.*" OR "wand.use.IceWand" OR "wand.use.icewand":
  101. set {IceWandP::IceSparkSpell::Needed} to 10
  102. set {IceWandP::IceExplosionSpell::Needed} to 10
  103. if {IceWandS::Spells::%player%} is 1:
  104. if {IceWandP::IceSparkSpell::%player%} is 10:
  105.  
  106. else:
  107. chance of 50%:
  108. add 1 to {IceWandP::IceSparkSpell::%player%}
  109. send "&4SpellPOint erbij"
  110.  
  111.  
  112. send "&e<&6IceSpark&e> &6Je hebt nog &e%{IceWandP::IceSparkSpell::Needed}-{IceWandP::IceSparkSpell::%player%}% &6SpellPoints nodig."
  113. stop
  114.  
  115. if {IceWandS::Spells::%player%} is 0:
  116. if {IceWand::IceExplosionSpell::%player%} is 10:
  117.  
  118. else:
  119. send "&e<&6IceSpark&e> &6Je hebt nog &e%{IceWandP::IceExplosionSpell::Needed}-{IceWandP::IceExplosionSpell::%player%}% &6SpellPoints nodig."
  120. stop
  121.  
  122. else:
  123. send "&e<&6Wands&e> &4Je hebt &convoldoende permissies &4om deze wand te gebruiken."
  124. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement