Jump to content

Hopping to pvp world (dialogue?)

Recommended Posts

Im trying to hop to a PVP world, but my script gets stuck on the dialogue. Here is the code:


if (!Lumbridge.contains(myPosition())) {
    log("Walking to lumby");
} else if (getDialogues().inDialogue()) {
    log("In dialogue");
    getDialogues().selectOption("Switch to it");
} else if (worlds.getCurrentWorld() != 371) {
    log("Hopping to PVP world");
} else if (!getBank().isOpen()) {
    log("Opening bank");


Somehow I think the client doesn't recognize it as a dialogue. I've tried with using RS2Widget but still I had no luck.



I've also tried 


and it gave me the same result.

Any help is appreciated! :)

EDIT: It should be noted that in the logger it logs "in dialogue" so I'm suspecting that it doesn't get recognized as a dialogue at all.

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

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