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.

Wtf why widget not working?

Featured Replies

Hi, very strange for me why bot is not interacting with widget. Want to make script for leveling up herblore. But somehow bot doesn't find the widget. It is not the first time I write something like this and everything went great. This time I made everything identical but it cant find the widget. Any help? :) 

RS2Widget herb = getWidgets().get(270,14, 29);
sleep(1000);
if(herb!= null){
    log("Widget found");
}
else{
    log("Widget not found");
}
if(herb != null) herb.interact();

 

EDIT: Found mistake. Didn't even though it could be it. In other similar scripts I used sleep(700) and for this one I used sleep(500), so it didn't read the widget that quickly. Since I already made this so for it not to be useless maybe any tips regarding sleeps? How much sleep would you have used in my case?

 

image.png.e1df9e13efe3a2ed6dadaf71ebaa8eca.png

Edited by Kramnik

270, 14, 38 should work.

 

Edit: also make sure the widget is visible before retrieving it.

Edited by zwaffel

The sleep interval is irrelevant. If it's on mirror mode then it may be a mirror mode related issue. If that's only a section of your code then the problem lies elsewhere.

  • Author
43 minutes ago, Token said:

The sleep interval is irrelevant. If it's on mirror mode then it may be a mirror mode related issue. If that's only a section of your code then the problem lies elsewhere.

But changing interval from 500 to 800 fixed everything :D I am on injection mode

5 minutes ago, Kramnik said:

But changing interval from 500 to 800 fixed everything :D I am on injection mode

Then you have an error elsewhere in the code

why widget when you can press 1 on the keyboard?

2 hours ago, Chris said:

why widget when you can press 1 on the keyboard?

 

44 minutes ago, Malcolm said:

This.

Wouldn't you still want to check the widget was up before pressing 1

24 minutes ago, Malcolm said:

Yes, check the sprite instead of using child widgets :doge:

Then why not tell him that :boge: The guy can't figure out widgets, tell him to press 1 and he'll be spending his botting days typing 1111111111111111111111111111111111111111111111111111 in game

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.