public override int Loop() { // Script logic goes here if (LocalPlayer.GetCurrentHealth() > 30 && !Movement.IsMoving() && Skills.GetLevel(Skill.ATTACK) < 10) { Npcs.GetNearest().DoAction(Action.ATTACK); } // The return value from the main loop is how long the script waits (in miliseconds) before running again. // This would be handled by Rabot behind the scene. return(600); }