Jump to content

Trying to perfect walking


Recommended Posts

Posted

For the past few days I've been trying to perfect walking. I'm making a script that walks the same path back and forth with ramps. No matter what I've tried it always misclicks and goes the slower route which makes it obvious that it's a bot. 

I've even tried making a path with every square on my desired path contained in my path array, but it still just attempts to click on the last tile of the path (which is visible on the minimap) but it obviously barely gets the click right and ends up walking around. I'm wondering if there is a way to make this smoother.

Thanks,

BW

Posted

Have u tried making a walking event and set the threshold?

 Position groundItemPosition = new Position(cords);
                        WalkingEvent walkingEvent = new WalkingEvent(groundItemPosition);
                        walkingEvent.setMinDistanceThreshold(0);
                        execute(walkingEvent);

this walks to that exakt tile, 
else you could do what i did with my questingScript, when webwalkign wanted to take shortcut to the farmer and ended up in the Sheep pen, i made 3 separate areas, and made it go to first, second and then third. (Not sure if this is good practice though) 

u could probably also (not 100% sure) use webwalkingevent and use a pathPreferenceProfile, to make sure it takes your desired path :)
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...