While my script is webwalking to a location and it gets hit it doesnt eat and does not return the correct hp%, instead it always returns 100 while walking even if i restart the script and may end up dying
if (myPlayer().getHealthPercent() > 65) {
walking.webWalk(Wilderness);
} else if (myPlayer().getHealthPercent() < 65) {
inventory.getitem(food).interact("Eat")
}
it never eats until it has actually reached the destination unless it dies