Skip 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. Swizzbeat

    Members
    24
    Points
    7986
    Posts
  2. Maldesto

    Administrator
    23
    Points
    19230
    Posts
  3. NotoriousPP

    Trade With Caution
    13
    Points
    1217
    Posts
  4. RoomScape

    $100.00 Donor
    12
    Points
    10121
    Posts

Popular Content

Showing content with the highest reputation on 03/09/14 in all areas

  1. Cat+Dog = Great Cartoon. So this is completely invalid.
  2. Using Multiple Classes Complete Guide! Tutorial Written By: @NotoriousPP Introduction: It has been brought to my attention that some script writers do not know how to use multiple class files inside of their project, and in this tutorial I will try to cover everything I can, to help you have a better understanding how this is done correctly. I will be working on an example project for this tutorial, just follow along using your own project, doesn’t matter which type of project, as long as you understand what’s going on. This project will be modeled in a State based framework, as I see this most often used throughout the forum. Another question you may have, why should you use multiple classes, what are the benefits, is there an upside? Speaking from an Organizational aspect, yes! Splitting up classes makes it easier for the writer and to whoever is working on the script, instead of having to search through a wall of text; you can simply find the class in your Project Folder. Things you’ll need: A Computer or Laptop. A IDE (For this tutorial I will be using Itellij) Latest Version of OSBot. A Brain (Might help) Getting your project setup: Create new project, and add OSBot as a library. Your project should now look something like this: Create packages inside of your src folder, this well help better organize your script! After doing this it should look similar to this: The Real Work Begins (Kinda): So now that we have packages in our src, we need to fill them up! So first lets create a Script class inside of our Core package. (Notice the Class name “ExampleScript”, this is following correct Conventions. An incorrect way of naming classes would be “examplescript”, “exampleScript”, “EXAMPLE_SCRIPT”, etc. If you would like to learn more about Conventions, you can go here: Code Conventions for the Java Programming Language) Alright so now we have a basic Skeleton setup, though it does nothing just yet. Well, lets change that! Since for this tutorial we are writing a State based script, first we need to create State Objects! To do this we need to create an Enum, which basically is “a special data type that enables for a variable to be a set of predefined constants.” (docs.oracle.com). I personally like to have a package that stores all my data needed for a script, so I’m going to create a new package “data”. After we have created the package, create a new Enum inside of the “data” package. (If you don’t know how to create an Enum right away, just create a new class file for right now, and I’ll show you what to do next!) (If you were one of the people who did not know how to create an Enum, simply create a new Class, and then replace “class” with “enum”, and your set!) For this Enum were are only really using the name, and not storing any real data here, so all we need to do is add the different States we want in our script! For this example, I will be using Attack, Eat, Loot, Drop, and Bank. REMEMBER! To follow correct Conventions we are going to name the states using all CAPITAL letters. Optional: Adding a toString() method can be used to make your “state” or “status” more presentable, and not YELLING AT YOU when displaying. The method essentially grabs whatever “state” being used, and modifies it to your liking. In the example below, it creates a final String “s”, then replaces all underscores (Not used in example) with a space; the next like I return the String “s”, though I grab the first Char of the string and add it to a substring for the rest of the string and add a toLowercase(), making ATTACK, to Attack. This is especially helpful when using States as a status; this method can be applied to all types of Enums! (Cool trick if you’re a Windows Intellij user! You can type all your states without having to type with caps lock, or holding shift; just type your states, select them, and press “ctrl + shift + u”, and it will capitalize all selected, or turn it to lowercase if already capital) So we have our States, now what do I do? Well we need to get a getState() method ready our Script class. If you don’t already know, this is the method we use to determine which action or “state” should be executed. Then in the onLoop we have a Switch statement that determines which action should be executed. So what do we do now? The some people here make the mistake of continuing using this class for their tasks, actions, and data; just everything really. This is exactly what this tutorials main focus is on; how we can use multiple classes to help organize our project. You Script class should now look something similar to this. So now we get to create our first separate class! You may ask, well how will I be able to use myPlayer(), client.getInventory(), if I’m not inside of the Script class. Well one word really “Constructors”. We are going to need to create a constructor that takes a Script variable which we can use throughout the script, in this case “sI” (Swizzbeat are you happy now? I didn’t use sA this time ) which refers to Script Instance; but first we need to create a new class inside of our “tasks” package (folder), and in the example I will be creating an Attack() class. In this class we create a public Constructor that accepts a Script variables “sI” as discussed before! So now you should have a class that looks like this. Well you’re almost done implementing your first separate class (If this is your first time that is)! In the Attack() class we can now use “sI” for all of the calls we need, so instead of typing myPlayer() like in the Script class, it would be sI.myPlayer() in your extended class. So for example you can do something along the line of this: (Please don’t use this snippit below for real, it’s just a funny example, I don’t want a PM saying this didn’t work…) Alright so I got a separate class, but how the hell do I use this shit? You might be asking. Well in your Script class, since you extended Script, by using “this” is other words a Script variable, so that’s what we will be using to call our class! So in the onLoop, we can now add the new separated class, simply by adding “new Attack(this);”. Yup it was that easy! So it should look similar to what I have below. Just import the class (Most IDEs do it automatically), and call the class using “new Class(this)”: Well if you don’t understand how this all works by now, read through it once more, it will make sense eventually! To add more classes to our project, just use the same logic we used in creating our Attack() class(Or hell you can just copy/paste, and edit a little). The other packages in our “src”, can be used for numerous of different classes, just it’s up to you to fill them, just use them to keep organized! Conculsion: Well if you followed along, and got it working correctly! Congratulations! Separating classes help you so much down the road when working with large project, teammates, and or co-workers! No one wants to read a wall of text, it’s much easier to navigate through folders and get the file you need (Like how an office files paper work, Duh…). I really hope you guys all enjoy reading this, and it helps a few people out with their scripts! If you have any suggestions, and or comments, please leave them below, and I’m more than gladly answer them! Also let me know about any errors that you find! I'm not a expert, just trying to help! Sources used: http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html http://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html http://www.oracle.com/technetwork/java/codeconv-138413.html
  3. The user has faked a refund and lied to us directly, he has now been IP banned from the forums. Sorry for your loss, if you have any questions let me know. Dispute Closed.
  4. 3 points
    Congratulations to @whips for winning this SOTW!
  5. 2 points
    - 09/03/2014 -10/03/2014 -11/03/2014 - 12/03/2014 - 13/03/2014 - 14/03/2014 - 15/03/2014 - 16/03/2014. - 17/03/2014 - 18/03/2014 - 19/03/2014 - 20/03/2014 - 21/03/2014 - 22/03/2014 - 23/03/2014 - 24/03/2014 - 25/03/2014 - 26/03/2014 -27/03/2014 - 28/03/2014 -29/03/2014 - 30/03/2014 -31/03/2014
  6. I found this recently and thought I would share! It's just a giant collection of the source codes for the biggest scripts awhile back on clients like RSBuddy and p****bot, so obviously this code isn't written for OSBot but it's a great place to go to see how people did things and grab some snippets. Interestingly enough it also includes the source for iDungeon which was (I'm 99% sure) the most sold script ever. https://github.com/Stevemagegod/My-Favorite-Runescape-Scripts/tree/master/src
  7. Can we ban hyphens and maybe periods too?
  8. The IP you've listed matches the disputed user, if you could provide me with more evidence (pictures, etc) that'd be beneficial. Thank you. Edit: The user has been IP banned.
  9. http://funnyvines.us/?id=1156
  10. This is not an OSBot related discussion.
  11. Why you keep stalking me everywhere faggot.
  12. Send Raflesia a PM and apply for the rank.Stop going off-topic.
  13. 2 of the trial mods are not mature majority of the time.....literally....... worse than me.
  14. the videos are not helping :'(
  15. Dont download porn+ gold generators and you'll be fine
  16. Welcome to zuzel111's Fire Caping service! Many of you can recognise me from other forums under same name where I provide my Fire Caping service, Official Middlemanning service and some other services I had and still have Why should you use my services? I am Official Middleman on other site. Just google zuzel111 Middlemanning 1000+ Vouches on other site, can't mention which but there's only one with 'Official' middlemen' Over 200 OLDSCHOOL Fire Capes completed and of course, many of you may think who cares about other site, many of you know that I'm held responsible for everything that happens here on other forums! That means, Scamming surely wont take place here! You're as safe as you'd be on site I got the biggest prestige on! Contact info: E-Mail/MSN : zuzel14@hotmail.com Skype: Live:zuzel14 NEVER TRADE WITHOUT PM. There are TONS of impersonators! MIN requirements 61+ Ranged 1+ Def 45+ HP Price warries between 3.8M / $8.80 to 13M / $30 and depends on stats ORDER FORM: Ranged level Defence level HP & Pray levels: Have you added my skype? Terms of service: If I fail your fire cape due to ANY reason. You get supplies refilled by me and cape is done again with no additional costs I am not responsible for rollbacks/mutes/bans You have to change your password straigh after I tell you cape is completed and you may login You may not login on account while I'm working on it or change password. I got 24hours to complete any cape. However most of them are completed straigh away Some previously completed capes in spoiler below Gear 1-39 def 70 ranged + Gear 40-69 def 70 ranged + Gear 70-99 def 70 ranged +
  17. You might want to go beyond Enum cases and explain other frameworks as well. Nodes are good for beginners too.
  18. Thank you for this mate, quite helpful
  19. Get a list of all the worlds in the cc and pick the most popular one You have to use a grandchild interface The children of 589, 5
  20. LOL not true. I wrote a few scripts for RSBot back in the day and they were all packaged.
  21. I would be happy if we have 80% We have about 50-60% due to paypal and osbot fees
  22. I just opened all of them you arsehole
  23. Taking a baseball bat and hitting me with nostalgia with the CatDog reference
  24. It's not the level of complexity. Premium script bans are based off of: -How many exist in the current market -How many chargebacks existed in the past for similar scripts -How many scripters abandoned their scripts shortly after development We can let some people circumvent those rules, however they are usually from well established scripters in the community. Considering you haven't been around here long, the likelihood of letting you sell this, would be highly unlikely. I would suggest starting off small, posting around the forums, and release some free projects before you start such an ambitious one.
  25. Guys did your hear about this new AWESOME GLITCH Runescape.com/forums/topic-2424542 its gyazo dont worry
  26. Proxies with username & passwords don't work with batch files.
  27. Just to add to this, I went first on a trade with him on Thursday evening, I bought 2 proxies from him, he said it'd take 12-24 hours for them to be authenticated to my IP. It's been almost 48 (I thought he had originally said 48 hours, so waited until now to look back into Skype logs), and they're still not working. I'll post Skype logs if needed.
  28. Bought Another 1.5m ~~~~ At 3m now Deal went super fast and smooth, he even came my world and place, definately going to buy more
  29. Actually I have not complained about any scripts except for two of yours because you make a halfass script, release it and dont answer people telling you errors thats going wrong with your script, go look at your Skeleton slayer script I posted like 4 days ago or more on it and no answer from you explaining the reason for the error
  30. I got beatings because of those gifs, Make sure to not surf the forums on the kitchen table when your mom is behind you.
  31. OMG what? so the gp generator did not work?
  32. 1) No. Is this really needed? Like, it's rather pathetic if you NEED to discuss porn with other people. 2) I'd say yes, since OSBot 2 is far from done, and we're stuggling working with what we have now. 3) No, this isn't a popularity contest. 4) No, this is situational of course. 5) In that case, the private servers are paid advertisement, which is why they're being posted by an admin. Just like how there are paid ad banners on the forums + client. 6) Situational again, but the rules can be handled however the mod sees fit, to an extent. Also, u wot m8

Account

Navigation

Search

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.