Jump to content

Smooth walking in areas where Webwalking doesn't extend to


Recommended Posts

Posted

Hey All,

 

So I'm looking to walk a path within a dungeon that is not yet covered by Webwalker. I'm at a loss for how to do this and I'll show you what I've implemented so far

 

In method 1, the issue is that it is not smooth at all. It clicks on the first point and as its getting closer, it doesnt click on the second Position at all. In fact it arrives ~2 tiles away from the first position and proceeds to click on the exact position until it is standing on that exact square, not very human-like at all. 

 

As seen in method 2, webwalker doesnt work at all for this area. 

 

Any ideas on how to implement this? Is there some sort of "offset" I can specify in my walker? I've thought about using areas for my walker, but I'm afraid that it would still run into this problem and not appear human-like.


//Method 1 
List<Position> path = new ArrayList<Position();

path.add(new Position(100,200,0));
path.add(new Position(105,220,0));
path.add(new Position(123,240,0));

walker.walkPath(path)



//Method 2 -- DOESNT WORK
walker.webWalk(new Position(100,300,0))

@@venetox

Posted (edited)
LinkedList<Position> path = new LinkedList<Position>();

...

WalkingEvent e = new WalkingEvent();
e.setMinDistanceThreshold(2);
e.setMiniMapDistanceThreshold(2);
e.setPath(path);
execute(e);

Put positions closer together, max minimap radius - 1 distance between them otherwise it won't find a path to them

Edited by Token
  • Like 1
  • 2 months later...
Posted
LinkedList<Position> path = new LinkedList<Position>();

...

WalkingEvent e = new WalkingEvent();
e.setMinDistanceThreshold(2);
e.setMiniMapDistanceThreshold(2);
e.setPath(path);
execute(e);

Put positions closer together, max minimap radius - 1 distance between them otherwise it won't find a path to them

 

 

 

Whats the ....? its not path.add?

 

Posted

It is

 

ArrayList<Position> path = new ArrayList<Position>();

    path.add(new Position(3253,3420,0));

    path.add(new Position(3253,3426,0));

    path.add(new Position(3246,3429,0));

    path.add(new Position(3240,3429,0));

    path.add(new Position(3234,3430,0));

    path.add(new Position(3227,3429,0));

    path.add(new Position(3222,3429,0));

    path.add(new Position(3215,3429,0));

    path.add(new Position(3208,3429,0));

    path.add(new Position(3201,3428,0));

    path.add(new Position(3194,3429,0));

    path.add(new Position(3186,3429,0));

    path.add(new Position(3182,3434,0));

 

Is giving me a error, multiple markers at this line.. I remember back when another api was around I used a similar path adding system like this.

 

How do you add a path to just a list and then execute that path. Web walking is messing up my path badly. Ive been trying to add a alternative separate path but I dont exactly remember how I did it before.

NVM -_- theres a fucking tutorial for walking paths and my brain dead ass completely missed it.

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...