Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help crossing wilderness ditch with webWalking

Featured Replies

I'm probably not doing this right but I'm trying to make a webWalking event that breaks when the caution message appears when crossing the wilderness ditch. As of now it stops at the ditch for a while and then attempts to cross again some time after. This is what I'm working with at the moment.

My function.

void WalkToWithBreak(Position MyPosition, boolean BreakCondition) {
        WebWalkEvent MyEvent = new WebWalkEvent(MyPosition);
        MyEvent.setBreakCondition(new Condition() {
            @Override
            public boolean evaluate() {
                return BreakCondition;
            }
        });
        execute(MyEvent);
    }

 

Calling my function.

WalkToWithBreak(AssessmentZone.getRandomPosition(), getWidgets().get(475, 11, 1) != null && getWidgets().get(475, 11, 1).isVisible());

 

  • Author
21 minutes ago, Gunman said:

@Alakazizam Try high break priority instead

setHighBreakPriority(boolean highPriority)

Allows for break conditions to be checked during waits, default value is false.

 

I've tried

void WalkToWithBreak(Position MyPosition, boolean BreakCondition) {
        WebWalkEvent MyEvent = new WebWalkEvent(MyPosition);
        MyEvent.setHighBreakPriority(BreakCondition);
        execute(MyEvent);
    }

And that did not work. 

6 minutes ago, Alakazizam said:

 

I've tried

void WalkToWithBreak(Position MyPosition, boolean BreakCondition) {
        WebWalkEvent MyEvent = new WebWalkEvent(MyPosition);
        MyEvent.setHighBreakPriority(BreakCondition);
        execute(MyEvent);
    }

And that did not work. 

Oh you're using a boolean, it's value is not being rechecked. You're basically just sending false the whole time. Use something like BooleanSupplier

  • Author
50 minutes ago, Gunman said:

Oh you're using a boolean, it's value is not being rechecked. You're basically just sending false the whole time. Use something like BooleanSupplier

Yeah, I couldn't wrap my head around that so I made a work around lol. I have a LOT of experience with blueprint coding in Unreal Engine, but when it comes to actually WRITING code, I get lost. 

I just made a massive area that covers the wilderness. If I'm not in the area I run to a designated area by the ditch and interact with it and the warning widget and then carry on going where I was going lol.

 

1 hour ago, Alakazizam said:

Yeah, I couldn't wrap my head around that so I made a work around lol. I have a LOT of experience with blueprint coding in Unreal Engine, but when it comes to actually WRITING code, I get lost. 

I just made a massive area that covers the wilderness. If I'm not in the area I run to a designated area by the ditch and interact with it and the warning widget and then carry on going where I was going lol.

It's fairly simple

 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.