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.

getTrade.offerAll() Help

Featured Replies

I am using this snippet of code to try and offer all of a particular item to the trade and it doesn't work. All it does is just hover over the item and won't click on offer. 

Am I doing something wrong ? If so could you please help as to how I should do it ???

 

Script.getTrade().offerAll(ItemId);
(new ConditionalSleep(10000) {
    public boolean condition() throws InterruptedException {
        return Script.getInventory().isEmpty();
    }
}).sleep();
3 hours ago, ov3r1d3 said:

I am using this snippet of code to try and offer all of a particular item to the trade and it doesn't work. All it does is just hover over the item and won't click on offer. 

Am I doing something wrong ? If so could you please help as to how I should do it ???

 


Script.getTrade().offerAll(ItemId);
(new ConditionalSleep(10000) {
    public boolean condition() throws InterruptedException {
        return Script.getInventory().isEmpty();
    }
}).sleep();

just remove Script.

getTrade().offerAll(ItemId);
(new ConditionalSleep(10000) {
    public boolean condition() throws InterruptedException {
        return getInventory().isEmpty();
    }
}).sleep();

it should work

21 hours ago, insomniaksam said:

just remove Script.


getTrade().offerAll(ItemId);
(new ConditionalSleep(10000) {
    public boolean condition() throws InterruptedException {
        return getInventory().isEmpty();
    }
}).sleep();

it should work

He's most likely got this in a separate class and is passing around the "Script" variable so he can make calls to the API. So no... removing script will not help this.

1 hour ago, Zappster said:

He's most likely got this in a separate class and is passing around the "Script" variable so he can make calls to the API. So no... removing script will not help this.

You're right, i just assumed he copied this to his main class.

Edited by insomniaksam

inventory.interact("Offer-All", ID);

This will work.  I use it in my scripts and there is no problems with it whatsoever. You can use a conditional sleep if you like.

Edited by Satire

AFAIK every single offerAll() in the API is broken. 

  • 3 months later...
On 2/25/2017 at 0:37 AM, dmmslaver said:

AFAIK every single offerAll() in the API is broken. 

holy shit this explains so much....

been trying every single offer code lol

 

 

On 2/22/2017 at 1:48 PM, Zappster said:

He's most likely got this in a separate class and is passing around the "Script" variable so he can make calls to the API. So no... removing script will not help this.

He shouldn't be using separate classes if he doesn't know a lick about OOP. 

20 minutes ago, Alek said:

He shouldn't be using separate classes if he doesn't know a lick about OOP. 

Gotta learn somewhere tho, and trying is the best way to learn imo

Edited by Zappster

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.