A moving merchant window box

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Romplayer
Posts: 120
Joined: Wed Jan 11, 2012 10:07 am

A moving merchant window box

#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

Code: Select all

player:openStore(npcname);
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?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: A moving merchant window box

#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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests