Jump to content

Simple Dialogue


Recommended Posts

Posted

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.

Posted

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
Posted

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.

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