Jump to content

It doesnt click an option, widgets dont return


mousbros

Recommended Posts

it continue's untill it hits the options and then it just stops thank you in advance ❤

 

```

case "TALK1":
            String[] options = new String []{
                    "Click to continue","I am brand new! This is my first time here.", "I've played in the past, but not recently.", "I am an experienced player."
                };
            
                sleep(random(1435,2130));
                NPC Gielinor = npcs.closest("Gielinor Guide");
                if (Gielinor != null) {
                Gielinor.interact("Talk-to");{
                sleep(random(1435,2130));
                                                
                
                if(getDialogues().completeDialogueU(options)) {
                    
                    
                    sleep(random(200, 700));
                }
                
                }
    
                }
                
        
        break;

```

Edited by mousbros
Link to comment
Share on other sites

12 minutes ago, Gunman said:

@mousbros Thought I told you a lot of the dialogue API methods are borked on tut island? You gotta make your own dialogue handler using widgets(may be possible with color detection). If those widgets != null 


getDialogues().clickContinue();

else do other things

case "TALK1":
            RS2Widget IAM = getWidgets().get(219, 1, 1);
            
                sleep(random(1435,2130));
                NPC Gielinor = npcs.closest("Gielinor Guide");
                if (Gielinor != null) {
                Gielinor.interact("Talk-to");{
                sleep(random(1435,2130));
                                                
                
                if(getDialogues().completeDialogueU()) {
                    
                    
                    sleep(random(200, 700));
                }
                
                }
                if(IAM != null) {
                    IAM.interact("I've played in the past, but not recently.");
                }
                }
                
        
        break;

 

bro i did that plenty of times, it continues untill it hits the options where i have to choose if the player is new or not

Edited by mousbros
Link to comment
Share on other sites

5 minutes ago, Gunman said:

@mousbrosNow make a check for if dialogue is pending but you can't use any of the complete dialogue API methods it will get stuck and break. Use 


getDialogues().selectOption()

or widgets

my man as you can see im using widgets and it doesnt interact with them, did I place them correct in the script?

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