Jump to content

How to check if a certain area is accessible


HunterRS

Recommended Posts

5 minutes ago, HunterRS said:

Could you explain this line?
I tried without it and it didnt work.

Check the docs: https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html#prefetchRequirements-org.osbot.rs07.script.MethodProvider-

Quote

public boolean prefetchRequirements(MethodProvider provider)


Generates the directions for this WebWalkEvent based on the requirements of PathPreferenceProfile. If no PathPreferenceProfile is declared, a default profile is set. If this method is not called prior to execution, it is called on event execution. You may only prefetch once for the event's instance.


Returns:
True if a destination was found and directions were created.

 

Edited by harrypotter
Link to comment
Share on other sites

1 hour ago, HunterRS said:

Ya saw this, still think I dont understand it fully

just creating the webwalkevent means nothing because the webwalkevent has no reference to your instance of script (this is why it does not do it on instantiation). do it with every line it provided, and it will work because prefetchRequirements() is what does that even if the webwalkevent isn't executed.

Link to comment
Share on other sites

9 hours ago, Team Cape said:

just creating the webwalkevent means nothing because the webwalkevent has no reference to your instance of script (this is why it does not do it on instantiation). do it with every line it provided, and it will work because prefetchRequirements() is what does that even if the webwalkevent isn't executed.

Ahhh I get it, ty very much :)

 

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