Code:
on chat:
if {amount.%player%} is set:
add to {amountt::%player%::*}
delete {amount.%player%}
on inventory click:
if inventory name of player's current inventory is "&2&lKEYS":
if clicked slot is 1:
cancel event
if 2499 *{amounttt.%player%} is less than {money.%player%}:
remove 2499 *{amounttt.%player%} from {money.%player%}
give player {amounttt.%player%} tripwire hook named "&a&lVIP Crate
ERRORS