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.

Leaderboard

  1. Dylan

    Trade With Caution
    10
    Points
    2949
    Posts
  2. lolmanden

    Trade With Caution
    10
    Points
    5515
    Posts
  3. Jordan

    Java Lifetime Sponsor
    9
    Points
    26997
    Posts
  4. Maldesto

    Administrator
    9
    Points
    19218
    Posts

Popular Content

Showing content with the highest reputation on 02/11/14 in all areas

  1. Win 3,500 Youtube Subscribers to your very own youtube channel. 1) Like this thread 2) pick a number from 1 to 100 ends 24 hours from now at 1.00pm gmt+0
  2. LOL

    3 points
  3. 3 points
    Once again... I checked his script by decompling it and even running a virus total scan, all earlier today, and there is NOTHING in there what so ever, so stop bashing him!
  4. Who is butthurt? People reading this thread, or the person who got so butthurt they had to create a thread whining like a little bitch? I'm confused, and I fail to see any logic in your thread (other than what I just posted of course.)
  5. 2 points
    16 and TWC, your future is bright.
  6. 2 points
    Just make your own. It's much more secure
  7. I think it's wrong that 100+ Donor have first access to it. It clearly states here that the Donor rank is strictly for donations only... I understand that you gave it to 100+ so that they wouldn't leek it but honestly the most trusted members of this community are the ones who have been deemed "verified" by the owners of this site themselves so it only makes sense to give it to verified users only. P.S. I'm just trying to state the logic.
  8. Updated for OSBot 2's API! Hello future script writers and other OSBot members! This will be my first OSBot script writing tutorial, and it's geared toward beginners with at least some understanding of Java (however, I'll still be covering some fundamentals). So, let us begin. Step I: Getting the IDE An IDE (integrated development environment) is software that makes programming much easier on you, the programmer. There are many Java IDE's to choose from (IntelliJ, NetBeans, Eclipse, and many more), but for this tutorial, we'll be using Eclipse. You can download Eclipse here. Simply choose the Eclipse Standard and download the version for your computer (32 or 64 bit). Once downloaded, use a program to decompress the archive, and move the eclipse folder to wherever you'd like (C:\, your desktop, it honestly doesn't matter). To open Eclipse, go into that folder and open the Eclipse application. Congratulations, your one step closer to making OSBot scripts! Step II: Basic Java Fundamentals Java, like C++, PHP, and Javascript, is a high-level programming language, which simply means it's very readable by humans (we use English while programming in these languages) and therefore much simpler to write code. If you're an absolute beginner, with no background in programming at all, this is going to go by extremely fast, and I will likely skip over some important topics. If you fall into this category, you absolutely NEED to read these tutorials by Oracle. I'm not sure about most of you, but I feel that a great way to learn something is to dive right in, and worry about the little things after you've started to understand the bare essentials. With that in mind, let's take a look at a simple HelloWorld class: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World, I'm learning Java!"); } } Now looking at that might be intimidating if you're new to this, but believe me it's very simple! I'll break down some of the common words used above: public: This could be public, private, protected, or default. It simply states the visibility of this class/method/variable. Public items can be seen from outside of your package, private items can't be seen by other classes in your package, protected items can only be seen by the subclasses of your package, and default can only be seen by your package. class: A class is like a blueprint from which objects are created (Oracle). static: This is a keyword that simply means that only one instance of it will ever exist, even if you recreate it infinitely. void: This is the return type of this method. Void methods return nothing, int methods return integers, String methods return strings, and so on. String[]: This is an array. Arrays are just containers that hold a specific number of items (of one type). For example, this method takes an array of strings as a parameter. System.out.println: This is just a method that prints a message to the console and then prints the newline character. ;: Semi-colons are used at the end of any Java statement (note: conditionals and loops do not count as statements), without them, your compiler will give you errors. { }: These curly braces are used to surround/contain the contents of a class/method/etc. This is all of the Java basics I will teach, simply because there are already many resources out there (see above). Step III: Setting up a Java Project Setting up a Java project in Eclipse for making OSBot scripts is simple, just follow these steps: Step 1: Press File>New Java Project and name your project, then press finish Step 2: Add the OSBot .JAR file to your build path Step 3: Add a class to your new project And you're ready to actually start script writing! Step IV: Creating Your Script Now here's where we actually start making your script! For this example, we'll be creating a very simple mining script that will mine and drop everything once the inventory is full (please note: this example is hardly usable for a script, but it shows the basics. With a real mining script, you'll want to replace the object name with the ID(s) of the rocks, so you don't try mining empty veins). Here's the full source: import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(author = "You!", info = "I made this script!", name = "Basic Miner", version = 0, logo = "") public class BasicMiner extends Script { private enum State { MINE, DROP }; private State getState() { if (inventory.isFull()) return State.DROP; return State.MINE; } @Override public void onStart() { log("I can't believe script writing is this easy! I love learning!"); } @Override public int onLoop() throws InterruptedException { switch (getState()) { case MINE: if (!myPlayer().isAnimating()) { RS2Object vein = objects.closest("Rocks"); if (vein != null) { vein.interact("Mine"); } } break; case DROP: inventory.dropAll(); break; } return random(200, 300); } @Override public void onExit() { log("Thanks for using this wonderful script!"); } @Override public void onPaint(Graphics2D g) { } } Now most of that will be confusing, but don't worry, I'm here to help you! I'll break this down for you. import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; These lines import other classes for their use in your script. @ScriptManifest(author = "You!", info = "I made this script!", name = "Basic Miner", version = 0, logo = "") This is the script manifest, which simply tells OSBot your script's author, info, name, and current version (for use in their class loader). public class BasicMiner extends Script { ... } This just defines our class, and extends OSBot's Script class, so we can use all of their fancy API methods. private enum State { MINE, DROP }; private State getState() { if (inventory.isFull()) return State.DROP; return State.MINE; } Here we make an enum (collection of constants) called State which holds two states: mine and drop. Then we have a method that's return type is State (so it returns a State, which we just made). If your inventory is full, this method will return the dropping state, otherwise it will return the mining state. @Override public void onStart() { log("I can't believe script writing is this easy! I love learning!"); } This method is part of OSBot's Script class (which we're extending from). The onStart() method is only called once, and is called at the beginning of the script. This is where you should define some variables that only need defined once (the start time, start experience/level, etc.). @Override public int onLoop() throws InterruptedException { switch (getState()) { case MINE: if (!myPlayer().isAnimating()) { RS2Object vein = objects.closest("Rocks"); if (vein != null) { vein.interact("Mine"); } } break; case DROP: inventory.dropAll(); break; } return random(200, 300); } This is another method from OSBot's Script class (see that @Override?). onLoop() returns an integer, or how many milliseconds to wait before doing onLoop() again. We then use a switch statement to see what we should be doing. If we're to mine, we check if our player is currently animating (mining). If we aren't, we find the closest rock to mine, if that doesn't exist (or is null), we stop right there. But if it isn't null, we interact with the rocks by pressing "Mine". If we're to drop, we simply drop everything in your inventory (you did have your pickaxe equipped, right?). @Override public void onExit() { log("Thanks for using this wonderful script!"); } @Override public void onPaint(Graphics2D g) { } onExit() and onPaint(Graphics g) are two more methods from the Script class. onExit() is called once your script is stopped, and onPaint(Graphics g) is called every time the screen is updated. Step V: Exporting Your Script The final step to this tutorial will be exporting the script we just made so we can actually test it out! Step 1. Right click your project and press Export... Step 2: Choose JAR file Step 3: Choose your OSBot's scripts directory and export it! Well that's all for this tutorial, thanks for reading! You can find Part II here! Also: post suggestions for future tutorials, and I'll definitely consider it!
  9. 60 ATTACK DDS/DSCIM STAKER! 1. Pictures of the account stats 2. Pictures of the login details 3. Pictures of the total wealth (if there is any) 4. Pictures of the quests completed 5. The price you will be starting bids at 5m 6. The A/W (Auto-win) for your account N/A 7. The methods of payment you are accepting Paypal/07Gp 8. Your trading conditions I have the right to decline an offer and I go first unless you're trusted or we use MM 9. Account status 10. Original/previous owners AND Original Email Address Will supply, as with approx creation/IP used
  10. he actually said in his thread that he was the original owner, then told me just before i bought it that he wasnt. plus he said if i had any problems with it being recovered he'd give me a refund.
  11. 20, so I guess I qualify for the 10+ option
  12. Yes he is still selling, and a big vuoch for him! I bought 3 accounts yesterday, all fine and running GDK already!
  13. 1 point
    I just decompiled his code & I can't see anything special. Quit downloading MemberShip generators it will work.
  14. * Dispute closed..
  15. yes this is what maldesto does sometimes if he thinks your guilty of something he will just have it set in stone in his mind that you did it without asking the other person first. what maldesto should have done was asked you first if you were doing it, then showed evidence to trustmybet of it.. but no lets prolong the situation by just making threats maldesto's logic......
  16. Sounds like you're upset, m8
  17. Go try this.... http://virusscan.jotti.org/en
  18. Ooo got a warrior over here watch out noone asked you too look. please go be a tool somewhere else
  19. The f*ck are you wearing a b-ring to bot cows for
  20. Your chances of getting this account are high likely if you use my service. I personally know a JMOD who can unban you but first I am going to need you to send 1,000$ to my paypal account. U can send me a pm with ur skype and we can discuss.
  21. I believe this falls under Elevated Also for all the thirsty motherfuckers in this thread
  22. very good effort for not having any experience!
  23. Oh noes. ill just keep botting combat and druids like a boss
  24. Hmm i think im gonna go with the AMD FX 8350 with a GTX 760
  25. Vinnie Paz, dope. http://www.youtube.com/watch?v=WuFOmlbDzM4
  26. This will not happen! If one of my team members commits this bad fellony, i will myself personally get it all back for you free of charge.
  27. 1 point
    What Alek monitors scripts? My request has been up for 8 days and still no reply lol.
  28. "anyone fancy giving me a hint to get a few mill quickly?" leveling slayer
  29. 200 each. ASAP please, we can negotiate the price
  30. Someone have sold 30+ knifemakers and not even updated it once. It's flawless I just need shitload of knives and nobody is selling xd bought, thanks scrub
  31. I'll be checking back next year then :P
  32. I'm sorry, but being one of the people with the BETA I can say this won't be out for awhile.
  33. 70% of the vouchers I sell, I only just break even with Currency Conversion.
  34. Yeah man i know a spot that makes 1m/h without any reqs can't leak it tho
  35. You will most likely have to go first since you have a 10 post count and no feedback =)

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.