ov3r1d3 Posted February 21, 2017 Share Posted February 21, 2017 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(); Quote Link to comment Share on other sites More sharing options...
Juggles Posted February 21, 2017 Share Posted February 21, 2017 I'm not 100% sure but I think that code doesn't work do inventory.interact("Offer-All,"Item name"); Quote Link to comment Share on other sites More sharing options...
InsomniakSam Posted February 21, 2017 Share Posted February 21, 2017 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 Quote Link to comment Share on other sites More sharing options...
Zappster Posted February 22, 2017 Share Posted February 22, 2017 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 Quote Link to comment Share on other sites More sharing options...
InsomniakSam Posted February 22, 2017 Share Posted February 22, 2017 (edited) 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 February 22, 2017 by insomniaksam Quote Link to comment Share on other sites More sharing options...
Satire Posted February 25, 2017 Share Posted February 25, 2017 (edited) 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 February 25, 2017 by Satire Quote Link to comment Share on other sites More sharing options...
dmmslaver Posted February 25, 2017 Share Posted February 25, 2017 AFAIK every single offerAll() in the API is broken. Quote Link to comment Share on other sites More sharing options...
Phaibooty Posted June 3, 2017 Share Posted June 3, 2017 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 1 Quote Link to comment Share on other sites More sharing options...
Alek Posted June 3, 2017 Share Posted June 3, 2017 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. Quote Link to comment Share on other sites More sharing options...
Zappster Posted June 3, 2017 Share Posted June 3, 2017 (edited) 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 June 3, 2017 by Zappster 1 Quote Link to comment Share on other sites More sharing options...