Jump to content

Dreamliner

Trade With Caution
  • Posts

    1642
  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Everything posted by Dreamliner

  1. im 12 and i smoke pot all day every day #fuckschool #hashtag #swaag #yolo 420 blaze it son
  2. I have no users. I released my source out of the kindness of my heart. Care to give me pointers how to make it better?
  3. We never said it wasn't. You, @Maxi and @Laz both need to be present in the community because it's good PR and customer service.
  4. System isn't bad... A platform dependent system running inside of a platform independent system is bad. Wait im confused what makes this only work on Windows? please clarify your statement It saves to C:/Users/USER_NAME Linux and Unix(Mac OSX) do not use this file scheme. LMFAO your joking right? You simply change the directory location (the string) honestly haha thats funny infact that has nothing to do with the function of the code itself, thats just telling the jvm where to put the file (Which your suppose to enter manually anyways) No, it should dynamically figure it out itself. It should not rely on user input. I was purely commenting on what was posted, not what was possible to be added. He should of used System.getProperty("os.name") and used a switch statement to convert the file location to the correct one. He did not do this so it is not compatible with any OS other than Windows in it's current form. Honestly because it is not your way, doesn't make it wrong/bad. It is perfectly fine and functional and can work on other machines with minimal editing (One string) You over complicated this more than it should If you want it to work on other machines all you do is change ("C:/Users/") in the locations to work with your machine getProperty("os.name") allows you to do this without the user selecting their OS. Obviously it is better. I don't use linux or mac. I have no need to check an extra line for something I never use. Anyone who scripts here, especially on mac or linux can figure out how to save files them selves. And last time I checked, OSBot has compatibility issues on mac.
  5. User.java public class User { private int atkxp = 0; private int strxp = 0; private int defxp = 0; private int hpxp = 0; private int time = 0; private String name = null; public User(String name, int time, int atk, int str, int def, int hp) { this.setName(name); this.setTime(time); this.setAtkxp(atk); this.setStrxp(str); this.setDefxp(def); this.setHpxp(hp); } public int getAtkxp() { return atkxp; } public void setAtkxp(int atkxp) { this.atkxp = atkxp; } public int getStrxp() { return strxp; } public void setStrxp(int strxp) { this.strxp = strxp; } public int getDefxp() { return defxp; } public void setDefxp(int defxp) { this.defxp = defxp; } public int getHpxp() { return hpxp; } public void setHpxp(int hpxp) { this.hpxp = hpxp; } public int getTime() { return time; } public void setTime(int time) { this.time = time; } public String getName() { return name; } public void setName(String name) { this.name = name; } } UserManager.java import java.io.File; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerConfigurationException; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.SAXException; public class UserManager { public UserManager() { } public void saveUser(User u, int time, int atkxp, int strxp, int hpxp, int defxp) { File dir = new File("C:/Users/" + System.getProperty("user.name") + "/OSBot/Scripts/Dreamliner/MonsterKiller"); if (!dir.exists()) { dir.mkdirs(); } File file = new File("C:/Users/" + System.getProperty("user.name") + "/OSBot/Scripts/Dreamliner/MonsterKiller/" + u.getName() + ".xml"); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = null; try { db = dbf.newDocumentBuilder(); Document d = db.newDocument(); Element root = d.createElement("user"); d.appendChild(root); Element e_atk = d.createElement("atkxp"); e_atk.setTextContent(Integer.toString(u.getAtkxp() + atkxp)); root.appendChild(e_atk); Element e_str = d.createElement("strxp"); e_str.setTextContent(Integer.toString(u.getStrxp() + strxp)); root.appendChild(e_str); Element e_def = d.createElement("defxp"); e_def.setTextContent(Integer.toString(u.getDefxp() + defxp)); root.appendChild(e_def); Element e_hp = d.createElement("hpxp"); e_hp.setTextContent(Integer.toString(u.getHpxp() + hpxp)); root.appendChild(e_hp); Element e_time = d.createElement("time"); e_time.setTextContent(Integer.toString(u.getTime() + time)); root.appendChild(e_time); prettyPrint(d, file); } catch (TransformerConfigurationException e) { System.out.println("1"); } catch (TransformerException e) { System.out.println("2"); } catch (ParserConfigurationException e) { System.out.println("3"); } catch (Exception e) { } } public User loadUser(String user) { File file = new File("C:/Users/" + System.getProperty("user.name") + "/OSBot/Scripts/Dreamliner/MonsterKiller/" + user + ".xml"); int atkxp = 0; int strxp = 0; int defxp = 0; int hpxp = 0; int time = 0; if (file.exists()) { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db; try { db = dbf.newDocumentBuilder(); Document d; try { d = db.parse(file); atkxp = Integer.parseInt(d.getElementsByTagName("atkxp").item(0).getTextContent()); strxp = Integer.parseInt(d.getElementsByTagName("strxp").item(0).getTextContent()); defxp = Integer.parseInt(d.getElementsByTagName("defxp").item(0).getTextContent()); hpxp = Integer.parseInt(d.getElementsByTagName("hpxp").item(0).getTextContent()); time = Integer.parseInt(d.getElementsByTagName("time").item(0).getTextContent()); } catch (SAXException e) { } catch (IOException e) { } } catch (ParserConfigurationException e) { } } User u = new User(user, time, atkxp, strxp, defxp, hpxp); return u; } public static final void prettyPrint(Document xml, File file) throws Exception { Transformer tf = TransformerFactory.newInstance().newTransformer(); tf.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); tf.setOutputProperty(OutputKeys.INDENT, "yes"); StreamResult sr = new StreamResult(file); tf.transform(new DOMSource(xml), sr); } } How to use public UserManager um = new UserManager(); public User user = null; String un = this.client.instance.getUsername(); if (un != null) { this.user = um.loadUser(this.client.instance.getUsername()); this.loaded = true; } um.saveUser(this.user, t3, this.pu.getAtkGained(), this.pu.getStrGained(), this.pu.getHPGained(), this.pu.getDefGained()); you get this<?xml version="1.0" encoding="UTF-8" standalone="no"?> <user> <atkxp>102560</atkxp> <strxp>125268</strxp> <defxp>102561</defxp> <hpxp>110114</hpxp> <time>18778</time> </user>
  6. Well that's because computer science isn't just java. To write efficient code you need to know how computers work on the low level. Computer science in my college works with c++ and studies low level code and how many cycles each code takes etc
  7. supercaliswagiliciousexyhelladopeness
  8. Let's try an analogy here. OSBot is a high school, and we're both in the same Mathematics class. You're sitting next to me during a test. I spend some time solving a problem and create a solution (SSF). You decided not to spend time yourself and looked at my test to see how I did it, and copied my work (exactly). And then you finished the test and gave it to the teacher (SDN testing). Now I'm realizing that you copied my Math test, and intend on getting a good grade from it (money). While cheating on a school test may not be illegal, it's against the rules in a school as it's academic dishonesty. You never approached me asking if you could use my format, nor had you notified me. I had to find out on my own that you were going to be selling it on the SDN. You're asking me why you shouldn't copy my test as it's "legally right at my [your] fingertips". Now you want to re-do the test as you've been caught. I know where I go to school, the teachers would laugh at such a proposal. You're an idiot. He didn't copy the solution of the test. He asked how he wanted the answer presented. Move on, stop being a whiny bitch. Also, I have yet to be in a math class that you can get full credit by just giving an answer. THE WORK IS WHAT MATTERS.
  9. Home come I can save *.docx in open office? Seriously, you have nothing to complain about. I could write my own script to be compatible with every one of the "scripts" that people write for this script, but that doesn't mean I copied you. You should look into his code and find any methods are are copied word for word that are yours. If you find that then you have a valid complaint. Right now it sounds like you're complaining about the competition. ALL IT IS IS A FILE FORMAT. File formats are generally well known how they are put together. If you didn't want him you use it, maybe you should have wrote a cipher for your file format.
  10. Maybe he was thinking in advance and trying to make his product compatible with your product.
  11. There can only be 1 captain, therefore no. False. False therefore true.False therefore false. All of my team sports had at least two captains on it.
  12. There can only be 1 captain, therefore no. False.
  13. Are @Laz and @Zach captains of the team?
  14. I use a class that I made to scan all available NPC's for a certain name. It scans through all the NPC's on the map, checks the name and sees if they are facing the player etc. If they are, it adds them to a List for the script to check every so often if they are animating (attacking the player) - if it finds tht, it adds the NPC to the attacking List. This is all done in a thread, so it doesn't hang the script from running one bit. Next, it scans through the NPC's and checks what is closest to you and not under attack etc. The best part about this class, you call getNPC() and it returns the NPC that the script should attack. Threads are a beautiful thing if you know how to use them.
  15. If we dissect the client, we can see any methods used to monitor interactions, which I don't know if there are any. Assuming there isn't, we can assume that all the bot detection is done on the basis of the packets we send. To truly see how the detection works, we need to dissect the packets we send to see what information is in them. Going into detail with packets, they can probably see repetitive patterns of packets sent. If we mix it up a bit and throw a bit of randomness into it I feel we can defeat them. It seems they only ban based on statistical proof of botting. Hell I would if someone sent the same door open packet 1000x as if it was stuck in a loop. The question is what random packets can we send. Anything that we have to send to the server is sent in a packet. For instance clicking cut down tree, it tells the server what we want to do. Sending a message to a friend, etc. Hovering over skills doesn't send packets so in my opinion it is useless. The next thing that comes to mind - timing of the packets. It's not only the repetition, it's how quickly packets are sent together in patterns. So as a conclusion, I think botwatch is simply pattern recognition software. see http://rswiki.moparisthebest.com/index.php?title=317_Protocol#Client_-.3E_Server_Packets A few ones that come to mind are 95 FIXED 3 Privacy options Sent when a player changes their privacy options (i.e. public chat). 21 FIXED 2 NPC action 3 Sent when a player clicks the third option of an NPC. (examine etc) 214 FIXED 7 Move item Sent when a player moves an item from one slot to another. 3 FIXED 1 Focus change Sent when the game client window goes out of focus. this is also interesting
  16. I need to see the line above what you have posted. I'm assuming it's a null pointer exception. Also paste the line of code the error is referring to
  17. The best break setup is one that sleeps for 8-10 hours then takes periodic breaks every 1-2 hours or so. Which is impossible to do unless you write your own script
  18. You have no idea how the initialiser works if you think that's the case. The taskgenerator is a script that you run. Lmao. Correct, since you haven't pushed it yet. But anyhow, that initializer either has the same structure of mine or has a bunch of STask fire_giants = new STask(234,54356,null,null,3243,4444,6766,null,null,null,null,null,new Area(1234,1234,2345,2345)); I was not commenting on the type of code, I'm commenting on the structure of the class that contains your task. Why go through the trouble of initializing 20 task variables inside your STask class (and it will probably grow to larger than 20.. mine is at 12) when you could just leave the default and set what you need to. Most tasks require the same armor. It it necessary to pass the ID's for all your equipment pieces when you could just leave them default and change your helm for when you get an aberrant spectre task? Sure it looks nice, but is it functional well written code? no I'm not bashing your coding style, because I started doing it the same way. I just found this much much easier. It has very good applications, but this is not one of them
  19. The way mine works: It uses all the default values for almost every task On tasks where it needs something special, it changes only what it needs to and runs. I find that as a far better solution than creating 50 task objects and filling them with a majority of the same data
  20. You still have to initialize each task with a ton of nulls. TaskGenerator fire_giants = new TaskGenerator(234,54356,null,null,3243,4444,6766,null,null,null,null,null,new Area(1234,1234,2345,2345)); More readable, indeed
  21. messy works till I need to fix it. plus I can put any info I need into it. Instead of writing a class for each task which has to be initialized anyway. this is just hard coded and ready to go. Most slayer stuff has to be anyway.
×
×
  • Create New...