Jump to content

How to avoid certain areas while webwalking


Recommended Posts

Posted (edited)

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

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