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
28 minutes ago, Imrabid said:

What have i done wrong?

f170ce2dffcb5f811ef5290b268e33fc.png

Hey!

Firstly, you have created a new class above imports which cannot be done. If you want both classes in the same file, you will have to move the top one down below imports.

Secondly, both classes are named 'main', which is also not allowed. Choose a different name!

Thirdly, by convention, classes should start with a capital letter, e.g 'Main' instead of 'main'. It's just convention so it doesn't make any difference in terms of execution, but conventions are good to stick to! (I realise I stupidly named it with a lowercase in the tutorial, i've been meaning to rewrite this tutorial for a while now!)

In short, to fix your problem, just remove the top 'public class main { }'.

GL!

Apa

get this error when starting up my eclipse :( just installed jdk 9 and stuff

Edited by jller12

  • Author

No idea what's gone on there. For the record, OSBot doesn't yet support java 9, stick with java 8 for now!

8 minutes ago, jller12 said:

get this error when starting up my eclipse :( just installed jdk 9 and stuff

 

  • 1 month later...

Going to sweat this out over the weekend, thanks for the resources apa.

  • Author

Hi there folks!

Just spent a couple of hours revamping the content of this guide. I did not change the download guide (I plan to update this in the near future). I only updated the interesting stuff :)

Take a look, best of luck!

Apa

27 minutes ago, Apaec said:

Hi there folks!

Just spent a couple of hours revamping the content of this guide. I did not change the download guide (I plan to update this in the near future). I only updated the interesting stuff :)

Take a look, best of luck!

Apa

Hey APA appreciate it. I have been eyeing this thread curious if it was still up to date seeing as it was written back in 14.

 

Thanks!

6 hours ago, Apaec said:

Hi there folks!

Just spent a couple of hours revamping the content of this guide. I did not change the download guide (I plan to update this in the near future). I only updated the interesting stuff :)

Take a look, best of luck!

Apa

Was looking to get into scripting.. thank you for updating this you are a god send

Edited by pathwayp

  • Author
10 hours ago, pathwayp said:

Was looking to get into scripting.. thank you for updating this you are a god send

Good luck! Let me know if you need anything :)

  • 2 weeks later...

Tried exporting a very simple script to see if it would work but it doesn't appear when i load osbot. Not runnable jar , saved to right place, refreshed and restarted osbot. any idea?

edit: Gave .Jar to someone 

"i decompiled your code, copy pasted it, recompiled and it worked"

? ???????

Edited by FuryShark

  • Author
13 hours ago, FuryShark said:

Tried exporting a very simple script to see if it would work but it doesn't appear when i load osbot. Not runnable jar , saved to right place, refreshed and restarted osbot. any idea?

edit: Gave .Jar to someone 

"i decompiled your code, copy pasted it, recompiled and it worked"

? ???????

Most likely you've got multiple jars in your scripts folder with the same script manifest name ?

You can test this by moving all your local scripts elsewhere (e.g your desktop), and only having your simple script in the directory. Then start OSBot and see if it shows up. If it still does not, let me know!

-Apa

2 hours ago, Apaec said:

Most likely you've got multiple jars in your scripts folder with the same script manifest name ?

You can test this by moving all your local scripts elsewhere (e.g your desktop), and only having your simple script in the directory. Then start OSBot and see if it shows up. If it still does not, let me know!

-Apa

This didnt change anything, but

when i gave it to my friend, he decompiled the jar i sent him then recompiled and gave it to me and it showed up. he didnt change anything in the script. 

and we both did exactly the same method thats shown in your tutorial for exporting.  

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.