1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bug [OSRS] Actor Health percentage seems incorrect

Discussion in 'Developer Support' started by MaskedMouse, Aug 20, 2017.

  1. MaskedMouse

    Joined:
    Feb 21, 2016
    Messages:
    60
    Likes Received:
    11
    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.
     
    #1 MaskedMouse, Aug 20, 2017
    Last edited: Aug 22, 2017

Share This Page

Loading...