Jump to content

Simple Dialogue


tmanowen

Recommended Posts

Hi there :D. I'm pretty new into scripting, such as that I can make a simple miner or fisher that banks, nothing crazy ofc, and stuff most of u can do in your sleep.  But I was just wondering if someone could help me write even a skeleton snippet of some example dialogue.  Just like click first dialogue("Hi welcome to our place"), then second dialogue("Thanks man"), then next dialogue("Sure man"). And thats about it :P. Thanks if someone can help either posting here or adding me on skype or something. (: Thanks for the upcoming help.

Link to comment
Share on other sites

Umm, something like this ?

private void dialogueblabla() throws InterruptedException {
	    if (dialogues.inDialogue() == true) {
	        dialogues.selectOption("Yes please.");
	        sleep(random(600, 1000));
	        dialogues.clickContinue();
	        sleep(random(600, 1000));
	    }
}
Use proper conventions, no need for the == true. You may be thinking why, because the method is a boolean. Once you put a boolean inside a if statement. If it method doesn't lead with a !, by default it will check to see if the method returns true

Yes exactly, I can work with that I believe. Thank you!!!! <3 Specially for the very quick response.

Explore the dialogue class

  • Like 1
Link to comment
Share on other sites

I asked here cause I'm bad at learning from the API documentation as I am no java programmer... I have only really gotten 1 thing off API that i have understood, but for the most part, thats in a completely different language for me.

The only way to further understand it is by trial and error. Try out a method and log the results. Seen if it does what you want it to do.

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...