Jump to content

Cannot add local scripts on mac


JPHamlett

Recommended Posts

I have my setup like this

 

crp11070m:Scripts me$ pwd

/Users/me/OSBot/Scripts

crp11070m:Scripts me$ ls

TutorialIsland.class TutorialIsland.jar

 

However when I restart OSBot my local script is not there.

 

Here is my script

 

 

package TutorialIsland;

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

import java.awt.*;

@ScriptManifest(name = "Tutorial Island", author = "JPHamlett", version = 1.0, info = "Will do tutorial island for you", logo = "")
public class TutorialIsland extends Script {

    private final int RUNESCAPE_GUIDE_ID = 3308;

    public void interactWithRunescapeGuide() {
        getNpcs().closest(RUNESCAPE_GUIDE_ID).interact("Talk-to");
        while (getDialogues().inDialogue()) {
            getDialogues().clickContinue();
        }
    }

    @Override
    public int onLoop() throws InterruptedException {
        if (getNpcs().closest(RUNESCAPE_GUIDE_ID).isOnScreen()) {
            interactWithRunescapeGuide();
        }
        sleep(1000000);
        return 0;
    }
}

 

How do I add this script to my available scripts?

Link to comment
Share on other sites

  • Night locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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