Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.