Jump to content

Webwalking says success but walks to tile next to target


Polymorphism

Recommended Posts

In one of my scripts, there is a safespot tile the player should be moved back to under certain conditions. I have the conditions laid out properly, as the webwalking event is firing (also another issue, seems to take it at least 2 seconds to start walking)

It's obvious that the final destination had not been reached but it's sitting there indefinitely saying it had been, causing the script to hang a flood the logger. (the safespot is that tucked away corner of the bones)

Below is some code, please don't nag about the sleeping. Dynamic sleeping is irrelevant in this snippet

 

5cf07ee691.png cc36cc1e1d.png

Link to comment
Share on other sites

4 minutes ago, Xerion said:

Use the walking event. This way you can set the minimal distance threshold. I believe the default is 3 so that's why the method returns true when you are not standing on the exact position.

So assuming threshold=1 would be exact position or threshold=0 would be? I'm giving this a go, still new to this API so haven't learned the ins and outs

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