Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # [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 {kolor.%player%::1} 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 {kolor.%player%::1} to true
- 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 {kolor.%player%::2} 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 {kolor.%player%::2} to true
- 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 {kolor.%player%::3} 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 {kolor.%player%::3} to true
- 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 {kolor.%player%::5} 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 {kolor.%player%::5} to true
- 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 {kolor.%player%::6} 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 {kolor.%player%::6} to true
- 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 {kolor.%player%::7} 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 {kolor.%player%::7} to true
- 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 {kolor.%player%::8} 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 {kolor.%player%::8} to true
- 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 {kolor.%player%::9} 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 {kolor.%player%::9} to true
- 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 {kolor.%player%::a} 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 {kolor.%player%::a} to true
- 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 {kolor.%player%::b} 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 {kolor.%player%::b} to true
- 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 30:
- if {kolor.%player%::d} 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 {kolor.%player%::d} to true
- 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 {kolor.%player%::e} 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 {kolor.%player%::e} to true
- 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 {kolor.%player%::f} 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 {kolor.%player%::f} to true
- 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 {kolor.%player%::0} 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 {kolor.%player%::0} to true
- 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 [<text>]:
- 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!"
- command /nazwa [<text>]:
- trigger:
- if size of {kolor.%player%::*} is smaller than 1:
- send "Nie masz zadnych kolorkow."
- stop
- if arg 1 is not set:
- send "Dostepne kolorki:"
- loop {kolor.%player%::*}:
- send "%loop-index%"
- if length of arg 1 is length of name of player:
- #Usuniecie nazwy.
- stop
- if uncoloured "%coloured arg 1%" is "%name of player%":
- loop length of arg 1 times:
- if subtext of arg 1 between index loop-number and loop-number is "&":
- add subtext of arg 1 between index loop-number + 1 and loop-number + 1 to {_temp::*}
- loop {_temp::*}:
- send "{kolor.%player%::%loop-value%}"
- if {kolor.%player%::%loop-value%} is not set:
- set {_err} to true
- send "Nie posiadasz koloru: %loop-value%"
- if {_err} is set:
- stop
- #Przyznanie koloru.
- #set displayname of player to coloured arg 1
- send "Tak, to twoj nick."
- stop
- send "To nie twoj nick."
- stop
Advertisement
Add Comment
Please, Sign In to add comment