Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • Tut Island Exp option selector


    JAG98
     Share

    Recommended Posts

    Right on startup after chatting with the RS guide, we soon get the option of choosing experience. Options are something like, brand new, experienced and played before. Does this widget interaction count as inDialogue or out of it?

    Can't get script to pick any option and the onLoop method seems to just stop here. Nothing in the logs which otherwise keeps on getting updated.

     

    Spoiler
    //speaking to starting guide
    if (Widgets.getWidget(219) != null && Widgets.getWidget(219).isVisible()) {
        log("Selecting experience");
        if (Widgets.getWidget(219).getChild(1) != null && Widgets.getWidget(219).getChild(1).isVisible()) {
            Dialogues.clickOption("I am brand new! This is my first time here.");
        }
    }

     

    Link to comment
    Share on other sites

    use `Dialogues.getOptions()` to see the options available then use `Dialogues.chooseFirstOption()` or `Dialogures.chooseOption({Option String})` to select it rather than relying on the underlying widgets.

    Link to comment
    Share on other sites

    2 hours ago, TheCloakdOne said:

    use `Dialogues.getOptions()` to see the options available then use `Dialogues.chooseFirstOption()` or `Dialogures.chooseOption({Option String})` to select it rather than relying on the underlying widgets.

    Edited to structure it like this, still no effect
     

    Spoiler
    if(!Dialogues.canContinue()){
        //speaking to starting guide
        if(Dialogues.getOptions() !=null){
            if(Dialogues.chooseOption("I am brand new! This is my first time here.")){
                sleep(600);
            }
        }

     

    Link to comment
    Share on other sites

    1 hour ago, TheCloakdOne said:

    Print out the results of Dialogues.getOptions() to see the strings being returned. its better to reference the option directly rather than relying on custom typed options to ensure an exact match of the option

    Thanks for all the help! Turns out the problem was the script never reaching this loop because of another declared variable causing a jump!

    Link to comment
    Share on other sites

    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
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.