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.