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.

Beginner Scripter

Featured Replies

Hi osbot,

I have always had a passion for botting and the community but I haven't always had the time to participate as much as I would have liked.

I'm setting myself a project to learn to make basic scripts for learning purposes and to develop my skills.

Would any scripters be graceful enough to give me a few sample scripts for me to tweak and understand whilst learning?

 

Thanks guys!

 

Scott

Also it is worth noting that you can download local scripts and 'decompile' them.

A jar file is essentially compiled java code (java byte-code), and 'decompiling' a jar file will attempt to revert this byte-code to the initial source code. Since compiling is not a perfectly reversible process, some decompilers do provide minor inaccuracies to the initial source code, such as wrapping objects in one-item object arrays and such, but the jist of the code should be evident.

Java decompilers can be found online, you should be able to find a free online one with no problems. Decompilers running JDCore or similar are a good bet.

Things to note:

  • A lot of the local scripts are poorly written. Careful what you learn from!
  • As I mentioned above, the source code might not match the original, but it will be close.
  • Don't use that 'task/node' framework that people say you should use unless you have a good reason to..! I only say this because the local script section is full of these kinds of structures and they bring nothing new to the table above  simple if/else statements in your onLoop.

Let me know if you have any questions!

-Apa

 

Here are a couple of simple scripts you can take a look at that I wrote.

I'm glad to see new scripters and look forward to seeing what you make in the future. :)

1 hour ago, Apaec said:

Also it is worth noting that you can download local scripts and 'decompile' them.

A jar file is essentially compiled java code (java byte-code), and 'decompiling' a jar file will attempt to revert this byte-code to the initial source code. Since compiling is not a perfectly reversible process, some decompilers do provide minor inaccuracies to the initial source code, such as wrapping objects in one-item object arrays and such, but the jist of the code should be evident.

Java decompilers can be found online, you should be able to find a free online one with no problems. Decompilers running JDCore or similar are a good bet.

Things to note:

  • A lot of the local scripts are poorly written. Careful what you learn from!
  • As I mentioned above, the source code might not match the original, but it will be close.
  • Don't use that 'task/node' framework that people say you should use unless you have a good reason to..! I only say this because the local script section is full of these kinds of structures and they bring nothing new to the table above  simple if/else statements in your onLoop.

Let me know if you have any questions!

-Apa

 

:feels: 

Best of luck in your adventure. Ask in the chatbox a lot of people are active and will help you out.

7 minutes ago, alldaybye said:

Just use scripts and decompose them you gotta start somewhere :P

 

41 minutes ago, HeyImJamie said:

:feels: 

Yeah the guide is pretty outdated; I should really re-write it, I just haven't found the time recently. Thanks for reminding me!

22 minutes ago, Apaec said:

Yeah the guide is pretty outdated; I should really re-write it, I just haven't found the time recently. Thanks for reminding me!

It does what it needs to do. I used it myself starting out!:)

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.