I guess i didnt explain the issue well. Yes i do know what is the condition i need to use, but the thing i couldnt do is how do i stop the action that the bot is currently doing.
What if the other player comes close when the bot is not sleeping?
Like how do i make a conditional action which is like the conditional sleep but does the action until the condition is met?
So i am new to coding in osbot and i have been writing scripts for the last 2 month or so. Now i am trying to stop a method on a condition.
So for example:
bot will do woodcutter(), and if someone comes close to the bot i want to stop the woodcutter() and hop world. How could i do this? Thanks in advance.