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.

can't click on the inventory tab

Featured Replies

Hi everyone. What am i doing wrong here. I used the same method for opening settings tab. But Inventory doesn't seem to work. It also logs that it's opening the inventory.

[INFO][Bot #1][12/01 09:06:11 PM]: Started script : SBTutorialIsland
[INFO][Bot #1][12/01 09:06:12 PM]: Opening inventory


		if (!getWidgets().containingText("Click on the flashing backpack").isEmpty()) {
					getTabs().open(Tab.INVENTORY);
					log("Opening inventory");
					sleep(random(600,700));
				}

Edited by OSRS Sebastian

getWidgets().getWidgetContainingText("Click on the flashing backpack icon to the right hand side") != null

though this is how I use it for tutorial island


    @Override
    public void run() throws InterruptedException {
        RS2Widget w = getWidgets().get(548, 54);
        WidgetDestination m = new WidgetDestination(getBot(),w);
        ClickMouseEvent g = new ClickMouseEvent(m);
        if(w != null && w.isVisible())
        {
            execute(g);
            //w.interact("Inventory");
            sleep(500 + random (100, 600));
        }
    }

or do fix it your way

                if (!getTabs().getOpen().equals(Tab.INVENTORY)) getTabs().open(Tab.INVENTORY);

Edited by Trinity

Hi everyone. What am i doing wrong here. I used the same method for opening settings tab. But Inventory doesn't seem to work. It also logs that it's opening the inventory.

[INFO][Bot #1][12/01 09:06:11 PM]: Started script : SBTutorialIsland
[INFO][Bot #1][12/01 09:06:12 PM]: Opening inventory


if (!getWidgets().containingText("Click on the flashing backpack").isEmpty()) {
					getTabs().open(Tab.INVENTORY);
					log("Opening inventory");
					sleep(random(600,700));
				}
Because the method used to open the inventory doesn't match the same widget. The blinking inventory does not equal the neutral inventory
  • Author

This worked! 

if(getWidgets().getWidgetContainingText("Click on the flashing backpack icon to the right hand side") != null) {

I just created a new account to check it. Worked like a charm! Thanks!

 

Hi everyone. What am i doing wrong here. I used the same method for opening settings tab. But Inventory doesn't seem to work. It also logs that it's opening the inventory.

[INFO][Bot #1][12/01 09:06:11 PM]: Started script : SBTutorialIsland
[INFO][Bot #1][12/01 09:06:12 PM]: Opening inventory


		if (!getWidgets().containingText("Click on the flashing backpack").isEmpty()) {
					getTabs().open(Tab.INVENTORY);
					log("Opening inventory");
					sleep(random(600,700));
				}

 

I recommend you use configs for Tutorial Island. It greatly simplifies everything.

 

For example, when config 281 == 30 you need to open the Inventory tab ( on the Survival stage of Tut Island )

if(script.getConfigs().get(281) == 30){

    script.getTabs().open(Tab.INVENTORY);
    new ConditionalSleep(1500) {
        @Override
        public boolean condition() throws InterruptedException {
            return script.getTabs().getOpen() == Tab.INVENTORY;
        }
    }.sleep();
}

 

  • 1 year later...
On 1-12-2015 at 9:30 PM, Explv said:

 

I recommend you use configs for Tutorial Island. It greatly simplifies everything.

 

For example, when config 281 == 30 you need to open the Inventory tab ( on the Survival stage of Tut Island )


if(script.getConfigs().get(281) == 30){

    script.getTabs().open(Tab.INVENTORY);
    new ConditionalSleep(1500) {
        @Override
        public boolean condition() throws InterruptedException {
            return script.getTabs().getOpen() == Tab.INVENTORY;
        }
    }.sleep();
}

 

Sorry for reviving an old thread but thank you for bringing this to my attention, you have posted this on several threads and everytime you get either ignored or they use their own shitty method to determine states of something. This (script.getConfigs().get(281)) is truly the best and most trustworthy way. Thanks again

Edited by tinnetju

2 hours ago, tinnetju said:

Sorry for reviving an old thread but thank you for bringing this to my attention, you have posted this on several threads and everytime you get either ignored or they use their own shitty method to determine states of something. This (script.getConfigs().get(281)) is truly the best and most trustworthy way. Thanks again

You do realize that the most of us that use other methods that you consider worse, do it because we're unaware that this is superior or exist at all right? 

2 hours ago, slazter said:

You do realize that the most of us that use other methods that you consider worse, do it because we're unaware that this is superior or exist at all right? 

That's why I thank him, for repeating it despite not getting thanked for it and still spreading this information

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.