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.

Local Script Not Appearing in Selector

Featured Replies

Hi! I'm coming back after a long hiatus to try and write some of my own scripts.
 

My script has all of the necessary imports/set ups that were discussed in one of the stickied scripting tutorials, and when I compile it to a JAR, it is not appearing in the script selector.

Here is the code:

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import java.awt.*;
import java.util.Calendar;
import java.text.SimpleDateFormat;

@ScriptManifest(name = "Test Script", author = "satazero", version = 0.1, info = "A simple test script.", logo = "")
public class testScript extends Script
{
    @Override
    public void onStart()
    {
        log("Script started.");
    }

    @Override
    public final int onLoop() throws InterruptedException
    {
        for (int i = 0; i < 10; i ++) {
            log(i);
        }
        return 100;
    }

    @Override
    public void onExit()
    {
        log("Script has exited.");
    }

    @Override
    public void onPaint(Graphics2D g)
    {

    }
}

 

Make sure you're exporting the jar to the right place (your osbot scripts folder)

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.