intothedark Posted November 15, 2019 Share Posted November 15, 2019 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. Quote Link to comment Share on other sites More sharing options...
BravoTaco Posted November 16, 2019 Share Posted November 16, 2019 Once you are ready to type the input try getKeyboard.typeString(amount); Quote Link to comment Share on other sites More sharing options...