buyAuto, queue clear.

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
Thaize
Noob
Noob
Posts: 17
Joined: 19 Sep 2008, 22:16
Noob?: No

buyAuto, queue clear.

#1 Post by Thaize »

I know i've mentioned this in IRC but I didn't get a clear idea if this is a bug, so I thought i'd post it.

So when buyAuto queues and calls useTeleport, after it arrives at it's save map.. the queue is empty (or contains a client suspend). I'm not sure if this is intentional, but it screws with me as I'm hooking into processLockMap. My current solution is to hook teleport_send and track in my plugins scope if it was an autoBuy triggered teleport, if it was, i requeue buyAuto and return out of processLockMap.

Its either that or i could set ai_buyAuto timeout really low. :?

Any suggestions or comments on this would be great. I've tried for an hour or 2 to track where the queue is getting cleared but haven't had any luck.

Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: buyAuto, queue clear.

#2 Post by Bibian »

client_suspend only triggers in XKore when you click on the screen o_O
or send other input (except chatting)

Thaize
Noob
Noob
Posts: 17
Joined: 19 Sep 2008, 22:16
Noob?: No

Re: buyAuto, queue clear.

#3 Post by Thaize »

Ah, it's quite possible that i clicked the client to get it into the foreground while I was testing. I only recall seeing it once but included it in my post for completeness.

I'll post some debug output when I get around to testing it some more.

Locked