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.

Item.getAmount() Inventory.getAmount(id) broken maybe more

Featured Replies

Tested new 1.7.39 version.

Banking is working, but item amounts are wrongly detected.

 

Item[] invItems = inv.getItems();

Item.getAmount() returns id+1 instead of amount.

So if Itemid=303 then getAmount() returns 304.

Fix it please.

 

Thanks,

dark_xor.

Ya doesn't get the inventory amounts for me as well.

 

Inventory invent = client.getInventory();
Item Cash = invent.getItemForName("Coins");
 
if(Cash.getAmount() < 50 000){
 
}
 
Spams like crazy... even if it withdrew already and it has more then 50 000 or even if i already had more then 50 000 to start with...

Edited by yugod

Seriously, these are essential. Just shut down my whole gold farm -___- if anyone has workaround code PM me please

Seriously, these are essential. Just shut down my whole gold farm -___- if anyone has workaround code PM me please

 

At the moment it returns (ID+1) * Amount in stack, so use that. My personal scripts are working fine I just made copies and modified them accordingly.

  • Author

Seems like in 1.7.40 it is fixed. Thanks.

Doesn't deposit my items. Any1 getting the same error?

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.