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

Nice man, thanks for the tutorial :) Might try to see if I understand some of it :P

You shouldn't haven't introduced enums so quickly, since that's pretty complex for a beginner scripter. Back in the ol' day when I was a beginner this was my basic skeleton:

 
//Constants
 
private boolean toWhatever() {
//code
return false;
}
 
private int whatever() {
// code
return 2000;
}
 
private int loop() {
if (toWhatever())
   whatever();
return Random().NextInt(50)+10;
}
 

Otherwise nice structure throughout the thread, I actually learned something new tongue.png

Edited by oTroll

  • Author

Haha, while I sort of agree with you, I think introducing enums early is a fun way to teach new learners to use Java's site as a resource (that's why I linked them to their enum page).

 

Regardless, I'm glad you learned something :)

Wow very detailed instructions thanks man!

Thanks for the tutorial it helped me a lot in addition to watch thenewboston/etc.

I can't add an external archive for some reason, it only shows 'configure build path'.

Got any advice?

  • Author

Haha pitoluwa, it's the simplest thing in the world >.<

 

I don't think a tutorial would be necessary lol.

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.

Edited by ping pong

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.