Jump to content

It doesnt click an option, widgets dont return


Recommended Posts

Posted (edited)

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
Posted (edited)
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

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