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.

Explv's Scripting 101

Featured Replies

7 hours ago, Jacksonpm23 said:

Starting this now. Looks like the most recent guide for this I could find off google haha.  If my computer ends up on fire I blame you <3
Do you think codeacademy or something is a good place to fulfill that pre-requisite? @Explv

I started doing Java with 0 knowledge, just google & osbot help.

Thank you Explv & Apae hehe.

PM me your discord if you need any help

  • Author
8 hours ago, Jacksonpm23 said:

Starting this now. Looks like the most recent guide for this I could find off google haha.  If my computer ends up on fire I blame you <3
Do you think codeacademy or something is a good place to fulfill that pre-requisite? @Explv

I learned the basics of Java quite a few years ago (from a big fat book), so I'm not really the best person to ask about current tutorials. I would have thought codeacademy is decent enough. You don't need loads of knowledge to start scripting, and you'll mainly learn from trying to build things and making mistakes.

7 hours ago, Explv said:

I learned the basics of Java quite a few years ago (from a big fat book), so I'm not really the best person to ask about current tutorials. I would have thought codeacademy is decent enough. You don't need loads of knowledge to start scripting, and you'll mainly learn from trying to build things and making mistakes.

Haha I'll pick up one of those at the used book store sometime then. Thanks. I'm excited. And @atoo sure ill pm you it 

@Explv I'm new to java and making GUI's. Have som questions :)

1) Why do you add the JDialog mainDialog/JComboBox<> treeSelector to the main class instead of the constructor method? The main dialog is accessed in the other methods, - but the ComboBox also? no? So, why declare it in the scope of the class and not just in the constructor instead? :o 

 private final JDialog mainDialog;
 private final JComboBox<Tree> treeSelector;

2) Also when I declare all of the JPanels, the JLabel and all the other instances to the class scope, and then reference them in the constructor, the Start button won't show up when I run with main() method ( main(String...args) )? Why is this? :I 

3) When I just declare and create the instances inside the scope of the constructor, like you did with the mainPanel etc., everything works fine. Why? 

What is the difference, and why do you do it like this? Can you elaborate? :)

 

Edited by t0r3

  • 4 weeks later...

just posting here so I can remember to read this when I get out of work, how do I mark certain threads?

  • 4 months later...
  • 2 months later...
On 2/1/2017 at 1:09 AM, Chris said:

this gave me a virus! DONT DOWNLOAD!!!!

i don 't see any  virus, what's the deal?

On 11/24/2019 at 2:49 PM, dev027292 said:

i don 't see any  virus, what's the deal?

its a troll lmao

10 minutes ago, Rick said:

its a troll lmao

well consuming all the system resources could be flagged as a virus actually.

 

If the bot just a null pointer exception and crashes the program.  I would classify it as a virus.

  • 3 weeks later...

Wow thanks so much for taking the time to make this guide.

I ran into trouble with the GUI at the very end (the enum Tree objects were giving me trouble back in my main class).

But here's how I fixed it in case anyone runs into the same issue:

I deleted the enum and changed the Tree objects into Strings. Then just add the Strings individually into the JComboBox.

GUI Class:

Untitled.jpg.1e7acf697813404ccc001ac8d0736f4d.jpg

Main Class:

Untitled2.jpg.c18fae1bc539970caf5ad6ea2ae19b60.jpg

 

(i know this may be less efficient/elegeant/conventional... but it seemed much more beginner-friendly to me)

  • 4 months later...
  • 1 month later...
  • 1 month later...
  • 1 month later...

I've built it in intellij, but the script isn't showing up in the script selector? Any ideas? cheers for the guide btw 

 

 

  • 5 weeks later...

Thanks for the guide.
I wrote my first script with this! :)

On 8/26/2020 at 9:03 AM, mitsuki said:

I've built it in intellij, but the script isn't showing up in the script selector? Any ideas? cheers for the guide btw 

 

Make sure you've got the output directory filled out correctly.
I know I had a couple silly mistakes because I went to fast.

Edited by Kalapeno

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.