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.

Problem with crossing wilderness ditch

Featured Replies

Hello, i just started to getting into scripting for Osbot and faced a problem with crossing wilderness ditch. I searched forums and found couple of solutions but unfortunately none of them worked for me.

So my problem is when script is clicking on cross wilderness there is a pop-up with message  "Enter wilderness" script is waiting for several seconds before clicking on it but unfortuantly it just click again on "cross"

if i test this separately bu just manually clicking on "Cross wilderness" it is working but not all code together.

I would appreciate your help.

Thank you!

 

RS2Widget enterWild = getWidgets().getWidgetContainingText("Enter Wilderness");
RS2Object wildDitch = getObjects().closest("Wilderness Ditch");

if (wildDitch != null && !myPlayer().isAnimating()) {
    wildDitch.interact("Cross");
    sleep(10000);
    if(enterWild != null) {
        log("Enter Wilderness");
        enterWild.interact("Enter Wilderness");
        sleep(8000);
    }
}

Edited by kani339

do 

getWidgets().getWidgetContainingText("Enter Wilderness");

after you interacted with the ditch (use ConditionalSleep btw instead of just sleep)

You need to get the latest widget instance when you want to use it

  • Author

Thank you so much for your help!

So the only problem was that this element wasn't visible yet.

 

 

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.