Jump to content

getTrade.offerAll() Help


Recommended Posts

Posted

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();
Posted
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

Posted
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.

  • Like 1
  • 3 months later...
Posted
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. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...