Hi i need to get a count of the item stack in player's inventory code:
loop all items in player's inventory:
if loop-item is {Price::*}:
if loop-item is enchanted:
stop
add {Price::%id of loop-item%} to {money.%player%}
wait 1 tick
add {money.%player%} to player's balance
send "test"
Pls help
loop all items in player's inventory:
if loop-item is {Price::*}:
if loop-item is enchanted:
stop
add {Price::%id of loop-item%} to {money.%player%}
wait 1 tick
add {money.%player%} to player's balance
send "test"
Pls help