Making an NPC conversation loop till condition is met

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
coffeepoppy
Noob
Noob
Posts: 5
Joined: 06 Jul 2014, 16:15
Noob?: Yes

Making an NPC conversation loop till condition is met

#1 Post by coffeepoppy »

I been trying to do this for like three days now and I can't get the damn thing to exchange all the investment tickets it has. It will exchange one, then go to get tickets. Which, it shouldn't. I desperately need help trying to get this thing to work :(

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
}}

coffeepoppy
Noob
Noob
Posts: 5
Joined: 06 Jul 2014, 16:15
Noob?: Yes

Re: Making an NPC conversation loop till condition is met

#2 Post by coffeepoppy »

So because no one helps in this server. Lol.
I think I fixed it.

###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
}

Post Reply