Maybe Better Solution of "Unsticking"
Posted: Thu Apr 07, 2011 11:28 am
I have thought about unsticking bot
If it can't unstick 2 times, bot tries to get in one step back (example to waypoint 15) and lua code using and try to get the nearest waypoint from current position (in x,y,z position)... If it doesn't work then it tries to get backwards one more step again (this time waypoint 14) and tries to get nearest waypoint from current position (x,y,z position)... if it doesn't help it will go back to waypoint 13 and try
then maybe it can go back to current track again...
Or maybe you have a better idea to unstick bot
give examples, cause I am tired getting logged out while running instances (looting, and selling)
If it can't unstick 2 times, bot tries to get in one step back (example to waypoint 15) and lua code using
Code: Select all
__WPL:setWaypointIndex( __WPL:getNearestWaypoint(player.X, player.Z, player.Y ) );
Code: Select all
__WPL:setWaypointIndex( __WPL:getNearestWaypoint(player.X, player.Z, player.Y ) );
Code: Select all
__WPL:setWaypointIndex( __WPL:getNearestWaypoint(player.X, player.Z, player.Y ) );
Or maybe you have a better idea to unstick bot
give examples, cause I am tired getting logged out while running instances (looting, and selling)