Forcing a waypoint list?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
arntom
Posts: 15
Joined: Fri Dec 11, 2009 2:40 am

Forcing a waypoint list?

#1 Post by arntom » Fri Jan 08, 2010 3:41 pm

Dear Community,
is it possible to force a special waypoint list?
I want the bot have to use wp #1 to wp #12, not jumping to a more near point inside the list.
Because so he ignore points and the inner code. Thats critical for a logic follow of events.
Thxs 4 any idea

User avatar
Administrator
Site Admin
Posts: 5331
Joined: Sat Jan 05, 2008 4:21 pm

Re: Forcing a waypoint list?

#2 Post by Administrator » Fri Jan 08, 2010 7:10 pm

You're going to have to describe what you want more clearly. If you want to select a specific waypoint list, you use the path:<name> parameter when running the script. If you want to start at a specific waypoint within the list, you'd add this code to whatever it is you're trying to do:

Code: Select all

__WPL:setWaypointIndex(x);
Where 'x' is a number.

arntom
Posts: 15
Joined: Fri Dec 11, 2009 2:40 am

Re: Forcing a waypoint list?

#3 Post by arntom » Sat Jan 09, 2010 4:25 am

Hello,
in my case, the problem ist not choosing the waypoint list.
Inside a waypoint list are for example 12 waypoints. If i load this list with loadpath() or path:wplist.xml and my charakter stands near to waypoint #10 the bot start with wp #10. But i want to force him in special cases to start with waypoint #1.
Perhaps there is a simple solution.
Thxs so far 4 all

User avatar
Administrator
Site Admin
Posts: 5331
Joined: Sat Jan 05, 2008 4:21 pm

Re: Forcing a waypoint list?

#4 Post by Administrator » Sat Jan 09, 2010 9:46 am

Then use the call to __WPL:setWaypointIndex(1) that I mentioned in my previous post directly after using loadPaths() in your code.

arntom
Posts: 15
Joined: Fri Dec 11, 2009 2:40 am

Re: Forcing a waypoint list?

#5 Post by arntom » Sat Jan 09, 2010 2:36 pm

Administrator wrote:__WPL:setWaypointIndex(1);
works great!
Sorry that i am not understand you in your previous post.
Its not my first language :roll: .

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests