Shotdox Posted September 21, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
Chris Posted September 21, 2017 Share Posted September 21, 2017 yes there is 1 Quote Link to comment Share on other sites More sharing options...
Team Cape Posted September 21, 2017 Share Posted September 21, 2017 9 minutes ago, Chris said: yes there is Quote Link to comment Share on other sites More sharing options...
Chris Posted September 21, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Shotdox Posted September 21, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Juggles Posted September 21, 2017 Share Posted September 21, 2017 Walkingevent SetBreakCondition 1 Quote Link to comment Share on other sites More sharing options...