Page 1 of 1

Merchant Function issue

Posted: Sat Nov 20, 2010 12:14 pm
by Alkaiser
On occasion, the merchant function doesn't actually click through to the store interface, but will go through the players inventory trying to sell everything that it has configured to sell anyway. The problem is that this can REALLY screw up the players current equipment because, if any of the items the bot tries to sell can be equipped, they get equipped.

I was wondering if it would be possible to add a check to make sure the NPC store interface is actually open before trying to sell items.

Re: Merchant Function issue

Posted: Sat Nov 20, 2010 6:57 pm
by rock5
It probably can't be done for all npcs because you don't know what will open but for merchants I'm pretty sure they all start with a speak frame. So you could check to see if the speak frame is open then select the shop option and see if the shop frame is open. Or just see if the shop frame is open at the end.

Re: Merchant Function issue

Posted: Sat Nov 20, 2010 8:12 pm
by rock5
Ok I committed this to rev 521.

I simply had it check the StoreFrame before doing any of the store functions.