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.

caching items problem

Featured Replies

The is standard mode problem

 

i need to manually open my equipment tab so that osb can cache my items. if i don't open it, My boolean will return false.  

return ctx.inventory.contains(data.ROD()) || ctx.equipment.contains(data.ROD());


ps. you guy gave me a fat ass headache. i figured it out once i open the equipment tab, and i saw my script come back alive. 

Edited by josedpay

  • Author

@Alek i edited my post i need to open the tab for it to know i have ring on.


Use equipment slots.

once i open it. It works fine again

eta?

 

I don't get it

 

Equipment/Inventory contains(), getAll(), filter() etc. etc. are not supposed to open a tab.

There may be a caching issue though, I've noticed that if an item changes state (breaks / changes) without the corresponding tab being open, the API methods may not see the change.

 

  • 3 weeks later...

I was unable to replicate this issue and will move this to Archive. The test proceeded as follows:

 

    @Override
    public void onStart() {
        for(Item i : getEquipment().getItems()){
            if(i != null){
                System.out.println("Found "+i.getName());
            }
        }
    }

 

1. Equipped player with Blue cape, Rune axe, and Blue d'hide chaps.

2. Open bank interface.

3. Started test script, output detected all items:

[iNFO][bot #1][05/08 02:55:49 PM]: Loaded 4 built-in random solvers!
Found Blue cape
Found Rune axe
Found Blue d'hide chaps
[iNFO][bot #1][05/08 02:55:49 PM]: Started script : Test
[iNFO][bot #1][05/08 02:55:50 PM]: Terminating script Test...
[iNFO][bot #1][05/08 02:55:50 PM]: Script Test has exited!

 

4. Stopped the test script. Deposited all worn items while keeping bank interface open (via bank button).

5. Started the test script, no items were detected in the inventory:

[iNFO][bot #1][05/08 02:56:17 PM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][05/08 02:56:17 PM]: Started script : Test
[iNFO][bot #1][05/08 02:56:20 PM]: Terminating script Test...
[iNFO][bot #1][05/08 02:56:20 PM]: Script Test has exited!

 

 

Please ensure you are adequately testing your scripts for issues not related to the client. If you feel that this verdict was incorrect, please submit a new bug report with SSCCE as I have provided.

Guest
This topic is now closed to further replies.

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.