- Every time the waypoint number changes it updates a file in rom/logs/resumes/ folder with the file name and waypoint number. Then if you want to resume you can select 'resume' from the waypoint list or specify 'resume' as the path on the command line This will load the last waypoint that character was running and resume at the last waypoint number it was at (assuming the waypoint file has waypoints and the onload doesn't change the waypoint number).
Code: Select all
rom/bot path:resume
- Moved recently added code, that keeps casting click to cast skills till all mobs in range are dead, a little higher in the function to make sure it works properly.
- Something was breaking the cast, before all mobs in range were dead. I suspect it might have been the onleavecombat code. So I move the code above that and that fixed it.
- The bot makes no use of this feature. This is mainly for users with a little coding skill. Example,
This will find the closest waypoint to the player that lies between waypoint 2 and 34. You can also use tag names instead of numbers. Here is an example bit of code that uses a quest state to choose the range
Code: Select all
__WPL:getNearestWaypoint(player.X,player.Z,player.Y, 2, 34)
Code: Select all
if getQuestStatus(questname) == "incomplete" then __WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X,player.Z,player.Y,"Kill Start","Kill End")) else __WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X,player.Z,player.Y,"Return Start","At NPC")) end
- Fixed bug that caused error when starting the bot when displaying the client list.