-
Romplayer
- Posts: 120
- Joined: Wed Jan 11, 2012 10:07 am
#1
Post
by Romplayer » Tue Aug 12, 2014 7:44 pm
What what be the best way to keep a merchant box open with a merchant that moves around? If the merchant moves too far the box closes and the bot gets stuck.
Right now I just include in the buying loop Kinda slows it down
Is there a way to tell if the store box closes then just reopen it with player:openStore(npcname);
Or can I make the bot follow the guy so the box doesn't close?
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#2
Post
by lisa » Tue Aug 12, 2014 11:01 pm
If you aren't worried about people seeing you "teleport" you can use this userfunction.
http://www.solarstrike.net/phpBB3/viewt ... 668#p36668
Otherwise yeah you could just do up some code in your WP to make sure you stay within XX distance of the NPC.
Who is online
Users browsing this forum: No registered users and 2 guests