# [00] [01] [02] [03] [04] [05] [06] [07] [08] # [09] [10] [11] [12] [13] [14] [15] [16] [17] # [18] [19] [20] [21] [22] [23] [24] [25] [26] # [27] [28] [29] [30] [31] [32] [33] [34] [35] # [36] [37] [38] [39] [40] [41] [42] [43] [44] variables: {rubiny.%player%} = 0 on join: if {rubiny.%player%} is not set: set {rubiny.%player%} to 0 on inventory click: if inventory name of player's current inventory is "&e$ &6&lSKLEPIK &e$": cancel event if clicked slot is 25: execute player command "kolorki-kolo-sklepik" else if clicked slot is 21: if {rubiny.%player%} is less than 750: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 750 from {rubiny.%player%} set {ranga::%player%} to "&e-(&6Premium&e)-" set {color.nicku.%player%} to "&7" set {rozdzielnik.%player%} to {rozdzielnik.vip} set {color.chatu.%player%} to "&e" execute console command "pex user %player% group set vip" execute console command "bc-cons %{nag}%" execute console command "bc-cons %{wiad.vip}% &6%player% %{wiad.vip2}%" execute console command "bc-cons %{wiad.vip3}%" execute console command "bc-cons %{nag}%" else if clicked slot is 22: if {rubiny.%player%} is less than 1500: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 1500 from {rubiny.%player%} set {ranga::%player%} to "&d-(&5Elita&d)-" set {color.nicku.%player%} to "&7" set {rozdzielnik.%player%} to {rozdzielnik.elita} set {color.chatu.%player%} to "&d" execute console command "pex user %player% group set elita" execute console command "bc-cons %{nag}%" execute console command "bc-cons %{wiad.elita}% &5%player% %{wiad.elita2}%" execute console command "bc-cons %{wiad.elita3}%" execute console command "bc-cons %{nag}%" else if clicked slot is 23: if {rubiny.%player%} is less than 2500: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 2500 from {rubiny.%player%} set {ranga::%player%} to "&2-(&aLegenda&2)-" set {color.nicku.%player%} to "&7" set {rozdzielnik.%player%} to {rozdzielnik.legend} set {color.chatu.%player%} to "&a" execute console command "pex user %player% group set legenda" execute console command "bc-cons %{nag}%" execute console command "bc-cons %{wiad.legenda}% &a%player% %{wiad.legenda2}%" execute console command "bc-cons %{wiad.legenda3}%" execute console command "bc-cons %{nag}%" close player's inventory else if inventory name of player's current inventory is "&4K&co&el&6o&ar&2k&9i": cancel event if clicked slot is 12: if {granatowy.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {granatowy.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 13: if {ciemny.zielony.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {ciemny.zielony.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 14: if {morski.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {morski.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 15: if {fioletowy.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {fioletowy.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 16: if {zloty.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {zloty.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 21: if {szary.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {szary.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 22: if {ciemny.szary.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {ciemny.szary.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 23: if {ciemny.niebieski.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {ciemny.niebieski.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 24: if {jasny.zielony.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {jasny.zielony.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 25: if {jasny.niebieski.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {jasny.niebieski.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 31: if {zolty.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {zolty.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 32: if {bialy.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {bialy.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" else if clicked slot is 33: if {czarny.%player%} is not set: if {rubiny.%player%} is less than 200: send "&3&lMc&b&lSave &c-> &4Nie masz wystarczajacej ilosci rubinow!" else: remove 200 from {rubiny.%player%} set {czarny.%player%} to now send "&3&lMc&b&lSave &a-> &2Pomyslnie dokonano zakupu!" else: send "&3&lMc&b&lSave &c-> &4Masz juz ten kolor!" close player's inventory command /sklepik []: trigger: wait 1 tick open chest with 5 rows named "&e$ &6&lSKLEPIK &e$" to player wait 2 ticks set slot 0 of player's current inventory to light gray glass named " " loop 44 times: set slot loop-number of player's current inventory to light gray glass named " " set slot 1 of player's current inventory to black glass named " " set slot 10 of player's current inventory to black glass named " " set slot 19 of player's current inventory to black glass named " " set slot 28 of player's current inventory to black glass named " " set slot 37 of player's current inventory to black glass named " " set slot 18 of player's current inventory to rose red named "&4&lRUBINY" with lore "&cStan twojego konta: &a%{rubiny.%player%}%" set slot 21 of player's current inventory to iron ingot named "&e-=- &6Premium&e -=-" with lore "||&7Koszt zakupu rangi: &c750 &4&lRUBINOW&7!" set slot 22 of player's current inventory to gold ingot named "&d-=- &5Elita&d -=-" with lore "||&7Koszt zakupu rangi: &c1500 &4&lRUBINOW&7!" set slot 23 of player's current inventory to diamond item named "&a-=- &2Legenda &a-=-" with lore "||&7Kosz zakupu rangi: &c2500 &4&lRUBINOW&7!" 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!" 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!" 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!" command /kolorki-kolo-sklepik: trigger: wait 2 ticks open chest with 5 rows named "&4K&co&el&6o&ar&2k&9i" to player wait 2 ticks set slot 0 of player's current inventory to light gray glass named " " loop 44 times: set slot loop-number of player's current inventory to light gray glass named " " set slot 1 of player's current inventory to black glass named " " set slot 10 of player's current inventory to black glass named " " set slot 19 of player's current inventory to black glass named " " set slot 28 of player's current inventory to black glass named " " set slot 37 of player's current inventory to black glass named " " set slot 18 of player's current inventory to rose red named "&4&lRUBINY" with lore "&cStan twojego konta: &a%{rubiny.%player%}%" set slot 12 of player's current inventory to 35:11 named "&1Granatowy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 13 of player's current inventory to 35:13 named "&2Ciemny Zielony" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 14 of player's current inventory to 35:9 named "&3Morski" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 15 of player's current inventory to 35:10 named "&5Fioletowy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 16 of player's current inventory to 41 named "&6Zloty" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 21 of player's current inventory to 35:8 named "&7Szary" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 22 of player's current inventory to 35:7 named "&8Ciemny Szary" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 23 of player's current inventory to 159:3 named "&9Ciemny Niebieski" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 24 of player's current inventory to 35:5 named "&aJasny Zielony" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 25 of player's current inventory to 35:3 named "&bJasny Niebieski" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 30 of player's current inventory to 35:2 named "&dRozowy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 31 of player's current inventory to 35:4 named "&eZolty" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 32 of player's current inventory to 35 named "&fBialy" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!" set slot 33 of player's current inventory to 35:15 named "&0Czarny" with lore "||&7Koszt zakupu: &c200 &4&lRUBINOW&7!"