Jump to content

XP Checking class - makes sure your script doesn't get stuck.


FearMe

Recommended Posts

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 by FearMe
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...