Jump to content

Newbie here with a question, getting the error "Cannot resolve method 'Inventory' in 'Skeleton'"


CheckingItOut

Recommended Posts

Hi, I have a bit of previous programming knowledge and just started scripting.  I downloaded IntelliJ IDEA, created a file in the src folder called Skeleton.java along with a few other configurations and in Skeleton.java file is the following...

import org.osbot.rs07.script.Script;

import org.osbot.rs07.script.ScriptManifest;

import java.awt.*;

public class Skeleton extends Script {


    @Override

    public void onStart() {

 
        //Code here will execute before the loop is started

    }



    @Override

    public void onExit() {

        //Code here will execute after the script ends

    }

    @Override

    public int onLoop() {


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

    }

    @Override

    public void onPaint(Graphics2D g) {

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

    }

}

This was taken from a tutorial on a forum on osbot about the bare backbone needed to script.  When I input that I get no errors, when I try to type other code, something as simple as

public void onStart() {
    
    Inventory();
    //Code here will execute before the loop is started

}

it brings up the error.  "Cannot resolve method 'Inventory' in 'Skeleton'.  I'm just trying to create a script that will click or do anything just to get going to know I can interact with it.  What exactly do I need to add to this barebones script to get a bot to do anything?  

 

This got solved thanks to Khaleesi***

Edited by CheckingItOut
Clarify more
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...