Jump to content

Issue running local script


Recommended Posts

Posted (edited)
10 minutes ago, HumanLikeBotting said:

Thanks for the reply I double checked my manifest. I also tried to debug but the only thing that has happened is it is not saying it can't run. Which is strange, due to running fine normally.

Cheers!

Debug.PNG

Looks like you didn't specify a debug port; is that the case?
Can't see the command you used in this image

Edited by FrostBug
Posted

Sorry, I did specify it but once you've already used one it auto-assigns it to the last used port.

 

import org.osbot.rs07.script.Script;

import org.osbot.rs07.script.ScriptManifest;

import java.awt.*;

@ScriptManifest(name = "Skeleton", author = "HumanLikeBotting", version = 1.0, info = "", logo = "") 
public class BotBuilder extends Script {

    @Override

    public void onStart() {

      //  frame.setSize(200, 200);
      //  frame.serReszable(false);
        //Code here will execute before the loop is started
        
    }

    @Override

    public int onLoop() throws InterruptedException {
       // getWalking().walkPath(path);

        return 100; //The amount of time in milliseconds before the loop starts over

    }


    @Override

    public void onExit() {

        //Code here will execute after the script ends

    }


    @Override

    public void onPaint(Graphics2D g) {

        //This is where you will put your code for paint(s)

    }
}

This is the code as well, if there is anything noticeable I've done wrong. There was more but I removed it to the skeleton just to double check if I'd wrote something wrong or what is not in the library.

Thank you!

Debug.PNG

Posted
19 minutes ago, ProjectPact said:

Thought -debug automatically assign a default port if none are given?

You're probably right

18 minutes ago, HumanLikeBotting said:

Sorry, I did specify it but once you've already used one it auto-assigns it to the last used port.

 


import org.osbot.rs07.script.Script;

import org.osbot.rs07.script.ScriptManifest;

import java.awt.*;

@ScriptManifest(name = "Skeleton", author = "HumanLikeBotting", version = 1.0, info = "", logo = "") 
public class BotBuilder extends Script {

    @Override

    public void onStart() {

      //  frame.setSize(200, 200);
      //  frame.serReszable(false);
        //Code here will execute before the loop is started
        
    }

    @Override

    public int onLoop() throws InterruptedException {
       // getWalking().walkPath(path);

        return 100; //The amount of time in milliseconds before the loop starts over

    }


    @Override

    public void onExit() {

        //Code here will execute after the script ends

    }


    @Override

    public void onPaint(Graphics2D g) {

        //This is where you will put your code for paint(s)

    }
}

This is the code as well, if there is anything noticeable I've done wrong. There was more but I removed it to the skeleton just to double check if I'd wrote something wrong or what is not in the library.

Thank you!

Debug.PNG

That is the 2.5.8 client version?

  • Heart 1

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