Jump to content

Smooth walking in areas where Webwalking doesn't extend to


k9thebeast

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 months later...
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?

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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