I believe the walking code is a event and no other code of yours gets executed until it's done. If you print out some logs you can see that
What you can do is create your own walkingevent: (Rough guess)
WalkingEvent event = new WalkingEvent();
event.setPath(areasAndPaths.pathToDestination);
event.setHighBreakPriority(true);
event.setBreakCondition(new Condition() {
@Override
public boolean evaluate() {
return atDestination() || nearbyThreat();
}
});
hmm stramge, if you see tyhis again, please grab a screenshot so I can see where it is, script status, how the inventory looks and that kind of stuff
Or ring of dueling to ferox, free health and run restore ^^