Siema Wszystkim? Powiecie mi dlaczego w tym skrypcie nie otwiera mi się gui? Ale wiadomość po wejściu na region się pojawia...
on entering of region "sklep1":
send "&6Kucnij, aby otworzyc menu sklepu"
stop
on sneak toggle:
if region at player is "sklep1":
wait 1 tick
open chest with 1 rows named "&aMenu Sklep" to player
wait 2 ticks
format slot 3 of player with 1 of 35:5 named "&aKupowanie Przedmiotow" to run [make player execute "isklep5"]
format slot 5 of player with 1 of 35:14 named "&cSprzedawanie Przedmiotow" to run [make player execute "isklep6"]
command /isklep5:
trigger:
open chest with 2 rows named "&aKupowanie Przedmiotow" to player
wait 1 ticks
format slot 0 of player with 1 of 276 named "&aEq 4/3" with lore "&aIlosc&8: &6265||&aKoszt&8: &61000 &a$" to run [make player execute "isklep kupeq"]
format slot 1 of player with 1 of 278 named "&aKilof 5/3/3" with lore "&aIlosc&8: &61||&aKoszt&8: &6300 &a$" to run [make player execute "isklep kupkilof"]
format slot 2 of player with 1 of 49 named "&aObsydian" with lore "&aIlosc&8: &6265||&aKoszt&8: &6700 &a$" to run [make player execute "isklep kupobs"]
command /isklep [<text>]:
trigger:
if arg-1 is "kupobs":
if player's balance is less than 700:
send "&cBLAD: &4nie posiadasz wystarczajaco coinsow !!" to player
stop
else:
give 256 49 to player
remove 700 from player's balance
send "&aPomyslnie zakupiono 256 Obsydianu" to player
stop
if arg-1 is "kupeq":
if player's balance is less than 1000:
send "&cBLAD: &4nie posiadasz wystarczajaco Money !!" to player
execute player command "money"
stop
else:
give 1 diamond helmet of protection 4 and unbreaking 3 to player
give 1 diamond chestplate of protection 4 and unbreaking 3 to player
give 1 diamond leggings of protection 4 and unbreaking 3 to player
give 1 diamond boots of protection 4 and unbreaking 3 to player
remove 1000 from player's balance
send "&aPomyslnie zakupiono Set 4/3" to player
stop
if arg-1 is "kupkilof":
if player's balance is less than 300:
send "&cBLAD: &4nie posiadasz wystarczajaco coinsow !!" to player
stop
else:
give 1 diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3 to player
remove 300 from player's balance
send "&aPomyslnie zakupiono Kilof 5/3/3" to player
stop
command /isklep6:
trigger:
open chest with 6 rows named "&cSprzedawanie Przedmiotow" to player
wait 1 ticks
format slot 0 of player with 1 of 173 named "&a64 Blokow Wegla" with lore "&cZa sprzedasz otrzymasz&8:||&615 &a$" to run [make player execute "isklep2 sellwegiel64"]
format slot 1 of player with 1 of 152 named "&a64 Blokow Redstone" with lore "&cZa sprzedasz otrzymasz&8:||&620 &a$" to run [make player execute "isklep2 sellredstone64"]
format slot 2 of player with 1 of 57 named "&a64 Blokow Diamentow" with lore "&cZa sprzedasz otrzymasz&8:||&655 &a$" to run [make player execute "isklep2 selldiamenty64"]
format slot 3 of player with 1 of 41 named "&a64 Blokow Zlota" with lore "&cZa sprzedasz otrzymasz&8:||&660 &a$" to run [make player execute "isklep2 sellzloto64"]
format slot 4 of player with 1 of 42 named "&a64 Blokow Zelaza" with lore "&cZa sprzedasz otrzymasz&8:||&635 &a$" to run [make player execute "isklep2 sellzelazo64"]
format slot 5 of player with 1 of 152 named "&a64 Blokow Redstone" with lore "&cZa sprzedasz otrzymasz&8:||&620 &a$" to run [make player execute "isklep2 sellredstone64"]
command /isklep2 [<text>]:
trigger:
if arg 1 is "sellzloto64":
if player don't have 64 41:
send "&7Nie Posiadasz 64 blokow zlota!"
stop
else:
remove 64 41 from player
add 60 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow zlota"
stop
if arg 1 is "sellzelazo64":
if player don't have 64 42:
send "&7Nie Posiadasz 64 blokow zelaza!"
stop
else:
remove 64 42 from player
add 35 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow zelaza"
stop
if arg 1 is "sellwegiel64":
if player don't have 64 coal block:
send "&7Nie Posiadasz 64 blokow wegla!"
stop
else:
remove 64 coal block from player
add 15 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow wegla"
stop
if arg 1 is "sellredstone64":
if player don't have 64 152:
send "&7Nie Posiadasz 64 blokow redstone!"
stop
else:
remove 64 152 from player
add 20 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow redstone"
stop
if arg 1 is "selldiamenty64":
if player don't have 64 57:
send "&7Nie Posiadasz 64 blokow diamentow!"
stop
else:
remove 64 57 from player
add 55 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow diamentow"
stop
command /hmoney [<text>]:
permission: H.Sklep.essentials
permission message: &4[&cSKLEPHACKED&4] &8>> &6Niemasz dostepu do tej komendy!
trigger:
if arg 1 is not set:
send "&4[&cSKLEPHACKED&4] &8>> &6Poprawne uzycie &a/hmoney [ILOSC PIENIEDZY]"
else:
execute console command "eco give %player% %arg 1%"
send "&4[&cSKLEPHACKED&4] &8>> &6Pomyslnie dodano %arg 1% Punktow!"
Pytanie
kondziu2k 0
Siema Wszystkim? Powiecie mi dlaczego w tym skrypcie nie otwiera mi się gui? Ale wiadomość po wejściu na region się pojawia...
on entering of region "sklep1":
send "&6Kucnij, aby otworzyc menu sklepu"
stop
on sneak toggle:
if region at player is "sklep1":
wait 1 tick
open chest with 1 rows named "&aMenu Sklep" to player
wait 2 ticks
format slot 3 of player with 1 of 35:5 named "&aKupowanie Przedmiotow" to run [make player execute "isklep5"]
format slot 5 of player with 1 of 35:14 named "&cSprzedawanie Przedmiotow" to run [make player execute "isklep6"]
command /isklep5:
trigger:
open chest with 2 rows named "&aKupowanie Przedmiotow" to player
wait 1 ticks
format slot 0 of player with 1 of 276 named "&aEq 4/3" with lore "&aIlosc&8: &6265||&aKoszt&8: &61000 &a$" to run [make player execute "isklep kupeq"]
format slot 1 of player with 1 of 278 named "&aKilof 5/3/3" with lore "&aIlosc&8: &61||&aKoszt&8: &6300 &a$" to run [make player execute "isklep kupkilof"]
format slot 2 of player with 1 of 49 named "&aObsydian" with lore "&aIlosc&8: &6265||&aKoszt&8: &6700 &a$" to run [make player execute "isklep kupobs"]
command /isklep [<text>]:
trigger:
if arg-1 is "kupobs":
if player's balance is less than 700:
send "&cBLAD: &4nie posiadasz wystarczajaco coinsow !!" to player
stop
else:
give 256 49 to player
remove 700 from player's balance
send "&aPomyslnie zakupiono 256 Obsydianu" to player
stop
if arg-1 is "kupeq":
if player's balance is less than 1000:
send "&cBLAD: &4nie posiadasz wystarczajaco Money !!" to player
execute player command "money"
stop
else:
give 1 diamond helmet of protection 4 and unbreaking 3 to player
give 1 diamond chestplate of protection 4 and unbreaking 3 to player
give 1 diamond leggings of protection 4 and unbreaking 3 to player
give 1 diamond boots of protection 4 and unbreaking 3 to player
remove 1000 from player's balance
send "&aPomyslnie zakupiono Set 4/3" to player
stop
if arg-1 is "kupkilof":
if player's balance is less than 300:
send "&cBLAD: &4nie posiadasz wystarczajaco coinsow !!" to player
stop
else:
give 1 diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3 to player
remove 300 from player's balance
send "&aPomyslnie zakupiono Kilof 5/3/3" to player
stop
command /isklep6:
trigger:
open chest with 6 rows named "&cSprzedawanie Przedmiotow" to player
wait 1 ticks
format slot 0 of player with 1 of 173 named "&a64 Blokow Wegla" with lore "&cZa sprzedasz otrzymasz&8:||&615 &a$" to run [make player execute "isklep2 sellwegiel64"]
format slot 1 of player with 1 of 152 named "&a64 Blokow Redstone" with lore "&cZa sprzedasz otrzymasz&8:||&620 &a$" to run [make player execute "isklep2 sellredstone64"]
format slot 2 of player with 1 of 57 named "&a64 Blokow Diamentow" with lore "&cZa sprzedasz otrzymasz&8:||&655 &a$" to run [make player execute "isklep2 selldiamenty64"]
format slot 3 of player with 1 of 41 named "&a64 Blokow Zlota" with lore "&cZa sprzedasz otrzymasz&8:||&660 &a$" to run [make player execute "isklep2 sellzloto64"]
format slot 4 of player with 1 of 42 named "&a64 Blokow Zelaza" with lore "&cZa sprzedasz otrzymasz&8:||&635 &a$" to run [make player execute "isklep2 sellzelazo64"]
format slot 5 of player with 1 of 152 named "&a64 Blokow Redstone" with lore "&cZa sprzedasz otrzymasz&8:||&620 &a$" to run [make player execute "isklep2 sellredstone64"]
command /isklep2 [<text>]:
trigger:
if arg 1 is "sellzloto64":
if player don't have 64 41:
send "&7Nie Posiadasz 64 blokow zlota!"
stop
else:
remove 64 41 from player
add 60 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow zlota"
stop
if arg 1 is "sellzelazo64":
if player don't have 64 42:
send "&7Nie Posiadasz 64 blokow zelaza!"
stop
else:
remove 64 42 from player
add 35 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow zelaza"
stop
if arg 1 is "sellwegiel64":
if player don't have 64 coal block:
send "&7Nie Posiadasz 64 blokow wegla!"
stop
else:
remove 64 coal block from player
add 15 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow wegla"
stop
if arg 1 is "sellredstone64":
if player don't have 64 152:
send "&7Nie Posiadasz 64 blokow redstone!"
stop
else:
remove 64 152 from player
add 20 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow redstone"
stop
if arg 1 is "selldiamenty64":
if player don't have 64 57:
send "&7Nie Posiadasz 64 blokow diamentow!"
stop
else:
remove 64 57 from player
add 55 to player's balance
send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow diamentow"
stop
Edytowane przez kondziu2kcommand /hmoney [<text>]:
permission: H.Sklep.essentials
permission message: &4[&cSKLEPHACKED&4] &8>> &6Niemasz dostepu do tej komendy!
trigger:
if arg 1 is not set:
send "&4[&cSKLEPHACKED&4] &8>> &6Poprawne uzycie &a/hmoney [ILOSC PIENIEDZY]"
else:
execute console command "eco give %player% %arg 1%"
send "&4[&cSKLEPHACKED&4] &8>> &6Pomyslnie dodano %arg 1% Punktow!"
Odnośnik do komentarza
https://skript.pl/temat/20216-dlaczego-ten-skryt-nie-dzia%C5%82a/Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi