Jump to content

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


Recommended Posts

Posted (edited)

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

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