Jump to content

Local Script Not Appearing in Selector


Recommended Posts

Posted

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)
    {

    }
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...