So script completed Jungle Potion and remained at the completion location? What messages are printed in the logger? Does it have a falador teleport in inventory? Does it resume execution upon leaving karamja? Is your account older than 1 year?
Player x = players.closest("Johnny");
if (x.getCombatTime() == -1000) {
log("Johnny has never been in combat; we can't know his hp");
} else {
log("Johnny's hp is: " + x.getCurrentHealth());
}
getCurrentHealth()
This is only updated while in combat and will return 0 if they have never been detected in combat, the associated getCombatTime() will return -1000 if the Player instance has never been detected in combat.
Authed
Patience
I've only been working on bug fixes in the last 4 weeks, I was supposed to release the mithril gloves package first (which is finally ready)
Authed