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 Health.getCurrentPercent() and other Skill.CONSTITUTION issues

s̶c̶r̶i̶p̶t̶ bot*
Joined
Aug 23, 2015
Messages
2,232
So it appears that Health.getCurrentPercent() works sometimes and will randomly flake out. I haven't figured out what causes this, and I also cannot confirm if this occurred prior the recent OSRS update or not.

From my understanding Health.getCurrentPercent should return Skill.CONSTITUTION.getCurrentLevel() / Skill.CONSTITUTION.getBaseLevel() * 100.

Here is a log of my bot and its health never changed and stayed at max the entire duration of this log.

bot.healPercent is the percentage where, if under, trigger heal.

Code:
Root -> Waiting on GUI...  false
Health.getCurrentPercent(): 1
bot.healPercent: 0.25
Branch: IsAttacking: true
Currently Attacking
Root -> Waiting on GUI...  false
Health.getCurrentPercent(): 1
bot.healPercent: 0.25
Branch: IsAttacking: true
Currently Attacking
Root -> Waiting on GUI...  false
Health.getCurrentPercent(): 1
bot.healPercent: 0.25
Branch: IsAttacking: true
Currently Attacking
Root -> Waiting on GUI...  false
Health.getCurrentPercent(): 0
bot.healPercent: 0.25
Branch: HealBranch: false
Traveling to refresh area
Root -> Waiting on GUI...  false
Health.getCurrentPercent(): 0
bot.healPercent: 0.25
Branch: HealBranch: false
Traveling to refresh area
Root -> Waiting on GUI...  false
Health.getCurrentPercent(): 0
bot.healPercent: 0.25
Branch: HealBranch: false
Traveling to refresh area

@Cloud @Arbiter @Party @SlashnHax
 
Top