March 31, 20178 yr It listens if the other player accepted but never accepts the trade. What's the problem? @Override public int onLoop() throws InterruptedException { if (trade.isFirstInterfaceOpen()) { new ConditionalSleep(10000) { @Override public boolean condition() { return trade.getTheirOffers().getAmount("Coins") >= 10; } }.sleep(); log("slept untill coins are more than 10"); if (trade.getTheirOffers().getAmount("Coins") < 10) { log("checking coins if less than 10"); trade.declineTrade(); } else { new ConditionalSleep(10000) { @Override public boolean condition() { return trade.didOtherAcceptTrade(); } }.sleep(); log("checked if other player accepts"); if (!trade.didOtherAcceptTrade()) { trade.declineTrade(); } else { trade.acceptTrade(); } } } return random(700, 900); }
March 31, 20178 yr trade.getTheirOffers().getAmount("Coins") what if there are no coins in the trade window?
March 31, 20178 yr Accept trades Set a timer for 20 seconds or so for coins to appear if it's greater than 20s and no coins, decline, else accept.
April 1, 20178 yr Author 15 hours ago, Tylersbored said: trade.getTheirOffers().getAmount("Coins") what if there are no coins in the trade window? The trade gets declined. 13 hours ago, Juggles said: Accept trades Set a timer for 20 seconds or so for coins to appear if it's greater than 20s and no coins, decline, else accept. Other than the timer it is basically what I have now. I've set the timer to 10 just for testing purposes. I'm asking why acceptTrade is not working. When I put 10 coins in the trade and do not accept, the trade gets declined, but when I put 10 coins in the trade and accept, it will not accept and instead be stuck in an enless loop.
April 4, 20178 yr I'm pretty sure acceptTrade isn't working (possibly cause of a change in widget numbers?) I ran into a similar problem when trying to use it. Instead I just got the actual widgets for the accept buttons and used those
April 4, 20178 yr Author 5 hours ago, d0zza said: I'm pretty sure acceptTrade isn't working (possibly cause of a change in widget numbers?) I ran into a similar problem when trying to use it. Instead I just got the actual widgets for the accept buttons and used those Haven't thought of that. Will try to get that working. Thank you