So i created a gui with skript-gui but there is a error that "5 rows named "&8&lRANGOK" is not an entity type (rangok.sk, line8:create a gui with virtual chest inventory with 5 rows named "&8&lRANGOK and shape "zxxxxxxxz", "zhhhhhhhz", "zh1h2h3hz", "zhhhhhhhz" and "zxxxxxxxz":")
i am on 1.8.9 and the Skript version is the latest for 1.8.9 and i have 1.2 skript-gui version
here is the whole skript
i am on 1.8.9 and the Skript version is the latest for 1.8.9 and i have 1.2 skript-gui version
here is the whole skript
Code:
options:
p: &7[&c&lSky&4&lMC]
command /rangok:
aliases: rang
usage: {@p} &7Helyes használata: &8/rangok
trigger:
create a gui with virtual chest inventory with 5 rows named "&8&lRANGOK" and shape "zxxxxxxxz", "zhhhhhhhz", "zh1h2h3hz", "zhhhhhhhz" and "zxxxxxxxz":
format gui slot "x" with gray stained glass pane named "&f"
format gui slot "z" with gray stained glass pane named "&f"
format gui slot "1" with paper named "&8[&a&lVIP&8] &fRang" with lore "&7Saját kit &650.000$":
if player's balance is more than 49999:
execute console command "/eco take %player% 50000"
execute console command "/lp user %player% parent set vip"
wait 5 ticks
else:
send "{@p} &cNincs elég pénzed"
close player's inventory
make gui slot "2" with paper named "&8[&a&lVIP&e&l+&8] &fRang" with lore "&7Saját kit + Előző rang jogai &6150.000$":
if player's balance is more than 149999:
execute console command "/eco take %player% 150000"
execute console command "/lp user %player% parent set vip+"
wait 5 ticks
else:
send "{@p} &cNincs elég pénzed"
close player's inventory
format gui slot "3" with paper named "&8[&3&lBoos&8] &fRang" with lore "&7Saját kit, AFK jog + Előző rangok jogai &6500.000$":
if player's balance is more than 499999:
execute console command "/eco take %player% 500000"
execute console command "/lp user %player% parent set boss"
wait 5 ticks
else:
send "{@p} &cNincs elég pénzed"
close player's inventory
open the last gui for the player