Jump to content

SetWalkTo(false) not working


JoRouss

Recommended Posts

InteractionEvent AcceptTradeEvent = new InteractionEvent(t_LastRequestingPlayer, "Trade with");
        AcceptTradeEvent.setWalkTo(false);
        AcceptTradeEvent.setWalkingDistanceThreshold(0);
        AcceptTradeEvent.setMaximumAttempts(1);

        //Accept the trade
        if(execute(AcceptTradeEvent).hasFinished()){
            new ConditionalSleep(3000, 500) {
                @Override
                public boolean condition() throws InterruptedException {
                    //Interrupt the pause if I'm trading with the Player
                    return getTrade().isCurrentlyTrading();
                }
            }.sleep();
        }

 

I want the bot to stay in place, to not move at all. I thought this would achieve what I wanted. I can't figure it out...

If someone trades me and run away, my bot will chase him. :(

 

Thanks for the help!

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...