Jump to content

Enter amount Dialogue


Recommended Posts

Posted

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. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...