Skip 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.

Bounty Hunter Skip

Featured Replies

Hi all, i have written something very simple that attempts to skip a target if its not one of them listed in an array. I am trying to build the script but it does not show in the osbot client even when I refresh, is there something wrong with the coding that wont let me test it?? 

 

import org.osbot.rs07.api.filter.Filter;
import org.osbot.rs07.api.model.Player;
import org.osbot.rs07.api.ui.RS2Widget;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.utility.ConditionalSleep;

import java.util.Arrays;
import java.util.List;

public class wildyskiptargets extends Script {

    private final List<String> attackerBots = Arrays.asList("", "", "");
    private final List<String> attackedBots = Arrays.asList("", "", "", "");

    @Override
    public int onLoop() throws InterruptedException {

        RS2Widget target = getWidgets().singleFilter(90,
                w -> w != null && w.isVisible() && w.getMessage().equals(attackerBots));
        RS2Widget skipTarget = getWidgets().singleFilter(90,
                w -> w!= null & w.isVisible() && w.getInteractActions().length > 0);

        
        if (target != null && target.isVisible()){
            log("Target has been assigned");
            if (skipTarget.interact("Abandon target")){
                log("Skipping Target");
                new ConditionalSleep(5000, 1000) {
                    @Override
                    public boolean condition() throws InterruptedException {
                        return getDialogues().isPendingContinuation();
                    }
                }.sleep();
            }
        }
        


        return 2500;
    }

you are missing a script manifest above the classname

 

 

do

@ScriptManifest

and import

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.