Jump to content

Webwalk wont use Altar Teleport?


investmentideas

Recommended Posts

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();
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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