Zummy Posted September 12, 2018 Posted September 12, 2018 Hey guys I'm trying to do some automated trading but I'm having problems with spam trading on occasion. Sometimes it keeps doing right-click -> Trade with. Account trading other account: Player trading = getPlayers().closest(this.trading_name); if (trading != null && !getTrade().isCurrentlyTrading()) { if (trading.interact("Trade with")) { new ConditionalSleep(12000, 1000) { @Override public boolean condition() throws InterruptedException { return getTrade().isCurrentlyTrading(); } }.sleep(); } } Receiving end: Player request = getTrade().getLastRequestingPlayer(); if (request != null && !getTrade().isCurrentlyTrading()){ if (request.interact("Trade with")){ new ConditionalSleep(5000, 500) { @Override public boolean condition() throws InterruptedException { return getTrade().isCurrentlyTrading(); } }.sleep(); } }
Naked Posted September 12, 2018 Posted September 12, 2018 trading.interact("Trade with"); Sleep.sleepUntil(() -> getTrade().isFirstInterfaceOpen(), 5000); Always seems to work for me.
BravoTaco Posted August 28, 2020 Posted August 28, 2020 1 hour ago, JordanAvery said: Hi there! I'm fairly new to automatic trading and besides that, I have a lot of other questions about that. Where do I find more information about that, or how can I learn more about automatic trading. Any specific forums, or any tips for a newbie? I would appreciate the help, as I'm really interested in trading and I find it very addictive. Also, any good trading platforms for a newbie out there? I keep bumping into investous.com and I like it a lot, but I'm open to other recommendations as well. Wrong type of trading my friend.