Page 1 of 1

Change waypoint type when stuck?

Posted: Mon Mar 19, 2012 5:42 am
by romaniac
Here's a suggestion for a new feature. When I use waypoints in TRAVEL mode to pass longer distances the bot usually outruns hostile mobs alonge the way. Occasionally it happens that the bot gets stuck by running into an obstacle and the mobs catch up, attack and kill the char while the bot tries to become unstuck. Due to the travel mode the bot does not fight back so even weak mobs will cause death eventually.

If you could add a feature to the bot to change the waypoint mode during stuck handling it would be possible to switch to RUN and thus defend yourself and survive.

Re: Change waypoint type when stuck?

Posted: Mon Mar 19, 2012 6:03 am
by lisa
I added in the ability for people to customize what happens at unstick tries 3,6 and 9.

So in the onload of the WP you could have

Code: Select all

function unStick3()
-- some fancy code here, fight back or just change waypoint type
end
So when bot does the 3rd unstick try it will do this code instead of the default unstick try.
You can make it do anything you want.

Re: Change waypoint type when stuck?

Posted: Mon Mar 19, 2012 1:54 pm
by BillDoorNZ
ahh..that was you that added that in Lisa? nice :)

I use it to call Rock5's teleport functions when the bot gets stuck to bypass obstacles....no one has even mentioned anything (and I do bot in public places to an extent - mainly auto running from place to place tho).

Anyway, works a treat, thx to you both :)