Jump to content

How to avoid certain areas while webwalking


Butters
 Share

Recommended Posts

Webwalk to the area before the conflicting area, then in the conflicting area use a manual path to walk. If you need to walk further just resume webwalking after you get past the problem area.

 

I use this idea for draynor's attacking tree when I walk from draynor -> grand exchange

 

1482093865.png

 

Example:

Area problem_area = new Area(...);
Area destination = new Area(...);
WebWalkEvent webEvent = new WebWalkEvent(destination);
webEvent.setEnergyThreshold(18);
webEvent.useSimplePath();
webEvent.setBreakCondition(new Condition() {
    @[member='Override']
    public boolean evaluate() {
        if (problem_area.contains(myPlayer())) {
            //build path here https://explv.github.io
            //use a foreach to loop through positions for the walkPath
            walking.walkPath(...);
            return true;
        } else
        return false;
    }
});
execute(webEvent);
Edited by Hayase
  • Like 2
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.

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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...