private void checkXpForSkill(Skill skill) throws InterruptedException {
if(random(1,100) == 1337) {
getTabs().open(Tab.SKILLS);
RS2Widget widget = widgets.get(320, skill.getChildId());
if(widget == null)
return;
Rectangle rect = widget.getBounds();
int x = random(rect.x, rect.x+rect.width);
int y = random(rect.y, rect.y+rect.height);
getMouse().move(x,y);
sleep(random(420, 1337));
getTabs().open(Tab.INVENTORY);
}
}
pls credit popmaster69punk1337 for the discovery thank you