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.

jar not showing up

Featured Replies

Hi guys, 

When i make a jar of a script it's now showing up in the scripts folder maybe there is something wrong with the code and I don't see it.

 

this is the code:

 

package woodcutter;

import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

public class woodcutter extends Script {
    final String TREE_NAME = "Tree";

    @ScriptManifest(info="test", logo = "", version = 0, author = "Lupy", name = "Woodcutter script")

    @Override
    public int onLoop() throws InterruptedException {

        if(! getInventory().isFull()) {
            //chop
            Entity tree = objects.closest(TREE_NAME);
            if(tree != null && tree.isVisible()) {
                tree.interact("Chop Down");
            } else {
                camera.toEntity(tree);
            }
        } else {
            //bank
        }
        return 0;
    }



    //when script is started
    public void onStart() {

    }
    //when script is exited
    public void onExit() {

    }
}

 

thanks in advance

 

  • Author

well the jar shows up bot osbot client doesnt detect it

I don't know were you are stuck but if you follow this for top to bottom it should help you out.(steps 1 and 3) 

* Make sure its in the sripts folder *

 

(your question is to vague)

Edited by Nbacon

The code has nothing to do with creating the jar file.

You need to create an artifact and select the output file to be the OSBot script folder.

Then you can build the artifact which will convert your code to a jar file.

If this confuses you google “how to build an artifact in IntelliJ” and there are very helpful resources online.

21 hours ago, lupy said:

Hi guys, 

When i make a jar of a script it's now showing up in the scripts folder maybe there is something wrong with the code and I don't see it.

 

this is the code:

 


package woodcutter;

import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

public class woodcutter extends Script {
    final String TREE_NAME = "Tree";

    @ScriptManifest(info="test", logo = "", version = 0, author = "Lupy", name = "Woodcutter script")

    @Override
    public int onLoop() throws InterruptedException {

        if(! getInventory().isFull()) {
            //chop
            Entity tree = objects.closest(TREE_NAME);
            if(tree != null && tree.isVisible()) {
                tree.interact("Chop Down");
            } else {
                camera.toEntity(tree);
            }
        } else {
            //bank
        }
        return 0;
    }



    //when script is started
    public void onStart() {

    }
    //when script is exited
    public void onExit() {

    }
}

 

thanks in advance

 

Your script manifest is in the wrong spot. And since OsBot uses that to identify your script it will not show up in the script selector. Place it above the class and all should be fixed.

Edited by BravoTaco

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.