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
}}
Making an NPC conversation loop till condition is met
Moderator: Moderators
-
- Noob
- Posts: 5
- Joined: 06 Jul 2014, 16:15
- Noob?: Yes
-
- Noob
- Posts: 5
- Joined: 06 Jul 2014, 16:15
- Noob?: Yes
Re: Making an NPC conversation loop till condition is met
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
}
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
}