Otóż mam pewien skrypt gdzie po kliknięciu na tabliczke włącza się gui niestety dla gracza to nie dziala. jedynie dla opa (skrypt na automaty z paczki SanFierro)
Spoiler
options:
tag: &fSan&9Fierro &f&l:&7
aliases:
cooked mutton = 424
cooked rabbit = 412
#---------------------------------------------------------------------------------#
on right click on sign:
if line 2 of clicked block is "&1Automat":
if line 3 of clicked block is "&9napoje":
execute console command "automat:napoje %player%"
stop
if line 3 of clicked block is "&9jedzenie":
execute console command "automat:jedzenie %player%"
on sign change:
if player has permission "srAutomat":
if line 1 is "automatN":
set line 1 to " "
set line 2 to "&1Automat"
set line 3 to "&9napoje"
stop
if line 1 is "automatJ":
set line 1 to " "
set line 2 to "&1Automat"
set line 3 to "&9jedzenie"
stop
#---------------------------------------------------------------------------------#
command /automat:napoje [<player>]:
executable by: console
trigger:
wait 2 tick
open chest with 5 rows named "&9&lAutomat z napojami" to player-arg
wait 2 tick
loop 5*9 times:
format slot loop-number - 1 of player-arg with 1 of light gray stained glass named " " to run "automat:napoje %player-arg%"
format slot 0 of player-arg with 1 of nether star named "&9Portfel: &f%player-arg's balance% &azl " to run "automat:napoje %player-arg%"
format slot 8 of player-arg with 1 of iron door item named "&cWyjscie" to close
format slot 9 of player-arg with 1 of water bottle named "&cCocaCola" with lore "&7Koszt: &f10zl&7. ||&9Woda: &f+1" to run "napoje:kup %player-arg% 10 &cCocaCola"
format slot 10 of player-arg with 1 of water bottle named "&a7UP" with lore "&7Koszt: &f50zl&7. ||&9Woda: &f+5" to run "napoje:kup %player-arg% 50 &a7UP"
format slot 11 of player-arg with 1 of water bottle named "&6Fanta" with lore "&7Koszt: &f50zl&7. ||&9Woda: &f+5" to run "napoje:kup %player-arg% 50 &6Fanta"
format slot 12 of player-arg with 1 of water bottle named "&6Mirinda" with lore "&7Koszt: &f50zl&7. ||&9Woda: &f+5" to run "napoje:kup %player-arg% 50 &6Mirinda"
format slot 13 of player-arg with 1 of water bottle named "&9Pepsi" with lore "&7Koszt: &f10zl&7. ||&9Woda: &f+1" to run "napoje:kup %player-arg% 10 &9Pepsi"
format slot 14 of player-arg with 1 of water bottle named "&aSprite" with lore "&7Koszt: &f50zl&7. ||&9Woda: &f+5" to run "napoje:kup %player-arg% 50 &aSprite"
format slot 15 of player-arg with 1 of water bottle named "&eLipton Ice Tea" with lore "&7Koszt: &f50zl&7. ||&9Woda: &f+5" to run "napoje:kup %player-arg% 50 &eLipton Ice Tea"
format slot 16 of player-arg with 1 of water bottle named "&8Monster" with lore "&7Koszt: &f200zl&7. ||&9Woda: &f+15" to run "napoje:kup %player-arg% 200 &8Monster"
format slot 17 of player-arg with 1 of water bottle named "&1RedBull" with lore "&7Koszt: &f200zl&7. ||&9Woda: &f+15" to run "napoje:kup %player-arg% 200 &1RedBull"
format slot 27 of player-arg with 1 of water bottle named "&2Lomza" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &2Lomza"
format slot 28 of player-arg with 1 of water bottle named "&2Lech" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &2Lech"
format slot 29 of player-arg with 1 of water bottle named "&2Perla" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &2Perla"
format slot 30 of player-arg with 1 of water bottle named "&8Zywiec" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &8Zywiec"
format slot 31 of player-arg with 1 of water bottle named "&8Okocim" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &8Okocim"
format slot 32 of player-arg with 1 of water bottle named "&2Zubr" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &2Zubr"
format slot 33 of player-arg with 1 of water bottle named "&4Warka" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &4Warka"
format slot 34 of player-arg with 1 of water bottle named "&fKasztelan" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &fKasztelan"
format slot 35 of player-arg with 1 of water bottle named "&6Tatra" with lore "&7Koszt: &f500zl&7. ||&9Woda: &f+20" to run "napoje:kup %player-arg% 500 &6Tatra"
command /napoje:kup [<player>] <number> [<text>]:
executable by: console
trigger:
if player-arg's money is greater or equal to arg 2:
if player-arg can hold 1 diamond:
remove arg 2 from player-arg's balance
give player-arg 1 water bottle named arg 3
play raw sound "random.orb" at player-arg with pitch 1 volume 0.5
send "{@tag} Kupiles &f%arg 3% &7za &f%arg 2%zl&7." to player-arg
else:
close player-arg's inventory
play raw sound "random.orb" at player-arg with pitch 2 volume 0.5
send "{@tag} Nie posiadasz miejsca w ekwipunku" to player-arg
else:
close player-arg's inventory
play raw sound "random.orb" at player-arg with pitch 2 volume 0.5
send "{@tag} Nie masz tyle pieniedzy" to player-arg
#---------------------------------------------------------------------------------#
command /automat:jedzenie [<player>]:
executable by: console
trigger:
wait 2 tick
open chest with 5 rows named "&9&lAutomat z jedzeniem" to player-arg
wait 2 tick
loop 5*9 times:
format slot loop-number - 1 of player-arg with 1 of light gray stained glass named " " to run "automat:jedzenie %player-arg%"
format slot 0 of player-arg with 1 of nether star named "&9Portfel: &f%player-arg's balance% &azl " to run "automat:jedzenie %player-arg%"
format slot 8 of player-arg with 1 of iron door item named "&cWyjscie" to close
format slot 9 of player-arg with 1 of cooked porkchop with lore "&7Koszt: &f80zl&7." to run "jedzenie:kup %player-arg% 80 cooked porkchop"
format slot 10 of player-arg with 1 of mushroom soup with lore "&7Koszt: &f10zl&7." to run "jedzenie:kup %player-arg% 10 mushroom soup"
format slot 11 of player-arg with 1 of steak with lore "&7Koszt: &f80zl&7." to run "jedzenie:kup %player-arg% 80 steak"
format slot 12 of player-arg with 1 of cooked mutton with lore "&7Koszt: &f50zl&7." to run "jedzenie:kup %player-arg% 50 cooked mutton"
format slot 13 of player-arg with 1 of cooked salmon with lore "&7Koszt: &f50zl&7." to run "jedzenie:kup %player-arg% 50 cooked salmon"
format slot 14 of player-arg with 1 of cooked rabbit with lore "&7Koszt: &f50zl&7." to run "jedzenie:kup %player-arg% 50 cooked rabbit"
format slot 15 of player-arg with 1 of cooked chicken with lore "&7Koszt: &f50zl&7." to run "jedzenie:kup %player-arg% 50 cooked chicken"
format slot 16 of player-arg with 1 of apple with lore "&7Koszt: &f10zl&7." to run "jedzenie:kup %player-arg% 10 apple"
format slot 17 of player-arg with 1 of cake item with lore "&7Koszt: &f10zl&7." to run "jedzenie:kup %player-arg% 10 cake item"
format slot 27 of player-arg with 1 of brown dye named "&7Batonik - &4KitKat" with lore "&7Koszt: &f40zl&7. ||&cSila: &f+2" to run "batonik:kup %player-arg% 40 &4KitKat"
format slot 28 of player-arg with 1 of brown dye named "&7Batonik - &6Lion" with lore "&7Koszt: &f200zl&7. ||&cSila: &f+10" to run "batonik:kup %player-arg% 200 &6Lion"
format slot 29 of player-arg with 1 of brown dye named "&7Batonik - &8Mars" with lore "&7Koszt: &f20zl&7. ||&cSila: &f+1" to run "batonik:kup %player-arg% 20 &8Mars"
format slot 30 of player-arg with 1 of brown dye named "&7Batonik - &8Snickers" with lore "&7Koszt: &f200zl&7. ||&cSila: &f+10" to run "batonik:kup %player-arg% 200 &8Snickers"
format slot 31 of player-arg with 1 of brown dye named "&7Batonik - &6Twix" with lore "&7Koszt: &f300zl&7. ||&cSila: &f+15" to run "batonik:kup %player-arg% 300 &6Twix"
format slot 32 of player-arg with 1 of brown dye named "&7Batonik - &63Bit" with lore "&7Koszt: &f140zl&7. ||&cSila: &f+7" to run "batonik:kup %player-arg% 140 &63Bit"
format slot 33 of player-arg with 1 of brown dye named "&7Batonik - &fBueno" with lore "&7Koszt: &f40zl&7. ||&cSila: &f+2" to run "batonik:kup %player-arg% 40 &fBueno"
format slot 34 of player-arg with 1 of brown dye named "&7Batonik - &bBounty" with lore "&7Koszt: &f160zl&7. ||&cSila: &f+8" to run "batonik:kup %player-arg% 160 &bBounty"
format slot 35 of player-arg with 1 of brown dye named "&7Batonik - &eNesquik" with lore "&7Koszt: &f190zl&7. ||&cSila: &f+9" to run "batonik:kup %player-arg% 450 &eNesquik"
command /batonik:kup [<player>] <number> [<text>]:
executable by: console
trigger:
if player-arg's money is greater or equal to arg 2:
if player-arg can hold 1 diamond:
remove arg 2 from player-arg's balance
give player-arg 1 brown dye named arg 3
play raw sound "random.orb" at player-arg with pitch 1 volume 0.5
send "{@tag} Kupiles &f%arg 3% &7za &f%arg 2%zl&7." to player-arg
else:
close player-arg's inventory
play raw sound "random.orb" at player-arg with pitch 2 volume 0.5
send "{@tag} Nie posiadasz miejsca w ekwipunku" to player-arg
else:
close player-arg's inventory
play raw sound "random.orb" at player-arg with pitch 2 volume 0.5
send "{@tag} Nie masz tyle pieniedzy" to player-arg
command /jedzenie:kup [<player>] <number> [<item>]:
executable by: console
trigger:
if player-arg's money is greater or equal to arg 2:
if player-arg can hold 1 diamond:
remove arg 2 from player-arg's balance
give player-arg arg 3
play raw sound "random.orb" at player-arg with pitch 1 volume 0.5
send "{@tag} Kupiles &f%arg 3% &7za &f%arg 2%zl&7." to player-arg
else:
close player-arg's inventory
play raw sound "random.orb" at player-arg with pitch 2 volume 0.5
send "{@tag} Nie posiadasz miejsca w ekwipunku" to player-arg
else:
close player-arg's inventory
play raw sound "random.orb" at player-arg with pitch 2 volume 0.5
send "{@tag} Nie masz tyle pieniedzy" to player-arg
Pytanie
TikTak 0
Otóż mam pewien skrypt gdzie po kliknięciu na tabliczke włącza się gui niestety dla gracza to nie dziala. jedynie dla opa (skrypt na automaty z paczki SanFierro)
//długie kody dajemy w spojler ~
Odnośnik do komentarza
https://skript.pl/temat/10980-problem-z-tabliczk%C4%85/Udostępnij na innych stronach
8 odpowiedzi na to pytanie
Rekomendowane odpowiedzi