Jump to content

Stuck in dialogue


lisabe96

Recommended Posts

2ldIsLR.png

if (script.getDialogues().inDialogue()) {
	if (script.getDialogues().isPendingContinuation()) {
		script.getDialogues().clickContinue();
		break;
	}
}

When I log the code,

It says that I'm in a dialogue, but not that there's pending continuation.

With other words, I'm stuck as it doesn't continue the dialogue.

 

Am I missing something?

 

 

 

Edited by lisabe96
Link to comment
Share on other sites

 

Sounds like a bug with the continuation method; perhaps the dialogues are different on tutorial island

 

try something like this instead

List<RS2Widget> diag = getWidgets().containingText("Click here to continue");
if(!diag.isEmpty()) {
    diag.get(0).interact();
}

It's weird, it sometimes works and sometimes not.

Ill try your solution.

 

 

Edit:

Seems to be working this way, thanks!

Edited by lisabe96
Link to comment
Share on other sites

What do you mean exactly?

    public boolean isPendingContinuation() {
        if (this.inDialogue()) {
            int IIiiiiIiii = this.IIiiiiIiii(IIiiIiIIII);
            if (IIiiiiIiii > 0) {
                if(this.widgets.getWidgetContainingText(IIiiiiIiii, new String[]{"to continue", "please wait..."}) != null) {
                    return true;
                }

                return false;
            }

            List<RS2Widget> matching = this.widgets.containingText(new String[]{"to continue", "please wait..."});
            if (matching != null && !matching.isEmpty()) {
                IIiiIiIIII.add(Integer.valueOf((matching.get(0)).getRootId()));
                return true;
            }
        }

        return false;
    }
Link to comment
Share on other sites

    public boolean isPendingContinuation() {
        if (this.inDialogue()) {
            int IIiiiiIiii = this.IIiiiiIiii(IIiiIiIIII);
            if (IIiiiiIiii > 0) {
                if(this.widgets.getWidgetContainingText(IIiiiiIiii, new String[]{"to continue", "please wait..."}) != null) {
                    return true;
                }

                return false;
            }

            List<RS2Widget> matching = this.widgets.containingText(new String[]{"to continue", "please wait..."});
            if (matching != null && !matching.isEmpty()) {
                IIiiIiIIII.add(Integer.valueOf((matching.get(0)).getRootId()));
                return true;
            }
        }

        return false;
    }

Apparently osbot's logic is flawing then because it doesn't work half of the time, while frostbug's solution does all the time

Link to comment
Share on other sites

Apparently osbot's logic is flawing then because it doesn't work half of the time, while frostbug's solution does all the time

 

No, you're is checking if "please wait" has already been clicked, and if so try to click continue... You're using the wrong method.

Edited by matt123337
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...