May 24, 20169 yr Hello how can i make my script eat food if the HP is 50% or whatever percent i put in the code to eat? I Know how to make it eat @ an HP level but not percent can someone help me? Thanks, Progamerz
May 24, 20169 yr private double hpPercent; public int onLoop() throws InterruptedException { hpPercent = getSkills().getDynamic(Skill.HITPOINTS) * 100 / getSkills().getStatic(Skill.HITPOINTS); return kek; }
May 24, 20169 yr Author private double hpPercent; public int onLoop() throws InterruptedException { hpPercent = getSkills().getDynamic(Skill.HITPOINTS) * 100 / getSkills().getStatic(Skill.HITPOINTS); return kek; } Thanks
Create an account or sign in to comment