knugi

Untitled

May 1st, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.25 KB | None | 0 0
  1. # [00] [01] [02] [03] [04] [05] [06] [07] [08]
  2. # [09] [10] [11] [12] [13] [14] [15] [16] [17]
  3. # [18] [19] [20] [21] [22] [23] [24] [25] [26]
  4. # [27] [28] [29] [30] [31] [32] [33] [34] [35]
  5. # [36] [37] [38] [39] [40] [41] [42] [43] [44]
  6. variables:
  7. {rubiny.%player%} = 0
  8. on join:
  9. if {rubiny.%player%} is not set:
  10. set {rubiny.%player%} to 0
  11. on inventory click:
  12. if inventory name of player's current inventory is "&e$ &6&lSKLEPIK &e$":
  13. cancel event
  14. if clicked slot is 25:
  15. execute player command "kolorki-kolo-sklepik"
  16. else if clicked slot is 21:
  17. if {rubiny.%player%} is less than 750:
  18. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  19. else:
  20. remove 750 from {rubiny.%player%}
  21. set {ranga::%player%} to "&e-(&6Premium&e)-"
  22. set {color.nicku.%player%} to "&7"
  23. set {rozdzielnik.%player%} to {rozdzielnik.vip}
  24. set {color.chatu.%player%} to "&e"
  25. execute console command "pex user %player% group set vip"
  26. execute console command "bc-cons %{nag}%"
  27. execute console command "bc-cons %{wiad.vip}% &6%player% %{wiad.vip2}%"
  28. execute console command "bc-cons %{wiad.vip3}%"
  29. execute console command "bc-cons %{nag}%"
  30. else if clicked slot is 22:
  31. if {rubiny.%player%} is less than 1500:
  32. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  33. else:
  34. remove 1500 from {rubiny.%player%}
  35. set {ranga::%player%} to "&d-(&5Elita&d)-"
  36. set {color.nicku.%player%} to "&7"
  37. set {rozdzielnik.%player%} to {rozdzielnik.elita}
  38. set {color.chatu.%player%} to "&d"
  39. execute console command "pex user %player% group set elita"
  40. execute console command "bc-cons %{nag}%"
  41. execute console command "bc-cons %{wiad.elita}% &5%player% %{wiad.elita2}%"
  42. execute console command "bc-cons %{wiad.elita3}%"
  43. execute console command "bc-cons %{nag}%"
  44. else if clicked slot is 23:
  45. if {rubiny.%player%} is less than 2500:
  46. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  47. else:
  48. remove 2500 from {rubiny.%player%}
  49. set {ranga::%player%} to "&2-(&aLegenda&2)-"
  50. set {color.nicku.%player%} to "&7"
  51. set {rozdzielnik.%player%} to {rozdzielnik.legend}
  52. set {color.chatu.%player%} to "&a"
  53. execute console command "pex user %player% group set legenda"
  54. execute console command "bc-cons %{nag}%"
  55. execute console command "bc-cons %{wiad.legenda}% &a%player% %{wiad.legenda2}%"
  56. execute console command "bc-cons %{wiad.legenda3}%"
  57. execute console command "bc-cons %{nag}%"
  58. close player's inventory
  59. else if inventory name of player's current inventory is "&4K&co&el&6o&ar&2k&9i":
  60. cancel event
  61. if clicked slot is 12:
  62. if {kolor.%player%::1} is not set:
  63. if {rubiny.%player%} is less than 200:
  64. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  65. else:
  66. remove 200 from {rubiny.%player%}
  67. set {kolor.%player%::1} to true
  68. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  69. else:
  70. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  71. else if clicked slot is 13:
  72. if {kolor.%player%::2} is not set:
  73. if {rubiny.%player%} is less than 200:
  74. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  75. else:
  76. remove 200 from {rubiny.%player%}
  77. set {kolor.%player%::2} to true
  78. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  79. else:
  80. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  81. else if clicked slot is 14:
  82. if {kolor.%player%::3} is not set:
  83. if {rubiny.%player%} is less than 200:
  84. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  85. else:
  86. remove 200 from {rubiny.%player%}
  87. set {kolor.%player%::3} to true
  88. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  89. else:
  90. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  91. else if clicked slot is 15:
  92. if {kolor.%player%::5} is not set:
  93. if {rubiny.%player%} is less than 200:
  94. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  95. else:
  96. remove 200 from {rubiny.%player%}
  97. set {kolor.%player%::5} to true
  98. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  99. else:
  100. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  101. else if clicked slot is 16:
  102. if {kolor.%player%::6} is not set:
  103. if {rubiny.%player%} is less than 200:
  104. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  105. else:
  106. remove 200 from {rubiny.%player%}
  107. set {kolor.%player%::6} to true
  108. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  109. else:
  110. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  111. else if clicked slot is 21:
  112. if {kolor.%player%::7} is not set:
  113. if {rubiny.%player%} is less than 200:
  114. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  115. else:
  116. remove 200 from {rubiny.%player%}
  117. set {kolor.%player%::7} to true
  118. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  119. else:
  120. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  121. else if clicked slot is 22:
  122. if {kolor.%player%::8} is not set:
  123. if {rubiny.%player%} is less than 200:
  124. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  125. else:
  126. remove 200 from {rubiny.%player%}
  127. set {kolor.%player%::8} to true
  128. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  129. else:
  130. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  131. else if clicked slot is 23:
  132. if {kolor.%player%::9} is not set:
  133. if {rubiny.%player%} is less than 200:
  134. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  135. else:
  136. remove 200 from {rubiny.%player%}
  137. set {kolor.%player%::9} to true
  138. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  139. else:
  140. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  141. else if clicked slot is 24:
  142. if {kolor.%player%::a} is not set:
  143. if {rubiny.%player%} is less than 200:
  144. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  145. else:
  146. remove 200 from {rubiny.%player%}
  147. set {kolor.%player%::a} to true
  148. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  149. else:
  150. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  151. else if clicked slot is 25:
  152. if {kolor.%player%::b} is not set:
  153. if {rubiny.%player%} is less than 200:
  154. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  155. else:
  156. remove 200 from {rubiny.%player%}
  157. set {kolor.%player%::b} to true
  158. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  159. else:
  160. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  161. else if clicked slot is 30:
  162. if {kolor.%player%::d} is not set:
  163. if {rubiny.%player%} is less than 200:
  164. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  165. else:
  166. remove 200 from {rubiny.%player%}
  167. set {kolor.%player%::d} to true
  168. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  169. else:
  170. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  171. else if clicked slot is 31:
  172. if {kolor.%player%::e} is not set:
  173. if {rubiny.%player%} is less than 200:
  174. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  175. else:
  176. remove 200 from {rubiny.%player%}
  177. set {kolor.%player%::e} to true
  178. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  179. else:
  180. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  181. else if clicked slot is 32:
  182. if {kolor.%player%::f} is not set:
  183. if {rubiny.%player%} is less than 200:
  184. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  185. else:
  186. remove 200 from {rubiny.%player%}
  187. set {kolor.%player%::f} to true
  188. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  189. else:
  190. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  191. else if clicked slot is 33:
  192. if {kolor.%player%::0} is not set:
  193. if {rubiny.%player%} is less than 200:
  194. send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!"
  195. else:
  196. remove 200 from {rubiny.%player%}
  197. set {kolor.%player%::0} to true
  198. send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!"
  199. else:
  200. send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!"
  201. close player's inventory
  202. command /sklepik [<text>]:
  203. trigger:
  204. wait 1 tick
  205. open chest with 5 rows named "&e$ &6&lSKLEPIK &e$" to player
  206. wait 2 ticks
  207. set slot 0 of player's current inventory to light gray glass named " "
  208. loop 44 times:
  209. set slot loop-number of player's current inventory to light gray glass named " "
  210. set slot 1 of player's current inventory to black glass named " "
  211. set slot 10 of player's current inventory to black glass named " "
  212. set slot 19 of player's current inventory to black glass named " "
  213. set slot 28 of player's current inventory to black glass named " "
  214. set slot 37 of player's current inventory to black glass named " "
  215. set slot 18 of player's current inventory to rose red named "&4&lRUBINY" with lore "&cStan twojego konta: &a%{rubiny.%player%}%"
  216. set slot 21 of player's current inventory to iron ingot named "&e-=- &6Premium&e -=-" with lore "||&7Koszt zakupu rangi: &c750 &4&lRUBINOW&7!"
  217. set slot 22 of player's current inventory to gold ingot named "&d-=- &5Elita&d -=-" with lore "||&7Koszt zakupu rangi: &c1500 &4&lRUBINOW&7!"
  218. set slot 23 of player's current inventory to diamond item named "&a-=- &2Legenda &a-=-" with lore "||&7Kosz zakupu rangi: &c2500 &4&lRUBINOW&7!"
  219. set slot 24 of player's current inventory to diamond block named "&c-=- &4Ranga Wlasna &c-=-" with lore "||&7Kosz zakupu rangi: &c5000 &4&lRUBINOW&7!"
  220. set slot 25 of player's current inventory to pink dye named "&7-=- &4K&co&el&6o&ar&2k&9i &7-=-" with lore "||&7Kliknij aby przejsc na strone zakupu!"
  221. set slot 30 of player's current inventory to light green dye named "&7-=- &4K&co&el&6o&ar&2k&9i &fMieszanie &7-=-" with lore "||&7Kosz zakupu: &c1500 &4&lRUBINOW&7!"
  222. command /kolorki-kolo-sklepik:
  223. trigger:
  224. wait 2 ticks
  225. open chest with 5 rows named "&4K&co&el&6o&ar&2k&9i" to player
  226. wait 2 ticks
  227. set slot 0 of player's current inventory to light gray glass named " "
  228. loop 44 times:
  229. set slot loop-number of player's current inventory to light gray glass named " "
  230. set slot 1 of player's current inventory to black glass named " "
  231. set slot 10 of player's current inventory to black glass named " "
  232. set slot 19 of player's current inventory to black glass named " "
  233. set slot 28 of player's current inventory to black glass named " "
  234. set slot 37 of player's current inventory to black glass named " "
  235. set slot 18 of player's current inventory to rose red named "&4&lRUBINY" with lore "&cStan twojego konta: &a%{rubiny.%player%}%"
  236. set slot 12 of player's current inventory to 35:11 named "&1Granatowy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  237. set slot 13 of player's current inventory to 35:13 named "&2Ciemny Zielony" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  238. set slot 14 of player's current inventory to 35:9 named "&3Morski" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  239. set slot 15 of player's current inventory to 35:10 named "&5Fioletowy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  240. set slot 16 of player's current inventory to 41 named "&6Zloty" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  241. set slot 21 of player's current inventory to 35:8 named "&7Szary" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  242. set slot 22 of player's current inventory to 35:7 named "&8Ciemny Szary" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  243. set slot 23 of player's current inventory to 159:3 named "&9Ciemny Niebieski" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  244. set slot 24 of player's current inventory to 35:5 named "&aJasny Zielony" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  245. set slot 25 of player's current inventory to 35:3 named "&bJasny Niebieski" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  246. set slot 30 of player's current inventory to 35:2 named "&dRozowy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  247. set slot 31 of player's current inventory to 35:4 named "&eZolty" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  248. set slot 32 of player's current inventory to 35 named "&fBialy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  249. set slot 33 of player's current inventory to 35:15 named "&0Czarny" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"
  250. command /nazwa [<text>]:
  251. trigger:
  252. if size of {kolor.%player%::*} is smaller than 1:
  253. send "Nie masz zadnych kolorkow."
  254. stop
  255. if arg 1 is not set:
  256. send "Dostepne kolorki:"
  257. loop {kolor.%player%::*}:
  258. send "%loop-index%"
  259. if length of arg 1 is length of name of player:
  260. #Usuniecie nazwy.
  261. stop
  262. if uncoloured "%coloured arg 1%" is "%name of player%":
  263. loop length of arg 1 times:
  264. if subtext of arg 1 between index loop-number and loop-number is "&":
  265. add subtext of arg 1 between index loop-number + 1 and loop-number + 1 to {_temp::*}
  266. loop {_temp::*}:
  267. send "{kolor.%player%::%loop-value%}"
  268. if {kolor.%player%::%loop-value%} is not set:
  269. set {_err} to true
  270. send "Nie posiadasz koloru: %loop-value%"
  271. if {_err} is set:
  272. stop
  273. #Przyznanie koloru.
  274. #set displayname of player to coloured arg 1
  275. send "Tak, to twoj nick."
  276. stop
  277. send "To nie twoj nick."
  278. stop
Advertisement
Add Comment
Please, Sign In to add comment