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.

World widgets

Featured Replies

Hi! Havent worked with widgets too much so ran it to some problems. My main goal is to make a snippet which solves world hopping's first time dialogue. But it crashes when I try to sellect a specific worlds widget to get that dialogue. Maybe I dont know what exact widget to select, but I tried them all.

RS2Widget world = getWidgets().get(69,17,4);

getLogoutTab().open();
sleep(1000,2000);
getWidgets().get(182, 4).interact("World Switcher");
sleep(2000,3000);
world.interact();

image.png.3d0ba11cd42e05c405f02c6970864b96.png

Edited by kramnik

Few things,

First of all, you can look at the widgets by the color of the frame, looks like the specific one you use is the amount of people in the world.

Secondly, you aren't doing any checks, make sure your widget is visable and is not null.

Lastly, i would recommand declaring your world variable at the start but setting it only after you preformed all of your other actions. Might help.

Make sure you open the logger (or launch with -debug port from CLI) when developing scripts, there's definitely an exception thrown in there and should be visible in the logger

I just looked in game and you should be using the white highlighted numbers. An easy way to check is to open the widget debugger, query the suspect widget, and if it has the action you want you found it. In this case the white widget has the action "Switch." Also the subchild is the world number

Use world.interact("Switch") because it has 2 actions, add favorite being the second

Edited by NoFloob

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.