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.

Make getAmount support non notables

Featured Replies

First off I do not know if this is a bug in

getInventory().getItem(ItemID).getAmount()

But it only works on notables

 

 

1. A description of the suggestion

 

make a int method that would get the amount of a certain item that isnt a notable

 

2. How will this suggestion impact scripters and/or botters?

 

It would make item "tracking" in scripts alot easier to do in scripts would save time in making them moneymaking scripts with multiple item conversions

 

3. Post any examples such as code or pictures to supplement your description (optional)

 

EX

log("Clay In Inventory: " + getInventory().getItems().getItemAmount(ItemID));

This would return an int as said in the description

  • Administrator

Item returns a single stack of items, so that would be problematic to implement in the fashion you have suggested.

For the function you're looking for, take a look at getInventory().getAmount()

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.