Page 1 of 1
Forcing a waypoint list?
Posted: Fri Jan 08, 2010 3:41 pm
by arntom
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
Re: Forcing a waypoint list?
Posted: Fri Jan 08, 2010 7:10 pm
by Administrator
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:
Where 'x' is a number.
Re: Forcing a waypoint list?
Posted: Sat Jan 09, 2010 4:25 am
by arntom
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
Re: Forcing a waypoint list?
Posted: Sat Jan 09, 2010 9:46 am
by Administrator
Then use the call to __WPL:setWaypointIndex(1) that I mentioned in my previous post directly after using loadPaths() in your code.
Re: Forcing a waypoint list?
Posted: Sat Jan 09, 2010 2:36 pm
by arntom
Administrator wrote:__WPL:setWaypointIndex(1);
works great!
Sorry that i am not understand you in your previous post.
Its not my first language

.