it doesn't give any errors but it doesnt work. When i open the gui and try to buy it doesn't do anything
My skript:
command /shop:
trigger:
open virtual chest inventory with size 3 named "&l&bShop" to player
format gui slot 10 of player with chest named "Box" with lore "100$" to run:
if player's money is greater than 99:
execute command "/eco take %player% 100"
give player 1 of chest named "Box"
send "Successfully bought" to player
close player's inventory
else:
send "Get more money" to player
format gui slot 13 of player with 10 chest named "Box" with lore "900$" to run:
if player's money is greater than 899:
execute command "/eco take %player% 900"
give player 10 of chest named "Box"
send "Successfully bought" to player
close player's inventory
else:
send "Get more money" to player
format gui slot 16 of player with 25 chest named "Box" with lore "2365$" to run:
if player's money is greater than 2364:
execute command "/eco take %player% 2365"
give player 25 of chest named "Box"
send "Successfully bought" to player
close player's inventory
else:
send "Get more money" to player
My skript:
command /shop:
trigger:
open virtual chest inventory with size 3 named "&l&bShop" to player
format gui slot 10 of player with chest named "Box" with lore "100$" to run:
if player's money is greater than 99:
execute command "/eco take %player% 100"
give player 1 of chest named "Box"
send "Successfully bought" to player
close player's inventory
else:
send "Get more money" to player
format gui slot 13 of player with 10 chest named "Box" with lore "900$" to run:
if player's money is greater than 899:
execute command "/eco take %player% 900"
give player 10 of chest named "Box"
send "Successfully bought" to player
close player's inventory
else:
send "Get more money" to player
format gui slot 16 of player with 25 chest named "Box" with lore "2365$" to run:
if player's money is greater than 2364:
execute command "/eco take %player% 2365"
give player 25 of chest named "Box"
send "Successfully bought" to player
close player's inventory
else:
send "Get more money" to player