February 21, 20178 yr 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();
February 21, 20178 yr I'm not 100% sure but I think that code doesn't work do inventory.interact("Offer-All,"Item name");
February 21, 20178 yr 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
February 22, 20178 yr 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.
February 22, 20178 yr 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, 20178 yr by insomniaksam
February 25, 20178 yr 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, 20178 yr by Satire
June 3, 20178 yr 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
June 3, 20178 yr 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.
June 3, 20178 yr 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, 20178 yr by Zappster
Create an account or sign in to comment