Jump to content

Webwalk wont use Altar Teleport?


Recommended Posts

Posted

I have created a webwalk event however it will not use the altar teleport I have in inventory, I have set use of teleports to true, any suggestions?

 

WebWalkEvent walkingevent = new WebWalkEvent(attackZone);
PathPreferenceProfile pathPreferenceProfile = new PathPreferenceProfile();
pathPreferenceProfile.setAllowObstacles(true);
pathPreferenceProfile.setAllowTeleports(true);
pathPreferenceProfile.checkInventoryForItems(true);
walkingevent.setEnergyThreshold(1);
walkingevent.setPathPreferenceProfile(pathPreferenceProfile);
execute(walkingevent);
new ConditionalSleep(1000, 500) {
    @Override
    public boolean condition() throws InterruptedException {
        log("We are now in attack zone");
        return (attackZone.contains(myPosition()));
    }
}.sleep();
Posted
8 minutes ago, Malcolm said:

Just interact with it manually if it's not working and then set your event from the location that you teleport from.

that isn't very effective if the target area is 5 tiles away, it will teleport and then run instead of just running there. I am guessing the webwalk doesnt consider the mind altar teleport?

11 minutes ago, Malcolm said:

Just interact with it manually if it's not working and then set your event from the location that you teleport from.

is there a way to determine : if my distance is > 20 tiles from the target area? 
I can try to incorporate it into the coding

Posted
8 minutes ago, investmentideas said:

that isn't very effective if the target area is 5 tiles away, it will teleport and then run instead of just running there. I am guessing the webwalk doesnt consider the mind altar teleport?

is there a way to determine : if my distance is > 20 tiles from the target area? 
I can try to incorporate it into the coding

map.distance

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