Jump to content

Hopping to pvp world (dialogue?)


Recommended Posts

Posted (edited)

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

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