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

  • Author

Allright Pandemic, awesome tutorial. I am not new to coding, as I have created a fairly complex YouTube bot through Visual Basic that took me about 4 months. That being said, I jumped right into Java a while back and lost a lot of the touch I used to have. Looking over this, I like what you did here.

I just simply would like to see more diversity in the code. For example, what we can and can't change, and less structured since afterall, scripts can differ so greatly. I suppose what I am trying to say is can you show us what we can add and take away with this script, and diversify the tutorial a bit? Can you also show us more with creating an accurate paint (especially a draggable one, that seems to be the new thing).

Looking through what you did here, I feel as if we would have to create a powermining script. How do we add banking? The same way we added that it mines the rocks? But what about finding the nearest location, drawing the points for it to walk (or randomizing them inbetween), etc.? There are just so many unanswered points here, and I almost feel as if I have to create a script where it powermines or powerchops because that's all I would be capable of doing.

Wow, thanks for reading the tutorial and I'm glad you like it (sort of at least).

Everything that you've said here is very, very true. I'm doing this on purpose, because I'm working on a full series of scripting tutorials (around 5 total) that will each teach you more and more.

Stay tuned for the future tutorials :)

P.S. The next tutorials will all be more on actually scripting and less on setup (as this one is).

Once again though, thanks for the write up!

  • Author

Thanks the second tutorial is 90% done, I just need to get screen shots and IDs.

Part 2 includes path making, path walking, and banking.

Stay tuned :)

 

Allright Pandemic, awesome tutorial. I am not new to coding, as I have created a fairly complex YouTube bot through Visual Basic that took me about 4 months. That being said, I jumped right into Java a while back and lost a lot of the touch I used to have. Looking over this, I like what you did here.

I just simply would like to see more diversity in the code. For example, what we can and can't change, and less structured since afterall, scripts can differ so greatly. I suppose what I am trying to say is can you show us what we can add and take away with this script, and diversify the tutorial a bit? Can you also show us more with creating an accurate paint (especially a draggable one, that seems to be the new thing).

Looking through what you did here, I feel as if we would have to create a powermining script. How do we add banking? The same way we added that it mines the rocks? But what about finding the nearest location, drawing the points for it to walk (or randomizing them inbetween), etc.? There are just so many unanswered points here, and I almost feel as if I have to create a script where it powermines or powerchops because that's all I would be capable of doing.

Wow, thanks for reading the tutorial and I'm glad you like it (sort of at least).

Everything that you've said here is very, very true. I'm doing this on purpose, because I'm working on a full series of scripting tutorials (around 5 total) that will each teach you more and more.

Stay tuned for the future tutorials smile.png

P.S. The next tutorials will all be more on actually scripting and less on setup (as this one is).

Once again though, thanks for the write up!

 

 

Perfect! Thanks a ton for the analysis! And just to clarify, I do like this tutorial as it is great for beginning. One of the best I have seen in respects to scripting. Do you happen to have a Skype? I would like to get more in depth quickly and could use some advising probably beyond this.

Why do so many people use states? I don't see how using states helps at all. It doesn't really serve a purpose.

 

Its a good question. Most scripters use this state system without even realizing that they could do without it and achieve the same purpose. However, I agree it does make for cleaner code.

I will try to learn how to scrip, thanks for the tutorials, you got skype or something? I'd like to ask a few questions and maybe get pointed out in right direction etc, would be very nice of you, thanks once again!

Awesome guide! Simple and to the point. This will definitely help the people just starting out scripting. 

Didn't really explain what @override means

Override is an annotation that means you are overriding a method from a superclass. It doesn't have any functional purposes, other than readability, so people reading your code knows the method is overriden from another class.

  • Author

Didn't really explain what @override means

Override is an annotation that means you are overriding a method from a superclass. It doesn't have any functional purposes, other than readability, so people reading your code knows the method is overriden from another class.

Thanks Omoshu, but this is a rather technical version of what it does, so let me explain it much simpler:

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).

Hi I dont know any Java at all, only some HTML, would I be able to learn this language without going back to Java?

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.