Advertisement
Zeldaboy111

Skript Tutorial #45 Sign lines!

Nov 14th, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.50 KB | None | 0 0
  1.  
  2.  
  3. on load:
  4. set {colshopsigns::signtitle::buy} to "&1[&e&k::&6BuySign&e&k::&1] &6"
  5. set {colshopsigns::title} to "&1[&e&k::&6ColShopSigns&e&k::&1] &6"
  6. set {colshopsigns::help::title} to "&1[&e&k::&6CSS&e&k::&1]"
  7. set {colshopsigns::text::nep} to "&4Je hebt &convoldoende permissies &4om deze command uit te voeren."
  8. set {colshopsigns::text::help} to "Doe &e/colshopsigns help &6voor meer informatie."
  9.  
  10. command /colshopsigns [<text>] [<text>] [<text>] [<number>] [<text>] [<number>]:
  11. aliases: /css
  12. trigger:
  13. if player has permission "colshopsigns.use" OR "colshopsigns.*":
  14. if player is in world "Colosseum-w1":
  15. if arg 1 is set:
  16. if arg 1 is "help":
  17. send "&e=========<&6ColShopSigns&e>========="
  18. send "%{colshopsigns::help::title}%&e&l/colshopsigns buy/sell [prijs] [item] [aantal items] [enchant]"
  19. send "%{colshopsigns::help::title}%&e&l/css buy/sell [prijs] [item] [aantal items] [enchant]"
  20. send "%{colshopsigns::help::title}%&6Zet op een sign een item die een bepaalde prijs kost."
  21. send "%{colshopsigns::help::title}%&e&l/colshopsigns [remove]"
  22. send "%{colshopsigns::help::title}%&e&l/css [remove]"
  23. send "%{colshopsigns::help::title}%&6Verwijder een ColShopSign."
  24. send "&e=========<&6ColShopSigns&e>========="
  25. stop
  26. if arg 1 is "buy":
  27. if arg 2 is set:
  28. if arg 3 is set:
  29. if arg 4 is set:
  30. if arg 5 is set:
  31. if arg 6 is set:
  32. set {_loc} to location of targeted block
  33. set {colshopsigns::prijs::%{_loc}%} to arg 2
  34. set {colshopsigns::item::%{_loc}%} to arg 3
  35. set {colshopsigns::iaantal::%{_loc}%} to arg 4
  36. set {colshopsigns::enchant::%{_loc}%} to arg 5
  37. set {colshopsigns::elevel::%{_loc}%} to arg 6
  38.  
  39. replace every "_" with " " in {colshopsigns::prijs::%{_loc}%}
  40. replace every "_" with " " in {colshopsigns::item::%{_loc}%}
  41. replace every "_" with " " in {colshopsigns::iaantal::%{_loc}%}
  42. replace every "_" with " " in {colshopsigns::enchant::%{_loc}%}
  43. replace every "_" with " " in {colshopsigns::elevel::%{_loc}%}
  44.  
  45. set line 1 of targeted block to "%{colshopsigns::signtitle::buy}%"
  46. set line 2 of targeted block to "&e%{colshopsigns::prijs::%{_loc}%}%"
  47. set line 3 of targeted block to "&e%{colshopsigns::iaantal::%{_loc}%}% %{colshopsigns::item::%{_loc}%}%"
  48. set line 4 of targeted block to "&e%{colshopsigns::enchant::%{_loc}%}% %{colshopsigns::elevel::%{_loc}%}%"
  49.  
  50.  
  51. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  52. send "%{colshopsigns::help::title}% &6&lPrijs: &e%arg 2%"
  53. send "%{colshopsigns::help::title}% &6&lItem: &e%arg 3%"
  54. send "%{colshopsigns::help::title}% &6&lAantal: &e%arg 4%"
  55. send "%{colshopsigns::help::title}% &6&lEnchant: &e%arg 5% %arg 6%"
  56. stop
  57.  
  58. else:
  59. set {_loc} to location of targeted block
  60. set {colshopsigns::prijs::%{_loc}%} to arg 2
  61. set {colshopsigns::item::%{_loc}%} to arg 3
  62. set {colshopsigns::iaantal::%{_loc}%} to arg 4
  63. set {colshopsigns::enchant::%{_loc}%} to arg 5
  64. set {colshopsigns::elevel::%{_loc}%} to arg 6
  65.  
  66. replace every "_" with " " in {colshopsigns::prijs::%{_loc}%}
  67. replace every "_" with " " in {colshopsigns::item::%{_loc}%}
  68. replace every "_" with " " in {colshopsigns::iaantal::%{_loc}%}
  69. replace every "_" with " " in {colshopsigns::enchant::%{_loc}%}
  70. replace every "_" with " " in {colshopsigns::elevel::%{_loc}%}
  71.  
  72. set line 1 of targeted block to "%{colshopsigns::signtitle::buy}%"
  73. set line 2 of targeted block to "&e%{colshopsigns::prijs::%{_loc}%}%"
  74. set line 3 of targeted block to "&e%{colshopsigns::iaantal::%{_loc}%}% %{colshopsigns::item::%{_loc}%}%"
  75. set line 4 of targeted block to "&e%{colshopsigns::enchant::%{_loc}%}% %{colshopsigns::elevel::%{_loc}%}%"
  76.  
  77. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  78. send "%{colshopsigns::help::title}% &6&lPrijs: &e%arg 2%"
  79. send "%{colshopsigns::help::title}% &6&lItem: &e%arg 3%"
  80. send "%{colshopsigns::help::title}% &6&lAantal: &e%arg 4%"
  81. send "%{colshopsigns::help::title}% &6&lEnchant: &e%arg 5% 1"
  82. stop
  83.  
  84. else:
  85. set {_loc} to location of targeted block
  86. set {colshopsigns::prijs::%{_loc}%} to arg 2
  87. set {colshopsigns::item::%{_loc}%} to arg 3
  88. set {colshopsigns::iaantal::%{_loc}%} to arg 4
  89. set {colshopsigns::enchant::%{_loc}%} to ""
  90. set {colshopsigns::elevel::%{_loc}%} to ""
  91.  
  92.  
  93. replace every "_" with " " in {colshopsigns::prijs::%{_loc}%}
  94. replace every "_" with " " in {colshopsigns::item::%{_loc}%}
  95. replace every "_" with " " in {colshopsigns::iaantal::%{_loc}%}
  96.  
  97. set line 1 of targeted block to "%{colshopsigns::signtitle::buy}%"
  98. set line 2 of targeted block to "&e%{colshopsigns::prijs::%{_loc}%}%"
  99. set line 3 of targeted block to "&e%{colshopsigns::iaantal::%{_loc}%}% %{colshopsigns::item::%{_loc}%}%"
  100. set line 4 of targeted block to "&6&lGeen enchant"
  101.  
  102. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  103. send "%{colshopsigns::help::title}% &6&lPrijs: &e%arg 2%"
  104. send "%{colshopsigns::help::title}% &6&lItem: &e%arg 3%"
  105. send "%{colshopsigns::help::title}% &6&lAantal: &e%arg 4%"
  106. stop
  107. else:
  108. set {_loc} to location of targeted block
  109. set {colshopsigns::prijs::%{_loc}%} to arg 2
  110. set {colshopsigns::item::%{_loc}%} to arg 3
  111. set {colshopsigns::iaantal::%{_loc}%} to arg 4
  112. set {colshopsigns::enchant::%{_loc}%} to ""
  113. set {colshopsigns::elevel::%{_loc}%} to ""
  114.  
  115. replace every "_" with " " in {colshopsigns::prijs::%{_loc}%}
  116. replace every "_" with " " in {colshopsigns::item::%{_loc}%}
  117. replace every "_" with " " in {colshopsigns::iaantal::%{_loc}%}
  118.  
  119. set line 1 of targeted block to "%{colshopsigns::signtitle::buy}%"
  120. set line 2 of targeted block to "&e%{colshopsigns::prijs::%{_loc}%}%"
  121. set line 3 of targeted block to "&e%{colshopsigns::iaantal::%{_loc}%}% %{colshopsigns::item::%{_loc}%}%"
  122. set line 4 of targeted block to "&6&lGeen enchant"
  123.  
  124. send "%{colshopsigns::title}%Je hebt een &eColShopSign &6gemaakt met de volgende eigenschappen:"
  125. send "%{colshopsigns::help::title}% &6&lPrijs: &e%arg 2%"
  126. send "%{colshopsigns::help::title}% &6&lItem: &e%arg 3%"
  127. send "%{colshopsigns::help::title}% &6&lAantal: &e1"
  128. stop
  129. else:
  130. send "%{colshopsigns::title}%Je moet nog een item opgeven."
  131. stop
  132.  
  133. if arg 1 is "remove":
  134.  
  135. set {_loc} to location of targeted block
  136. delete {colshopsigns::prijs::%{_loc}%}
  137.  
  138. send "%{colshopsigns::title}%Je hebt de ColShopSign succesvol weggehaalt."
  139. stop
  140.  
  141. else:
  142. send "%{colshopsigns::title}%%{colshopsigns::text::help}%"
  143. stop
  144. else:
  145. send "%{colshopsigns::title}%%{colshopsigns::text::help}%"
  146. stop
  147. else:
  148. send "%{colshopsigns::title}%&4Je moet in de wereld: &cColosseum-w1 &4zitten om deze command uit te voeren."
  149. stop
  150. else:
  151. send "%{colshopsigns::title}%%{colshopsigns::text::nep}%"
  152. stop
  153.  
  154. on rightclick:
  155. set {_loc} to location of targeted block
  156. if {colshopsigns::prijs::%{_loc}%} is set:
  157. if {colshopsigns::item::%{_loc}%} is set:
  158. if {colshopsigns::iaantal::%{_loc}%} is set:
  159. if {colshopsigns::enchant::%{_loc}%} is set:
  160. if {colshopsigns::elevel::%{_loc}%} is set:
  161. send "%{colshopsigns::help::title}% &6&lPrijs: &e%{colshopsigns::prijs::%{_loc}%}%"
  162. send "%{colshopsigns::help::title}% &6&lItem: &e%{colshopsigns::item::%{_loc}%}%"
  163. send "%{colshopsigns::help::title}% &6&lAantal items: &e%{colshopsigns::iaantal::%{_loc}%}%"
  164. send "%{colshopsigns::help::title}% &6&lEnchant: &e%{colshopsigns::enchant::%{_loc}%}%"
  165. send "%{colshopsigns::help::title}% &6&lEnchant level: &e%{colshopsigns::elevel::%{_loc}%}%"
  166. stop
  167. else:
  168. send "%{colshopsigns::help::title}% &6&lPrijs: &e%{colshopsigns::prijs::%{_loc}%}%"
  169. send "%{colshopsigns::help::title}% &6&lItem: &e%{colshopsigns::item::%{_loc}%}%"
  170. send "%{colshopsigns::help::title}% &6&lAantal items: &e%{colshopsigns::iaantal::%{_loc}%}%"
  171. send "%{colshopsigns::help::title}% &6&lEnchant: &e%{colshopsigns::enchant::%{_loc}%}%"
  172. send "%{colshopsigns::help::title}% &6&lEnchant level: &e%{colshopsigns::elevel::%{_loc}%}%"
  173. stop
  174. else:
  175. send "%{colshopsigns::help::title}% &6&lPrijs: &e%{colshopsigns::prijs::%{_loc}%}%"
  176. send "%{colshopsigns::help::title}% &6&lItem: &e%{colshopsigns::item::%{_loc}%}%"
  177. send "%{colshopsigns::help::title}% &6&lAantal items: &e%{colshopsigns::iaantal::%{_loc}%}%"
  178. stop
  179. else:
  180. send "%{colshopsigns::help::title}% &6&lPrijs: &e%{colshopsigns::prijs::%{_loc}%}%"
  181. send "%{colshopsigns::help::title}% &6&lItem: &e%{colshopsigns::item::%{_loc}%}%"
  182. send "%{colshopsigns::help::title}% &6&lAantal items: &e%{colshopsigns::iaantal::%{_loc}%}%"
  183. stop
  184.  
  185.  
  186.  
  187. on leftclick:
  188. set {_loc} to location of targeted block
  189. if {colshopsigns::prijs::%{_loc}%} is set:
  190. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement