Advertisement
Zeldaboy111

Skript Tutorial #44 Prijzen maken!

Nov 11th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1.  
  2.  
  3. on load:
  4. set {colshopsigns::title} to "&e<&6ColShopSigns&e> &6"
  5. set {colshopsigns::text::nep} to "&4Je hebt &convoldoende permissies &4om deze command uit te voeren."
  6. set {colshopsigns::text::help} to "Doe &e/colshopsigns help &6voor meer informatie."
  7.  
  8. command /colshopsigns [<text>] [<text>] [<number>] [<text>] [<number>]:
  9. aliases: /css
  10. trigger:
  11. if player has permission "colshopsigns.use" OR "colshopsigns.*":
  12. if player is in world "Colosseum-w1":
  13. if arg 1 is set:
  14. if arg 1 is "help":
  15. send "&e=========<&6ColShopSigns&e>========="
  16. send "&e&l/colshopsigns [prijs] [item] [aantal items] [enchant]"
  17. send "&e&l/css [prijs] [item] [aantal items] [enchant]"
  18. send "&6Zet op een sign een item die een bepaalde prijs kost."
  19. send "&e&l/colshopsigns [remove]"
  20. send "&e&l/css [remove]"
  21. send "&6Verwijder een ColShopSign."
  22. send "&e=========<&6ColShopSigns&e>========="
  23. stop
  24. if arg 1 is not "remove":
  25. if arg 2 is set:
  26. if arg 3 is set:
  27. if arg 4 is set:
  28. if arg 5 is set:
  29. set {_loc} to location of targeted block
  30. set {colshopsigns::prijs::%{_loc}%} to arg 1
  31. set {colshopsigns::item::%{_loc}%} to arg 2
  32. set {colshopsigns::iaantal::%{_loc}%} to arg 3
  33. set {colshopsigns::enchant::%{_loc}%} to arg 4
  34. set {colshopsigns::elevel::%{_loc}%} to arg 5
  35.  
  36. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  37. send "&6&lPrijs: &e%arg 1%"
  38. send "&6&lItem: &e%arg 2%"
  39. send "&6&lAantal: &e%arg 3%"
  40. send "&6&lEnchant: &e%arg 4% %arg 5%"
  41. stop
  42.  
  43. else:
  44. set {_loc} to location of targeted block
  45. set {colshopsigns::prijs::%{_loc}%} to arg 1
  46. set {colshopsigns::item::%{_loc}%} to arg 2
  47. set {colshopsigns::iaantal::%{_loc}%} to arg 3
  48. set {colshopsigns::enchant::%{_loc}%} to arg 4
  49. set {colshopsigns::elevel::%{_loc}%} to 1
  50.  
  51. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  52. send "&6&lPrijs: &e%arg 1%"
  53. send "&6&lItem: &e%arg 2%"
  54. send "&6&lAantal: &e%arg 3%"
  55. send "&6&lEnchant: &e%arg 4% 1"
  56. stop
  57.  
  58. else:
  59. set {_loc} to location of targeted block
  60. set {colshopsigns::prijs::%{_loc}%} to arg 1
  61. set {colshopsigns::item::%{_loc}%} to arg 2
  62. set {colshopsigns::iaantal::%{_loc}%} to arg 3
  63.  
  64. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  65. send "&6&lPrijs: &e%arg 1%"
  66. send "&6&lItem: &e%arg 2%"
  67. send "&6&lAantal: &e%arg 3%"
  68. stop
  69. else:
  70. set {_loc} to location of targeted block
  71. set {colshopsigns::prijs::%{_loc}%} to arg 1
  72. set {colshopsigns::item::%{_loc}%} to arg 2
  73. set {colshopsigns::iaantal::%{_loc}%} to 1
  74.  
  75. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  76. send "&6&lPrijs: &e%arg 1%"
  77. send "&6&lItem: &e%arg 2%"
  78. send "&6&lAantal: &e1"
  79. stop
  80. else:
  81. send "%{colshopsigns::title}%Je moet nog een item opgeven."
  82. stop
  83.  
  84. if arg 1 is "remove":
  85.  
  86. set {_loc} to location of targeted block
  87. delete {colshopsigns::prijs::%{_loc}%}
  88.  
  89. send "%{colshopsigns::title}%Je hebt de ColShopSign succesvol weggehaalt."
  90. stop
  91. else:
  92. send "%{colshopsigns::title}%%{colshopsigns::text::help}%"
  93. stop
  94. else:
  95. send "%{colshopsigns::title}%%{colshopsigns::text::help}%"
  96. stop
  97. else:
  98. send "%{colshopsigns::title}%&4Je moet in de wereld: &cColosseum-w1 &4zitten om deze command uit te voeren."
  99. stop
  100. else:
  101. send "%{colshopsigns::title}%%{colshopsigns::text::nep}%"
  102. stop
  103.  
  104. on rightclick:
  105. set {_loc} to location of targeted block
  106. if {colshopsigns::prijs::%{_loc}%} is set:
  107. if {colshopsigns::item::%{_loc}%} is set:
  108. if {colshopsigns::iaantal::%{_loc}%} is set:
  109. if {colshopsigns::enchant::%{_loc}%} is set:
  110. if {colshopsigns::elevel::%{_loc}%} is set:
  111. send "%{colshopsigns::prijs::%{_loc}%}%"
  112. send "%{colshopsigns::item::%{_loc}%}%"
  113. send "%{colshopsigns::iaantal::%{_loc}%}%"
  114. send "%{colshopsigns::enchant::%{_loc}%}%"
  115. send "%{colshopsigns::elevel::%{_loc}%}%"
  116. stop
  117. else:
  118. send "%{colshopsigns::prijs::%{_loc}%}%"
  119. send "%{colshopsigns::item::%{_loc}%}%"
  120. send "%{colshopsigns::iaantal::%{_loc}%}%"
  121. send "%{colshopsigns::enchant::%{_loc}%}%"
  122. send "%{colshopsigns::elevel::%{_loc}%}%"
  123. stop
  124. else:
  125. send "%{colshopsigns::prijs::%{_loc}%}%"
  126. send "%{colshopsigns::item::%{_loc}%}%"
  127. send "%{colshopsigns::iaantal::%{_loc}%}%"
  128. stop
  129. else:
  130. send "%{colshopsigns::prijs::%{_loc}%}%"
  131. send "%{colshopsigns::item::%{_loc}%}%"
  132. send "%{colshopsigns::iaantal::%{_loc}%}%"
  133. stop
  134.  
  135. on leftclick:
  136. set {_loc} to location of targeted block
  137. if {colshopsigns::prijs::%{_loc}%} is set:
  138. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement