FearMe Posted January 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
pitoluwa Posted January 28, 2014 Share Posted January 28, 2014 You can also check for login state or client.getMyPlayer().isVisible() Link to comment Share on other sites More sharing options...
FearMe Posted January 28, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
pitoluwa Posted January 28, 2014 Share 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 Link to comment Share on other sites More sharing options...
FearMe Posted January 28, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
pitoluwa Posted January 28, 2014 Share Posted January 28, 2014 Nvm got it Link to comment Share on other sites More sharing options...
lolmanden Posted February 1, 2014 Share Posted February 1, 2014 Thanks for the contribute . Link to comment Share on other sites More sharing options...
McFirm Posted February 2, 2014 Share Posted February 2, 2014 That might work Link to comment Share on other sites More sharing options...