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.

A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec

Featured Replies

  • Author
On 6/18/2021 at 12:01 AM, rawgreaze said:

nice guide, up and running and shitting scripts out left and right for trivial things now :)

how can i link scripts together? i really avoided java, it wants me to create a static method to use it in my onLoop in my osbot plugin however if i do that then it wants me to make your methods static and it just cascades, what's the proper way to make things like, a shared bank module so I can have my own logic? trying to do like osbotplugin.util.Bank.bank(items) for example which would in turn call a bunch of your api methods?

I'm not aware of a nice way to share code between scripts. Though not ideal, i'd recommend copying over important logic between scripts. To make it easier, you can abstract your logic into a class, and copy that class file between scripts. If you do this, you can version the files to keep track of which versions you have where. Glad you're seeing some success with your scripts!

-Apa

On 6/19/2021 at 6:28 AM, Apaec said:

I'm not aware of a nice way to share code between scripts. Though not ideal, i'd recommend copying over important logic between scripts. To make it easier, you can abstract your logic into a class, and copy that class file between scripts. If you do this, you can version the files to keep track of which versions you have where. Glad you're seeing some success with your scripts!

-Apa

i want to have shared modules between scripts.. right now i have a wood cutter, fisher, etc, and they all go to the bank for example. i'd like to have a Bank.class that has the webwalk to bank function as well as deposit so I can reference these custom functions without code duplication. this must be a thing

also i botted for like 10 hours straight with no bans, i enabled breaks and got banned a few hours later so could be coincidence but make that what you will

Edited by rawgreaze

  • 5 months later...
On 8/15/2014 at 9:51 AM, Apaec said:

Hi, when I try to run the project, I am getting this error: Provider class org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module.

In the folder META-INF\services there is a file that has 1 line 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' when they should be on two lines. Does anyone know how to fix this?

 

 

Hi, when I try to run the project, I am getting this error: Provider class org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module.

In the folder META-INF\services there is a file that has 1 line 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' when they should be on two lines. Does anyone know how to fix this?

  • 2 weeks later...

Hi, I am looking at your guide to perhaps start to understand java development for OSRS bots. I followed your guide step by step and It is saying the imports are not accessible. What am I missing? 

image.thumb.png.80707d073fd57502894d54af4adf3403.png

  • Author
9 hours ago, Sir Farms A Lot said:

Hi, I am looking at your guide to perhaps start to understand java development for OSRS bots. I followed your guide step by step and It is saying the imports are not accessible. What am I missing? 

image.thumb.png.80707d073fd57502894d54af4adf3403.png

Did you add OSBot as an External JAR? 🤔

On 12/31/2021 at 6:01 AM, Apaec said:

Did you add OSBot as an External JAR? 🤔

I did. You can see it added in the image I attached.

  • Author
12 hours ago, Sir Farms A Lot said:

I did. You can see it added in the image I attached.

Not sure why it would be complaining. From the looks of things, it seems you have everything set up correctly. When you hover over a red line, e.g. when you hover over "Script", what does it say? Are there any suggested auto-fixes?

  • 4 weeks later...
On 12/30/2021 at 7:34 PM, Sir Farms A Lot said:

Hi, I am looking at your guide to perhaps start to understand java development for OSRS bots. I followed your guide step by step and It is saying the imports are not accessible. What am I missing? 

image.thumb.png.80707d073fd57502894d54af4adf3403.png

Your fix is go to: Project -> Properties -> Libraries -> Add library -> execution environment. Then drop down list and select “javaSE-1.7”

 

Edited by sleepyskiller

  • 2 months later...

I just wanted to say I completely mimicked every step for the GUI, but when I hit start the program automatically logs out. Can anyone explain why this would happen after hitting start?

1 hour ago, Stando said:

I just wanted to say I completely mimicked every step for the GUI, but when I hit start the program automatically logs out. Can anyone explain why this would happen after hitting start?

What GUI? I don't see anything for GUI's here

  • 1 month later...

nothing is working so far. i just stand there. it will disconnect by the end of this sentence,lol

 

  • 7 months later...

hi , thanks for the amazing guide , i finished everything, but the question is , how i can run the script . i mean i did this ==>
rune as java application ( it work fine ) and opened a osbot client 
but then the bot didnt work , i mean nothing happened

  • 1 month later...
  • 3 weeks later...

Our HND assignment help service is made to meet the needs of students in many different fields of study. Our professional writers have a lot of experience helping HND students with their schoolwork.

HND Assignment Help

  • 3 weeks later...

Great guide - as a noob I'm almost there I think... after exporting it as a JAR file within the OSBOT / script dir ... Nothing happens when I open the JAR file? 

 

See attached script looks ok to me, feel like I'm missing something simple.

Could this be the reason why? :

Description    Resource    Path    Location    Type
The compiler compliance specified is 1.5 but a JRE 17 is used    osbot        Compiler Compliance    JRE Compiler Compliance Problem

 

Thanks man appreciate any help.

Screenshot_20230402_212638.png

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.