Jump to content

Writing my first script - logs don't appear in the console


Carrera

Recommended Posts

I just started writing my first script and followed @Token's tutorial part 1 (see below)

This is my script so far, just logs for now to test if it works.


import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(author = "Me", info = "Test", logo = "", name = "Example Script", version = 1)
public class ExampleScript extends Script {

    @Override
    public void onStart() {
        log("Starting the script.");
    }

    @Override
    public int onLoop() throws InterruptedException {
        log("loop");
        return random(200, 300);
    }

    @Override
    public void onExit() {
        log("Exiting the script.");
    }
}

I can build the jar and run it in osbot. But nothing is being printed in the console. Does anyone have an idea what could be the issue?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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