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.

Pandemic's Scripting Series: Part I - Setup and Basic Logic [UPDATED FOR OSBOT 2]

Featured Replies

Pandemic, two things I dont understand. What does @override do and what does the break; do??

  • Author

Pandemic, two things I dont understand. What does @override do and what does the break; do??

 

Sorry for the late reply I didn't see this post somehow lol.

 

Anyways:

 

The @Override above a function simply means that OSBot will use this function instead of the default function that's defined in the Script class (the one our script is extending from). You can also call the default function by doing the super() function inside of the function you're overriding (well it's useless in this case, because the Script class functions are empty). 

 

and break; just "breaks out of" any loop you happen to be in.

Thanks for creating, I think i'll start learning scripting. I've done many RSPS sources.

  • 3 weeks later...

hmm i'm a newb when it comes to java so bear with me here. but esssentially i just started out by rewriting out the script, it doesnt seem to detect the rock is null? or do i have wrong understanding of that? because it goes by name, and the name doesnt change when the rock loses its ore(it just changes id) the script will keep clicking the rock you already mined ;d. 

  • Author

hmm i'm a newb when it comes to java so bear with me here. but esssentially i just started out by rewriting out the script, it doesnt seem to detect the rock is null? or do i have wrong understanding of that? because it goes by name, and the name doesnt change when the rock loses its ore(it just changes id) the script will keep clicking the rock you already mined ;d. 

 

I know, this isn't a script to actually use, and in part 2 we fix this problem :)

I know, this isn't a script to actually use, and in part 2 we fix this problem smile.png

ah, i just went and made a gui for inputting id's instead.. i must say after doing this. i def prefer Visual Basic's ability to distinguish WHAT THE FUCK IM SAYING when i dont use the proper capitalization/ lack of. 

i.e in VB if i wrote dim blah as string it would auto correct to Dim blah As String

in java its like oh man idk what you mean, errors everywhere! 

lol

mellow.png

Your tuts are the best <3

Fantastic Tut, used yours to create my script i think your next tut should be adding custom paint, time ran, xp gained, ore mined ph etc that would make a fantastic tut :P

Followed all of your guides and I still have so much trouble. I guess scripting just isn't my cup of tea.

  • 2 weeks later...

Maybe I should go to my councelor and add just 1 basic programming class to my schudule next year. If i could just know the basics, maybe this would help me learn more? This looks so intense, and some makes sense, then other parts make me drool. lol. I think I need like hands on learning for it. Nice post tho

very nice tutorial :)

only with no expercience with java this seems like it would take me ages to understand and learn this.

I am trying to make combat script, but I can't find how to make it wait while attacking a monster, because it clicks on it all the time. Can you help me?

  • 2 weeks later...
Guest
This topic is now closed to further replies.

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.