Jump to content

Webwalking end point not random.


Recommended Posts

Posted

Hello, I've used webwalking to walk into a specific area. While it says it should come to the nearest tile, it always comes to the same tile in that area, clicking on it multiple time, making it look very bot like.

 

Would anyone know what's causing that? I've used positions then, shuffled them, but it says that's deprecated.

 

Any solutions would be appreciated, thanks!

Posted

You can chuck getRandomPosition onto the end of your area like this:

getWalking().webWalk(yourArea.getRandomPosition())

It will randomize the position it ends up in, but it still spam clicks the last tile.

 

And what if the tile is not walkable, that would result in errors because there are no other tiles it can use.

Posted

If I understand webwalking correctly, which i'm not 100% on I've only glanced over it. Webwalking will simply find the closest way to reach that tile. maybe the next walk-able tile closest to your destination.

 

I've had the issue of getting errors because my tile was not walkable.

I think it was MGI that told me that I have to define an area or multiple positions.

If it takes a random position within that area and can't walk to it it will take the closest one that is walkable.

But this was a few updates ago, maybe this has been updated already

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