Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hopping to pvp world (dialogue?)

Featured Replies

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

getWidgets().getWidgetContainingText("Switch to it").interact();

  • Author
7 minutes ago, Hybris said:

getWidgets().getWidgetContainingText("Switch to it").interact();

Tyvm <3 it works now

4 minutes ago, Nor3g said:

Tyvm <3 it works now

Glad I could help! If you have any more questions let me know!

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.