Jump to content

Random pathwalking?


Recommended Posts

Posted
private Position[] path = {
            new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0),
            new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0)
    };


localWalker.walkPath(path);

That is Alek's example in the tutorial section for walking along a path.

 

If I use that method it will click the exact same spots over and over when walking right?

Is it possible to use walkPath(path) but make it click somewhere near the paths?(Antiban)

 

I have been using webWalking to areas but it seems creating own paths is better in some cases.

 

BR c0nan

Posted (edited)
private Position[] path = {
            new Position(3254, 3421, 0), new Position(3256, 3428, 0), new Position(3264, 3428, 0),
            new Position(3273, 3428, 0), new Position(3277, 3426, 0), new Position(3281, 3422, 0)
    };


localWalker.walkPath(path);

That is Alek's example in the tutorial section for walking along a path.

 

If I use that method it will click the exact same spots over and over when walking right?

Is it possible to use walkPath(path) but make it click somewhere near the paths?(Antiban)

 

I have been using webWalking to areas but it seems creating own paths is better in some cases.

 

BR c0nan

 

private static List<Position> path = Arrays.asList(new Position(3254 + random(-2, 1), 3421, 0),
new Position(3256 + random(-2, 1), 3428, 0), new Position(3264 + random(-2, 1), 3428, 0),
new Position(3273 + random(-2, 1), 3428, 0), new Position(3277 + random(-2, 1), 3426, 0),
new Position(3281 + random(-2, 1), 3422, 0));

Usage:

getWalking().walkPath(path);
Edited by progamerz
  • Like 1
Posted
private static List<Position> path = Arrays.asList(new Position(3254 + random(-2, 1), 3421, 0),
new Position(3256 + random(-2, 1), 3428, 0), new Position(3264 + random(-2, 1), 3428, 0),
new Position(3273 + random(-2, 1), 3428, 0), new Position(3277 + random(-2, 1), 3426, 0),
new Position(3281 + random(-2, 1), 3422, 0));

Usage:

getWalking().walkPath(path);

 

Thanks for the example code! 

I think I will go with this solution (also stated in previous answers)

 

Thanks for all answers & your time! smile.png

 

BR c0nan

 

 

  • Like 1
Posted

use area's to walk to, the spot on which it will click will always be random then

 

That is one solution however for walking a short distance (2 clicks on the map) using a random "Path position" is (imo) more suitable. This is of course not the case if the player could access the "Area" in one click on the map. smile.png

  • Like 1

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