happiness7 3 Posted November 2, 2017 Share Posted November 2, 2017 Hello. I write helper plugin, and me need code for pause/sleep all steps bot (questing. gethering, moving...) for some seconds. Link to comment Share on other sites More sharing options...
reapler 154 Posted November 2, 2017 Share Posted November 2, 2017 Hello @happiness7 this should fit: //minimum net framework 4.5 Task.Run(() => { Products.InPause = true; Thread.Sleep(6000); Products.InPause = false; }); If you also want to block plugin thread, just remove "Task.Run" happiness7 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