gornov.12345 2 Posted April 20 Share Posted April 20 Hello, in general, the essence is. That I am trying to write some plugin, which should freeze the bot when players appear nearby (it is important to not take a pause, namely stop bot, don't move). The problem is that even if I use the option with the waiting cycle of Thread.sleep (1000); The bot still ignores this and moves along the route to collect. I tried to use different methods, but it does not help. Is it possible somehow, during the Gatherer profile, stop the bot without pause? @Droidz I need help, because only you know, how Wrobot working... How I understood, Gatherer have high priority and if bot is not pause, it's moving along the route. Maybe is there way to stop this? Link to comment https://wrobot.eu/forums/topic/15656-how-freeze-bot-while-gatherer/ Share on other sites More sharing options...
Droidz 2756 Posted Wednesday at 01:37 PM Share Posted Wednesday at 01:37 PM Hello, You can execute your code in the product thread (gatherer) using, for example, the "OnBeforeCheckIfNeedToRunState" event. Sample : https://wrobot.eu/forums/topic/15429-plugin-for-robotsresponse-to-player-attack/?&_rid=1#findComment-69230 Link to comment https://wrobot.eu/forums/topic/15656-how-freeze-bot-while-gatherer/#findComment-70107 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