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