Jump to content

Issue running local script


HumanLikeBotting

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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