FearMe Posted January 28, 2014 Posted January 28, 2014 (edited) Please note that Java is not my main programming language so excuse me if I did anything inefficiently or wrong. Just chuck this class in your script class, call it on #onStart() like this; private XPCheck x; public void onStart() { x = new XPCheck(Skill.MAGIC, Skill.SMITHING); x.start(300); } Also, make sure to call XPCheck.cancel() in your #onExit(), or it will keep checking, even when you end the script manually. Edited January 28, 2014 by FearMe
pitoluwa Posted January 28, 2014 Posted January 28, 2014 You can also check for login state or client.getMyPlayer().isVisible()
FearMe Posted January 28, 2014 Author Posted January 28, 2014 You can also check for login state or client.getMyPlayer().isVisible() I know how to do it, just didn't bother putting it in :P
pitoluwa Posted January 28, 2014 Posted January 28, 2014 So what's the point in checking XP? You can just check for player visibility and you know is it stuck or not
FearMe Posted January 28, 2014 Author Posted January 28, 2014 So what's the point in checking XP? You can just check for player visibility and you know is it stuck or not What? lol