Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug [OSRS] Actor Health percentage seems incorrect

Joined
Feb 21, 2016
Messages
60
RuneMate Version: 2.56.0
Affected Games: OSRS (not sure about RS3)

Been working on a hobby project where I am writing a bot that kills chickens.
I'm trying to determine whether the chicken has died which I tried doing by several different ways.
Though I stumbled upon something that may be a bug.

When the player is in combat I logged the health of the chicken.
for short Players.getLocal().getTarget().getHealthGauge().getPercent()
This gave me 12, 8, 4 and 0.
Now I'm not sure how I should interpret these numbers but a chicken has 3 health points.

Haven't tried it with other combat npc's to be honest, so far only with chickens as that is the target of my bot.
It should give a percentage right? Having a percentage as an integer value, I'd expect a range between 0 - 100 (-1 as unavailable according to the API docs).

In the meanwhile I've changed my code to delaying execution while the target is valid with a timeout.
So I wouldn't have to check the HP of the target anymore. Though I thought I'd report this in case it is a bug.
 
Last edited:
Top