Can someone show me a small snippet of responding to an npc dialogue where you need to enter a specific amount X?
if (!dialogues.inDialogue()) {
if (npc != null) {
if (npc.isVisible()) {
if (npc.interact("Talk-to")) {
new ConditionalSleep(random(1000, 2000)) {
public boolean condition() throws InterruptedException {
return dialogues.inDialogue();
}
}.sleep();
}
} else {
getCamera().toEntity(npc);
}
}
} else {
if (dialogues.isPendingOption()) {
dialogues.completeDialogue("amount", "amount1, "amount2","amount3");
sleep(random(400, 900));
}
if (dialogues.isPendingContinuation()) {
dialogues.clickContinue();
sleep(random(400, 900));
}
}
im trying to input a certain amount when i get to a dialogue that asks it.