Jump to content

Webwalking end point not random.


Aeonx

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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

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