#Mozesz konfigurować, usuwać co chcesz, ale linijke 2 zostaw :* #Autor: kuba300402 #Nazwa: Sklep #Wersja: 1.0 #Specjalnie dla skript.pl :) #Kierowałem się /sklep z serwera Dragon-Survival.eu :) variables: {monety::%player%} = 0 options: prefix1: &1S&2k&3l&4e&5p prefix2: &4Menu kupowania prefix3: &4Menu sprzedazy #kupowanie buyvip: 50 buysvip: 100 buyskrzynia: 20 buybejkon: 50 buytnt: 20 buyemerald: 15 #SPRZEDAWANIE sellcobel: 0.5 sellkoxy: 3 sellrefy: 1.5 sellobs: 1 #drop z magicznej skrzyni item1: dirt item2: stone item3: oak item4: diamond item5: gold_ingot item6: wool item7: obsidian item8: glass item9: coal command /sklep: trigger: open chest with 1 rows named "{@prefix1}" to player wait 1 tick format slot 0 of player with 1 of 35:5 named "&aKup" to run [execute player command "/kup"] format slot 1 of player with 1 of 35:14 named "&cSprzedaj" to run [execute player command "/sprzedaj"] format slot 8 of player with 1 of 397:3 named "&cInformacje" with lore "&9Twoj nick: &b%player%||&9Stan konta: &b%{monety::%player%}% &a pln" to be unstealable command /kup []: trigger: if arg 1 is not set: open chest with 2 rows named "{@prefix2}" to player wait 2 tick format slot 0 of player with 1 of 306 named "&aVip" with lore "&9Kup Vipa na całą edycje!||&9Koszt: &b{@buyvip} &apln" to close then run [execute player command "/kup vip"] format slot 1 of player with 1 of 314 named "&aSVip" with lore "&9Kup SVipa na całą edycje!||&9Koszt: &b{@buysvip} &apln" to close then run [execute player command "/kup svip"] format slot 2 of player with 1 of chest named "&c&lMagiczna skrynia" with lore "&9Koszt: &b{@buyskrzynia} &apln||&9Musisz miec wolne miejsce w eq!" to close then run [execute player command "/kup skrzynia"] format slot 3 of player with 1 of beacon named "&9B&8e&7a&6c&5o&4n&3!" with lore "&9Koszt: &b{@buybejkon} &apln||&9Musisz miec wolne miejsce w eq!" to close then run [execute player command "/kup bejkon"] format slot 4 of player with 64 of tnt named "&4T&fN&4T" with lore "&9Koszt: {@buytnt} &a pln||&9Musisz miec wolne miejsce w eq!" to close then run [execute player command "/kup tnt"] format slot 5 of player with 64 of emerald named "&aEmeraldy" with lore "&9Koszt: &b{@buyemerald} &apln||&9Musisz miec wolne miejsce w eq!" to close then run [execute player command "/kup emerald"] format slot 17 of player with 35:14 named "&4Wróć" with lore "&c&lNacisnij aby wrócić" to run [execute player command "/sklep"] if arg 1 is "vip": if {monety::%player%} is bigger than or equal to {@buyvip}: execute console command "pex user %player% group set vip" broadcast "&aGracz &b%player% &a zakupil &cVipa &a/sklep" remove {@buyvip} from {monety::%player%} else: send "&c&lNie masz tylu pieniędzy!" if arg 1 is "svip": if {monety::%player%} is bigger than or equal to {@buysvip}: execute console command "pex user %player% group set svip" broadcast "&aGracz &b%player% &a zakupil &cSVipa &a/sklep" remove {@buysvip} from {monety::%player%} else: send "&c&lNie masz tylu pieniędzy!" if arg 1 is "skrzynia": if {monety::%player%} is bigger than or equal to {@buyskrzynia}: loop 4 times: give chest named "&4Magiczna skrzynia" to player broadcast "&aGracz &b%player% &azakupil &cMagiczna Skrzynie &a/sklep" remove {@buyskrzynia} from {monety::%player%} else: send "&c&lNie masz tylu pieniędzy!" if arg 1 is "bejkon": if {monety::%player%} is bigger than or equal to {@buybejkon}: give beacon named "&9B&8e&7a&6c&5o&4n" to player broadcast "&aGracz &b%player% &azakupil &9B&8e&7a&6c&5o&4n&3a &a/sklep" remove {@buybejkon} from {monety::%player%} else: send "&c&lNie masz tylu pieniędzy!" if arg 1 is "emerald": if {monety::%player%} is bigger than or equal to {@buyemerald}: loop 4 times: give 16 emerald to player broadcast "&aGracz &b%player% &azakupil stak Emeraldów /sklep" remove {@buyemerald} from {monety::%player%} command /sprzedaj []: trigger: if arg 1 is not set: open chest with 2 rows named "{@prefix3}" to player wait 2 tick format slot 0 of player with 64 cobblestone named "&aBruk" with lore "&9Sprzedasz za: &b{@sellcobel} &apln" to close then run [execute player command "/sprzedaj cobel"] format slot 1 of player with 4 322:1 named "&aKoxy" with lore "&9Sprzedasz za: &b{@sellkoxy} &apln||&9Sprzedajesz 4 koxy!" to close then run [execute player command "/sprzedaj koxy"] format slot 2 of player with 8 322 named "&aRefile" with lore "&9Sprzedasz za: &b{@sellrefy} &apln||&9Sprzedasz 8 refów!" to close then run [execute player command "/sprzedaj refy"] format slot 3 of player with 64 obsidian named "&aObsydian" with lore "&9Sprzedasz za: &b{@sellobs} &apln||&9Sprzedajesz stak obsydianu!" to close then run [execute player command "/sprzedaj obs"] if arg 1 is "cobel": if player has 64 cobblestone: remove 64 cobblestone from player add {@sellcobel} to {monety::%player%} send "&aPoprawnie wymieniles cobblestone na pieniądze! :)" else: send "&cNie masz bruku!" if arg 1 is "koxy": if player has 4 322:1: remove 4 322:1 from player add {@sellkoxy} to {monety::%player%} send "&aPoprawnie wymieniles koxy na pieniądze! :)" else: send "&cNie masz koxów!" if arg 1 is "refy": if player has 8 322: remove 8 322 from player add {@sellrefy} to {monety::%player%} send "&aPoprawnie wymieniles refy na pieniądze! :)" else: send "&cNie masz refów!" if arg 1 is "obs": if player has 64 obsidian: remove 64 obsidian from player add {@sellobs} to {monety::%player%} send "&aPoprawnie wymieniles obsydian na pieniądze!" on script load: send "&cMilego dnia!" to console on right click: if player's tool is chest named "&4Magiczna skrzynia": wait 2 tick chance of 10%: drop {@item1} chance of 10%: drop {@item2} chance of 10%: drop {@item3} chance of 10%: drop {@item4} chance of 10%: drop {@item5} chance of 10%: drop {@item6} chance of 10%: drop {@item7} chance of 10%: drop {@item8} chance of 10%: drop {@item9} set event-block to air on first join: set {monety::%player%} to 0