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.

Bank contains bug?

Featured Replies

My script that got super strengh potions from the bank is no longer working. I went to check the reason, and when I log contains("Super strength(4)") it it returns false, but when using the potion id, it returns true.

log(getBank().contains(2440)); //TRUE
log(getBank().contains("Super strength(4)")); //FALSE

It's a bug in the api?

if(getBank().contains("Super strength(4)")){
    log("true");
}else{
    log("false");
}

it showing true for me in mirror mode

maybe try reloading osbot and rs client

[INFO][Bot #1][06/18 08:31:02 PM]: Started script : TEST SCRIPT
[INFO][Bot #1][06/18 08:31:02 PM]: true
[INFO][Bot #1][06/18 08:31:03 PM]: true
[INFO][Bot #1][06/18 08:31:04 PM]: true

log("Try: " + getBank().contains("Super strength(4)"));

[INFO][Bot #1][06/18 08:34:37 PM]: true
[INFO][Bot #1][06/18 08:34:37 PM]: Try: true
[INFO][Bot #1][06/18 08:34:38 PM]: true
[INFO][Bot #1][06/18 08:34:38 PM]: Try: true

I ran a test as well and getBank().contains("Strength potion(4)) seems to be working fine.

6 hours ago, Heiz said:

My script that got super strengh potions from the bank is no longer working. I went to check the reason, and when I log contains("Super strength(4)") it it returns false, but when using the potion id, it returns true.

log(getBank().contains(2440)); //TRUE
log(getBank().contains("Super strength(4)")); //FALSE

It's a bug in the api?

If you are using mirror this can happen on items names somehow.
If you restart mirror it should be fixed ^^

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.