Jump to content

Enter amount Dialogue


intothedark

Recommended Posts

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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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