Jump to content

WebWalking help


Recommended Posts

Posted

hey guys, I have been trying to get web walking to work with teleports and amulets to save me time making my own paths and interactions for heaps of walking; I swear i saw someone say that web walking does that automatically;

So my question is, how exactly do I get it to do that ? Do i just have the items in inventory or equipped (when its an amulet or ring) ? 

Thanks for any help !

 

Posted

something like this

public void webToDestination(Position destination){
    //log("Walking to " + destination);
    WebWalkEvent event = new WebWalkEvent(destination);
    PathPreferenceProfile ppp = new PathPreferenceProfile();
    ppp.setAllowTeleports(true);
    event.setPathPreferenceProfile(ppp);
    event.prefetchRequirements(getBot().getMethods());
    execute(event);
}

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