Currently using this to delay until the npc is dead:
if (nearestNpc.interact("Attack")) {
Execution.delayUntil(() -> !nearestNpc.isValid(), () -> false, 10, 60000, 70000);
}
It works fine, except it's too slow. Between the time that it dies and the time that it becomes invalid, there's a...