Jump to content

SetWalkTo(false) not working


Recommended Posts

Posted
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!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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