Dockid 8 Share Posted March 10, 2021 Can anyone help me solve this problem, when my bot goes to click 'cross' on the wilderness ditch it spams like a madman despite having a sleepUntil set. sleepUntil(() -> ditch.interact("Cross"), 5000); Link to comment Share on other sites More sharing options...
Hashtag 8357 Share Posted March 10, 2021 The condition is repeatedly being called for up to 5 seconds. In your case the condition is an interaction. Therefore, the interaction is executed repeatedly. You're not supposed to put the interaction in the sleepUntil. Put it in an if statement and if the interaction was successful, use sleepUntil until you're on the other side of the ditch Dockid 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now