Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/12/14 in Posts

  1. Dumbest recommendation I've ever seen, did you think this through at all?
    5 points
  2. Why not just go and sell on ebay or amazon, Theres anough scams as it is. inb4 noob sells fake iphones -.-. Sorry bro Im gonna have to say no
    3 points
  3. For the third time; we're working on it. We have been going through almost all of the scripts to add the lifetime sponsor discounts and to fix errors here and there, it's only just a few more scripts and than it's all good again. I'm going to warn you for excessive spamming if you make this thread one more time.
    3 points
  4. Parent can't control their kid so they ask a mod on an online gaming black market/botting site to ban their kid to teach them a lesson... Not sure if serious, or trolling... Because, you know.., cutting off their internet or setting restrictions on their computer is too mainstream. If honestly just threaten him with saying I'll delete all your browsers except internet Explorer and make it so you can't download anything.
    2 points
  5. It's too easy to get that rank, He can't even let his script banking. No hate on that guy but I agree give ranks based on Java knowledge. Would be an pain in the ass to see him with a colored scripter rank. An suggestion: The admins/Alek may choose who can get his name colored. But that might be the same as Official script writer.
    2 points
  6. I'll say it again, SDN scripter is so easy to get it doesn't deserve all of that.
    2 points
  7. Not sure if troll...
    2 points
  8. Yeah, but I have a ban button I can push IRL. I don't even need the computer.
    2 points
  9. Would toss my son into a 100 foot deep well for 2 weeks if he did this. Heathen child Also, bet you ban him when he dad charges back on osbot lolololol
    2 points
  10. Where's that, by fally or something?
    2 points
  11. once made a 10 chamber gatorade bottle bong using plastic piping to connect each one, you had to prop it up against a chair or something it was like 5 foot tall in the end and very unstable, but a hell of a rip
    2 points
  12. use a lead pipe, it's healthy for u m8
    2 points
  13. who did he pay to write his script?
    2 points
  14. 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
    1 point
  15. Fair point but I'd argue this should call for additional SDN scripter requirements such as 30 days with script on SDN.
    1 point
  16. If you get everything you're demanding (a colored name in this case), what will motivate you to try for OSD at all?
    1 point
  17. It's not like I'm asking for a bunch of benefits. I'm asking for a colored name. :| People don't know you as a scripted until you either tell them, or if they've bought one of your scripts. But when people come into chat and ask for help, it encourages them to know they're being helped by someone who has a script on the SDN. A colored name would help this out. This isn't a huge benefit. This wouldn't be a whole lot of work to add. All it will do is encourage people to keep SDN scripter rank (for the colored name and recognition) it will help new scripters to find out who to ask for scripting help (especially on issues with SDN) it will give more recognition for those who have scripter rank. I honestly can not see one downside to adding this other than "We have to remove it every time someone stops updating their script" which should be automated. If it isn't, then it should take someone 5 minutes to automate it.
    1 point
  18. Being known as a scripter is a huge deal itself. You guys get lots of benefits to start with. Please don't be selfish now, you make money + you want more and more benefits
    1 point
  19. 1 point
  20. If OP isn't suggesting the same thing I am I will ale my own thread.
    1 point
  21. I do waterfall quest, throw an addy scimmy on the account, go to cows in fally, level defense to 30, switch to attack, get it to 40, equip rune scimmy, switch back to defense until 40, put on full rune, and then send it off to druids and start training strength there
    1 point
  22. the real daycare is the computer itself.
    1 point
  23. 1 point
  24. I don't know Java, but didn't Gilg point out your error? bankbooth.interact("Bank booth"); prolly not doe, im dumb
    1 point
  25. @Smart apparently wasn't told the truth, about why you were muted. It is now applied to your profile again "#gg wp"
    1 point
  26. 1 point
  27. Bruh you need like 40 more brackets. It will work I guarantee you.
    1 point
  28. Oh my... That looks delicious. Not only is the art a solid 10/10 but the bacon made from that beauty, my goodness. Nice work man, I hope to see some more of your pieces.
    1 point
  29. Ahh man, wish I discovered OSBot earlier on..
    1 point
  30. I'll probably hit the 500 post requirement in a couple of years.
    1 point
×
×
  • Create New...