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.

OSBot Script Skeleton - The minimum code to make a script

Featured Replies

So for some reason when I got to add the imports I get an error saying that the import with "ScriptManifest" doesn't exists. So I went and checked my imports that osbot 2.3.56 had and there were no script manifest

  • 4 weeks later...
  • 1 month later...
  • 9 months later...

Do you know of any indepth, basic tutorials on how to create unique projects, how to include antibans and walkpaths and that sort of stuff?

  • 2 months later...
  • 2 months later...

Nice tutorial bro, Might help out some players who is new to coding!

Edited by Mr Pro Pop

  • 1 month later...
  • 2 years later...
On 3/26/2016 at 10:58 PM, trunksrozwell said:

Do you know of any indepth, basic tutorials on how to create unique projects, how to include antibans and walkpaths and that sort of stuff?

The best way, if you have some know how about java, is to look over the API, learn it, and try to achieve something that there is no public resource for, this way you are forced to research specific concepts, instead of just looking at a source and not understanding. The way to include antibans is to not include them, they are pointless. Walkpaths you can look at the API in the classes "Walking, walking event, webwalking". There can never be a tutorial on making something "unique". There is also a scripting help section, which i've found users to be very willing to help answer questions. Furthermore, the snippets section has a lot of good resources as well. 

  • 11 months later...

Is this still an appropriate skeleton to use? Or does somebody know of something more up-to-date?

 

Just noticing the original post date.

51 minutes ago, brookpc said:

Is this still an appropriate skeleton to use? Or does somebody know of something more up-to-date?

 

Just noticing the original post date.

Yes. Technically you can remove onStart, onPaint, and onExit for the actual bare minimum.

  • 1 month later...

Hi, I'm compiling a simplified version of this skeleton a .jar file, but when I add it into my Scripts folder, it won't appear in my list of scripts inside the client.

I've also made sure to include OSBot 2.5.77.jar as a library/dependency when compiling the final .jar file.

I've tried adding other people's scripts into the Scripts folder, and they appear normally, so that is not the issue.

Could someone please help me out?

code:

package com.dpdmi2;

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(author = "dpdmi2", name = "test", info = "bot_test", version = 0, logo = "")
public final class Test extends Script {
    @Override
    public final int onLoop() throws InterruptedException {
        return 0;
    }
}

 

On 4/14/2020 at 7:12 AM, dpdmi2 said:

Hi, I'm compiling a simplified version of this skeleton a .jar file, but when I add it into my Scripts folder, it won't appear in my list of scripts inside the client.

I've also made sure to include OSBot 2.5.77.jar as a library/dependency when compiling the final .jar file.

I've tried adding other people's scripts into the Scripts folder, and they appear normally, so that is not the issue.

Could someone please help me out?

code:


package com.dpdmi2;

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(author = "dpdmi2", name = "test", info = "bot_test", version = 0, logo = "")
public final class Test extends Script {
    @Override
    public final int onLoop() throws InterruptedException {
        return 0;
    }
}

 

Additionally, when I download .class files from public github scripts and convert them into .jar files, they also work just fine. However, when I copy the source code for the .class file and try to compile it myself (first to .class, then convert .class to .jar), then it doesn't work. So the problem has to lie in the compilation I assume?

Fixed. The issue was that I compiled it as part of a package (com.dpdmi2).

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.