Jump to content

Trying to enter a friends POH


Alakazizam

Recommended Posts

I'm having trouble with a function to enter a friends POH. I'm familiar enough with using dialogue that involves simple continues and selecting options, but I can't find out how to enter text when asked for it.
I do have a String variable MyHost I would like to use. Any help would be appreciated.

    void GoHome() throws InterruptedException {
        if (OutsideArea.contains(myPosition())) {
            if(getDialogues().inDialogue()) {

                //Not sure what to put here  <<<-------

            } else {
                RS2Object MyPortal = getObjects().closest("Portal");
                MyPortal.interact("Friend's house");
                sleep(3000);
            }

        } else if (inventory.contains("Teleport to house")) {
            getInventory().getItem("Teleport to house").interact("Outside");
            sleep(5000);
        } else {
            log("Stopping script... No way home");
            stop();
        }
    }

 

Link to comment
Share on other sites

9 minutes ago, Alakazizam said:

I'm having trouble with a function to enter a friends POH. I'm familiar enough with using dialogue that involves simple continues and selecting options, but I can't find out how to enter text when asked for it.
I do have a String variable MyHost I would like to use. Any help would be appreciated.

 

https://osbot.org/api/org/osbot/rs07/api/Keyboard.html#typeString-java.lang.String-

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