Nor3g Posted June 25, 2019 Posted June 25, 2019 (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 June 25, 2019 by Nor3g
Hybris Posted June 25, 2019 Posted June 25, 2019 getWidgets().getWidgetContainingText("Switch to it").interact();
Nor3g Posted June 25, 2019 Author Posted June 25, 2019 7 minutes ago, Hybris said: getWidgets().getWidgetContainingText("Switch to it").interact(); Tyvm it works now
Hybris Posted June 25, 2019 Posted June 25, 2019 4 minutes ago, Nor3g said: Tyvm it works now Glad I could help! If you have any more questions let me know!