
What the character has. 1k tickets
What I want it to do. Change the 1k tickets through an npc
###This will exchange tickets###
automacro exchange{
inventory "Thanks Invest Ticket" = 1000
call ticketexchange
}
macro ticketexchange{
do ai manual
do move 165 56 prt_gld
pause 1
do talk @npc (165 50)
pause 1
do talk resp 2
pause 1
if
(inventory "Thanks Invest Ticket" > 0){
call ticket exchange}
else (inventory "Thanks Invest Ticket" = 0){call storagestuff}
pause 1
do ai manual
timeout 20
release exchange
}}