Jump to content
Nor3g

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");
    getWalking().webWalk(Lumbridge);
} else if (getDialogues().inDialogue()) {
    log("In dialogue");
    getDialogues().selectOption("Switch to it");
} else if (worlds.getCurrentWorld() != 371) {
    log("Hopping to PVP world");
    worlds.hop(371);
} else if (!getBank().isOpen()) {
    log("Opening bank");
    getBank().open();

 

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

R=193
-=00
--=3

 

I've also tried 

completeDialogue

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.

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