I would like to create a skript that processes a purchase, I have reached a point but I would like to add a number to the transition code (ID), which increases every time the command is executed
Code:
command /kalskmx:
trigger:
if balance of player is greater than 699:
give 10 eggs named "&bBullets" to player
send ""
send "&9&lPurchase successful!"
send ""
wait 1 second
send "&7Items: &9Bullets"
send "&7Quantity: &910"
send "&7Cost: &9700€"
set {_IDcode} to "4653: "
add 1 to {IDcode}
send "&7Purchase ID: {IDcode}"
make console execute command "eco take %executor% 700"
send ""
else:
send "&cYou don't have enough money to complete the transition!"
stop