tmanowen Posted March 10, 2015 Share Posted March 10, 2015 Hi there . 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. Quote Link to comment Share on other sites More sharing options...
iJodix Posted March 10, 2015 Share Posted March 10, 2015 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)); } } 1 Quote Link to comment Share on other sites More sharing options...
tmanowen Posted March 10, 2015 Author Share Posted March 10, 2015 Yes exactly, I can work with that I believe. Thank you!!!! Specially for the very quick response. 1 Quote Link to comment Share on other sites More sharing options...
Joseph Posted March 10, 2015 Share Posted March 10, 2015 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 trueYes exactly, I can work with that I believe. Thank you!!!! Specially for the very quick response. Explore the dialogue class 1 Quote Link to comment Share on other sites More sharing options...
tmanowen Posted March 10, 2015 Author Share Posted March 10, 2015 Explore the dialogue class 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. Quote Link to comment Share on other sites More sharing options...
Joseph Posted March 10, 2015 Share Posted March 10, 2015 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. Quote Link to comment Share on other sites More sharing options...