Jump to content

Automatic trading


Zummy

Recommended Posts

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

 

Link to comment
Share on other sites

  • 1 year later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...