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

Not sure if it's a bug or I'm overlooking something with tabs

Featured Replies

void activateStrength() {
        int CombatStyle = getConfigs().get(43);
        if (CombatStyle != 1) {
            log("click?");
            if(tabs.isOpen(Tab.ATTACK)) {
                log("tap?");
                mouse.click(random(650, 710), random(255, 290), false);
                log("click?");
            } else {
                log("this thing?");
                tabs.open(Tab.ATTACK);
            }
        }
    }

So, when I'm trying to run this function, I get outputs "click?" and "this thing?" spamming the logger. It actually does open up the Attack tab but the bot never sees it as being open. I've tried using tab.isOpen as well as seeing if a widget is not null and visible (which it was) and still nothing under that branch is firing off.

3 hours ago, Alakazizam said:
void activateStrength() {
        int CombatStyle = getConfigs().get(43);
        if (CombatStyle != 1) {
            log("click?");
            if(tabs.isOpen(Tab.ATTACK)) {
                log("tap?");
                mouse.click(random(650, 710), random(255, 290), false);
                log("click?");
            } else {
                log("this thing?");
                tabs.open(Tab.ATTACK);
            }
        }
    }

So, when I'm trying to run this function, I get outputs "click?" and "this thing?" spamming the logger. It actually does open up the Attack tab but the bot never sees it as being open. I've tried using tab.isOpen as well as seeing if a widget is not null and visible (which it was) and still nothing under that branch is firing off.

I believe due to yesterdays update some widgets changed, will check it with the devs :)

  • Author
1 hour ago, Khaleesi said:

I believe due to yesterdays update some widgets changed, will check it with the devs :)

Yeah I had to change widget numbers on a couple scripts, I picked a different widget than the one I was using and it started working. (593, 0)

19 minutes ago, Alakazizam said:

Yeah I had to change widget numbers on a couple scripts, I picked a different widget than the one I was using and it started working. (593, 0)

Ya they added some new widgets at some places, that's why I generally speaking never use widgets IDs.
I do use the root ID to filter out but I use text, action or spell name in 99% of the cases

  • Author
47 minutes ago, Khaleesi said:

Ya they added some new widgets at some places, that's why I generally speaking never use widgets IDs.
I do use the root ID to filter out but I use text, action or spell name in 99% of the cases

Thanks, I'll start trying to do that instead

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.