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.

getAmountRemaining() is not working

Featured Replies

1. OSBot Version (do NOT put "current version", be specific) 2.4.136

2. A description of the issue. Include relevant logs. getGrandExchange().getAmountRemaining() will return the whole amount of the buyoffer instead of returning what you didn't buy.

For example, I made a buy offer of 50k air runes, 20k of them bought and 30k of them didn't. It will return 50k.

3. Are you receiving any errors in the client canvas or the logger?  no.

4. How can you replicate the issue? Buying an item over buylimit.

5. Has this issue persisted through multiple versions? If so, how far back? No clue.

  • Author
8 hours ago, Alek said:

Try getAmountTraded. These are coming directly from hooks.

That one will work just fine. I could calculate the correct amount remaining by doing getAmountRemaining() - getAmountTraded() but that could break if you decide to fix it.

 

20 minutes ago, The Undefeated said:

That one will work just fine. I could calculate the correct amount remaining by doing getAmountRemaining() - getAmountTraded() but that could break if you decide to fix it.

 

There's nothing to fix, it's a hook. 

  • Author
4 minutes ago, Alek said:

There's nothing to fix, it's a hook. 

I don't get it then? It's just returning the wrong thing you can check it yourself? You can't try a different hook or some shit? xD

 

Edited by The Undefeated

1 minute ago, The Undefeated said:

I don't get it then? It's just returning the wrong thing you can check it yourself?

A hook is data we are grabbing from the game without any manipulation. I don't think the hook is bad either, normally we would get some errors.

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.