Jump to content

getTrade.offerAll() Help


ov3r1d3

Recommended Posts

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();
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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