Shotdox Posted September 21, 2017 Posted September 21, 2017 Hey guys, So I'm making a script atm that is running around in the Wilderness doing stuff, and want to make sure it does not get pked. I know how to check for players and their level and stuff, but the problem is the bot is always finishing its current loop before logging. I there a way to run the checks over the top of the current loop and if it finds a PKer, to immediately stop whatever the bot is doing (such as webwalking) and start running priority code to avoid the PKer? Thanks for all your help.
Team Cape Posted September 21, 2017 Posted September 21, 2017 9 minutes ago, Chris said: yes there is
Chris Posted September 21, 2017 Posted September 21, 2017 (edited) breaking your loop -> check java breaking WebWalkEvent -> check api flag -> if flag -> do antipk code else -> do ur code? Edited September 21, 2017 by Chris
Shotdox Posted September 21, 2017 Author Posted September 21, 2017 (edited) Thanks @Chris I will look into this! Any hints into how I could update the flag continually? Like if my bot is doing a WebWalk, it doesn't seem to be running any of my code until that Event is over... Edited September 21, 2017 by Shotdox