- Joined
- Aug 23, 2015
- Messages
- 2,232
- Thread Author
- #1
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.
@Cloud @Arbiter @Party @SlashnHax
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