you need to change the structure, it isn't a very efficient way of doing it.
NPC judge = npcs.closestThatContains("Competition Judge");
if(judge != null) {
if (!getInventory().contains("Bronze Arrow") && !getEquipment().contains("Bronze Arrow")) {
if(getDialogues().isPendingContinuation()) {
getDialogues().clickContinue();
sleep(850);
}
else if(getDialogues().inDialogue()) {
getDialogues().selectOption("Sure, I'll give it a go.");
sleep(850);
} else {
judge.interact("Talk-to");
}
}
}