# Naprawa bledu dla basehc.tasrv.com # 15.12.2020 variables: {coins.%player%} = 0 #Glowne on inventory click: if inventory name of player's current inventory is "&6&lSklep": if event-slot is 2: cancel event execute player command "sklep kup" if event-slot is 6: cancel event execute player command "sklep sell" if inventory name of player's current inventory is "&a&lKupno": cancel event if event-slot is 0: execute player command "sklep kupeme" if event-slot is 1: execute player command "sklep kupdhelm" if event-slot is 1: execute player command "sklep kupdklat" if event-slot is 1: execute player command "sklep kupdspod" if event-slot is 1: execute player command "sklep kupdbut" if event-slot is 1: execute player command "sklep kupbeacon" if event-slot is 1: execute player command "sklep kup6/3/3" if event-slot is 1: execute player command "sklep kupvip" if event-slot is 1: execute player command "sklep kupsvip" if event-slot is 1: execute player command "sklep kupswagg" if inventory name of player's current inventory is "&c&lSprzedaz": cancel event if event-slot is 0: execute player command "sklep sellemerald" if event-slot is 1: execute player command "sklep selldiamond" if event-slot is 2: execute player command "sklep sellgold" if event-slot is 3: execute player command "sklep sellzelaz" if event-slot is 4: execute player command "sklep sellcoal" if event-slot is 5: execute player command "sklep sellredstone" if event-slot is 6: execute player command "sklep selltnt" if event-slot is 7: execute player command "sklep sellbeacon" command /sklep []: trigger: arg 1 is not set: open chest with 1 rows named "&6&lSklep" to player set slot 0 of player's current inventory to gray glass pane named "" set slot 1 of player's current inventory to gray glass pane named "" set slot 2 of player's current inventory to 159:5 named "&a&lKupno" set slot 3 of player's current inventory to gray glass pane named "" set slot 4 of player's current inventory to 371 named "&6&lPieniadze" with lore "&7Pieniądze: &7%{coins.%player%}%" set slot 5 of player's current inventory to gray glass pane named "" set slot 6 of player's current inventory to 159:14 named "&c&lSprzedaz" set slot 7 of player's current inventory to gray glass pane named "" set slot 8 of player's current inventory to gray glass pane named "" arg 1 is "kup": open chest with 3 rows named "&a&lKupno" to player set slot 0 of player's current inventory to 64 emerald block named "" with lore "&7cena &c4.99" set slot 1 of player's current inventory to 1 diamond helmet of protection 4, unbreaking 3 named "" with lore "&7cena &c1.99" set slot 2 of player's current inventory to 1 diamond chestplate of protection 4, unbreaking 3 named "" with lore "&7cena &c1.99" set slot 3 of player's current inventory to 1 diamond leggings of protection 4, unbreaking 3 named "" with lore "&7cena &c1.99" set slot 4 of player's current inventory to 1 diamond boots of protection 4, unbreaking 3 named "" with lore "&7cena &c1.99" set slot 5 of player's current inventory to 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3 named "&7&l|&c&kX&7&l| &C&lKILOF &c&lPREDKOSCI &7&l|&c&kX&7&l|" with lore "&7cena &c9.99" set slot 8 of player's current inventory to 1 beacon named "" with lore "&7cena &c49.99" set slot 18 of player's current inventory to 1 gold ingot named "" with lore "&7cena &c99.99" set slot 19 of player's current inventory to 1 diamond named "" with lore "&7cena &c174.99" set slot 20 of player's current inventory to 1 322:1 named "" with lore "&7cena &c249.99" arg 1 is "sell": open chest with 3 rows named "&c&lSprzedaz" to player set slot 0 of player's current inventory to 64 emerald named "" with lore "&7cena sprzedazy &c0.06" set slot 1 of player's current inventory to 64 diamond named "" with lore "&7cena sprzedazy &c0.05" set slot 2 of player's current inventory to 64 gold ingot named "" with lore "&7cena sprzedazy &c0.05" set slot 3 of player's current inventory to 64 iron ingot named "" with lore "&7cena sprzedazy &c0.02" set slot 4 of player's current inventory to 64 263 named "" with lore "&7cena sprzedazy &c0.01" set slot 5 of player's current inventory to 64 tnt named "" with lore "&7cena sprzedazy &c4.50" set slot 6 of player's current inventory to 64 redstone named "" with lore "&7cena sprzedazy &c0.03" set slot 7 of player's current inventory to 1 beacon named "" with lore "&7cena sprzedazy &c34.99" #kupywanie arg 1 is "kupeme": if {coins.%player%} is less than 4.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: give 64 emerald block to player remove 4.99 from {coins.%player%} send "&8» &7Zakupiles &a&lSzmaragdy &7!" execute player command "sklep kup" arg 1 is "kupbeacon": if {coins.%player%} is less than 49.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: give 1 beacon to player remove 49.99 from {coins.%player%} send "&8» &7Zakupiles &b&lBeacon &7!" execute player command "sklep kup" arg 1 is "kupdhelm": if {coins.%player%} is less than 1.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: give 1 diamond helmet of protection 4, unbreaking 3 to player remove 1.99 from {coins.%player%} send "&8» &7Zakupiles &6&lHelm &7!" execute player command "sklep kup" arg 1 is "kupdklat": if {coins.%player%} is less than 1.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: give 1 diamond chestplate of protection 4, unbreaking 3 to player remove 1.99 from {coins.%player%} send "&8» &7Zakupiles &6&lKlate &7!" execute player command "sklep kup" arg 1 is "kupdspod": if {coins.%player%} is less than 1.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: give 1 diamond leggings of protection 4, unbreaking 3 to player remove 1.99 from {coins.%player%} send "&8» &7Zakupiles &6&lSpodnie &7!" execute player command "sklep kup" arg 1 is "kupdbut": if {coins.%player%} is less than 1.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: give 1 diamond boots of protection 4, unbreaking 3 to player remove 1.99 from {coins.%player%} send "&8» &7Zakupiles &6&lButy &7!" execute player command "sklep kup" arg 1 is "kup6/3/3": if {coins.%player%} is less than 9.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: give 1 diamond pickaxe of efficiency 6, unbreaking 3, fortune 3 named "&7&l|&c&kX&7&l| &C&lKILOF &c&lPREDKOSCI &7&l|&c&kX&7&l|" to player remove 9.99 from {coins.%player%} send "&8» &7Zakupiles &7&l|&c&kX&7&l| &C&lKILOF &c&lPREDKOSCI &7&l|&c&kX&7&l| &7!" execute player command "sklep kup" #Kupywanie rang arg 1 is "kupvip": if {coins.%player%} is less than 99.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: execute console command "pex user %player% group add VIP * 61d" remove 99.99 from {coins.%player%} send "&8» &7Zakupiles Rangę &a&lVIP &7!" execute player command "sklep kup" arg 1 is "kupsvip": if {coins.%player%} is less than 174.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: execute console command "pex user %player% group add sVIP * 61d" remove 174.99 from {coins.%player%} send "&8» &7Zakupiles Rangę &6&lS&e&lVIP &7!" execute player command "sklep kup" arg 1 is "kupswagg": if {coins.%player%} is less than 249.99: send "&cBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player execute player command "sklep kup" stop else: execute console command "pex user %player% group add swagger * 61d" remove 249.99 from {coins.%player%} send "&8» &7Zakupiles Rangę &e&lS&6&lw&c&la&d&lg&5&lg&a&le&9&lr &7!" execute player command "sklep kup" #Sprzedawanie arg 1 is "sellemerald": if player has 64 emerald: remove 64 emerald from player add 0.06 to {coins.%player%} send "&8» &7Sprzedano &a&lSzmaragdy" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 64 Szmaragdów" execute player command "sklep sell" stop arg 1 is "selldiamond": if player has 64 diamond: remove 64 diamond from player add 0.05 to {coins.%player%} send "&8» &7Sprzedano &9&lDiamenty" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 64 Diamentow" execute player command "sklep sell" stop arg 1 is "sellgold": if player has 64 gold ingot: remove 64 gold ingot from player add 0.05 to {coins.%player%} send "&8» &7Sprzedano &6&lZloto" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 64 Zlota" execute player command "sklep sell" stop arg 1 is "sellzelaz": if player has 64 iron ingot: remove 64 iron ingot from player add 0.02 to {coins.%player%} send "&8» &7Sprzedano &f&lZelazo" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 64 Zelaza" execute player command "sklep sell" stop arg 1 is "sellcoal": if player has 64 coal: remove 64 coal from player add 0.01 to {coins.%player%} send "&8» &7Sprzedano &0&lWegiel" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 64 Wegla" execute player command "sklep sell" stop arg 1 is "sellredstone": if player has 64 redstone: remove 64 redstone from player add 0.03 to {coins.%player%} send "&8» &7Sprzedano &c&lRedstone" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 64 Redstone" execute player command "sklep sell" stop arg 1 is "selltnt": if player has 64 tnt: remove 64 tnt from player add 4.50 to {coins.%player%} send "&8» &7Sprzedano &c&lTNT" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 64 TNT" execute player command "sklep sell" stop arg 1 is "sellbeacon": if player has 1 beacon: remove 1 beacon from player add 34.99 to {coins.%player%} send "&8» &7Sprzedano &b&lBeacon" execute player command "sklep sell" else: send "&4BLAD: &cNie posiadasz 1 Beacona" execute player command "sklep sell" stop