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.

Dealing with clanchat helpp

Featured Replies

kick = widgets.getWidgetContainingText(7, user);
    	log(kick);
    	
    	if(kick.interact("Kick user " + user)){
    		sleep(5000);
    	}

when running this because of how ccs work(both leftclick and rightclick just open the "rightclick"dropdown menu) it thinks the action was sucessfull but it wasn't it just opens the options menu

0699ae3f019fd39a315c3494f62b5caa.png

anyone know a way to fix this? :s

ea2f6b170461a7c53d4a852c4ff46f51.png

Edited by GPSwap

Try an InteractionEvent maybe although I'm not sure it'll make a difference, otherwise just use a right click and the menu API although that's a bodge fix IMO

  • Author
5 minutes ago, HeyImJamie said:

Try an InteractionEvent maybe although I'm not sure it'll make a difference, otherwise just use a right click and the menu API although that's a bodge fix IMO

InteractionEvent didnt work, but menu api did, it takes a couple trys but it works, thankyou

Edited by GPSwap

13 minutes ago, GPSwap said:

InteractionEvent didnt work, but menu api did, it takes a couple trys but it works, thankyou

Why's it take a few tries?

Haven't tested but something like this should work ;o 

  private boolean kickPlayer(String username){
        if (getMenuAPI().isOpen()){
            if (getMenuAPI().selectAction("Kick user")){
            return true;
			}
        } else {
            RS2Widget userWidget = getWidgets().getWidgetContainingText(7, username);
            if (userWidget != null){
                if (userWidget.interact()){
                    new ConditionalSleep(5000) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return getMenuAPI().isOpen();
                        }
                    }.sleep();
                }
            }

        }
        return false;
    }
}

 

Edited by HeyImJamie

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.