Jump to content

Swizzbeat

Members
  • Posts

    7986
  • Joined

  • Last visited

  • Days Won

    58
  • Feedback

    100%

Everything posted by Swizzbeat

  1. http://www.getpaint.net/ I also have a cracked file for Photoshop if you want it. All you have to do is replace a file in the Photoshop folder that you get when you install it with the cracked one.
  2. Bullshit. There's no such thing as a female on this site.
  3. 10/10 should be banned pls
  4. OSBot is not the most used client, however like you said it could be if the owners weren't absolutely retarded when it comes to running a business.
  5. If you say "man" one more time I may kill you.
  6. This is awesome! Inspired me to try to write my own tomorrow
  7. Windows
  8. Only one on my comp.
  9. Errr just because it gets 1 or 2k experience per hour lower then someone else's doesn't mean it's awful also runaway from combat hooks are optional.
  10. Your primary group is TWC and I doubt they will change it.
  11. Trust me I know the feeling....
  12. I wouldn't try to learn programming off of looking at script sources but if you really want to just use a decompiler such as this one http://jd.benow.ca/
  13. 1) The getDefintion() method is not found in the Entity class, but in the corresponding subclasses. Unfortunately this means that we need to create a whole separate method, unless I'm overlooking something, for each subclass as we cannot cast the Entity because we don't know what type will get passed to the method. 2) I'm only checking for the first action because if it is that means all the script has to do is click on it instead of opening a menu. If the action is not the first on the list it will continue on to the else statement. 3) It doesn't matter what NPC I have to interact with because my moveMouseTo right clicks the NPC I need, all this method does is look for the correct interaction on the menu. I'm sorry if I came off like I was trying to be a dick, because I'm not, just attempting to provide you with some constructive feedback
  14. Why wouldn't you just give him the jar file....and why are you using groovy...
  15. I was trying to help you, don't act like a know it all when you just had a static sleep timer of 500-1500 please. 1) I'm not sure why you still think you're doing it right, but this: NEVER GETS ANY OPTION. All it does is click, and that's assuming there's one thing on the cursor (you're not even checking that that's the correct entity, just that there's one there). 2) Your while loop just assures that the mouse gets moved to the bounding box. This could be good I guess, but it's kind of redundant when you could just return false if a menu is not open when you go to interact with it. 3) Fine if you're going to act like that I will: public boolean interactNPC(NPC npc, String action) throws InterruptedException { if (npc != null && npc.getDefinition().getActions() != null) { Rectangle boundingBox = npc.getMouseDestination().getBoundingBox(); if (Arrays.asList(npc.getDefinition().getActions()).get(0).equalsIgnoreCase(action)) { client.moveMouseTo(new RectangleDestination(boundingBox.x+5, boundingBox.y+5, boundingBox.width-10, boundingBox.height-10), false, false, false); if (client.getEntitiesOnCursor().get(0).getName().equalsIgnoreCase(npc.getName())) { client.clickMouse(false); return true; } else { client.moveMouseTo(new RectangleDestination(boundingBox.x+5, boundingBox.y+5, boundingBox.width-10, boundingBox.height-10), false, true, true); return selectMenuOption(action); } } else { client.moveMouseTo(new RectangleDestination(boundingBox.x+5, boundingBox.y+5, boundingBox.width-10, boundingBox.height-10), false, true, true); return selectMenuOption(action); } } return false; } public boolean selectMenuOption(String action) throws InterruptedException { if (client.isMenuOpen()) { List<Option> options = client.getMenu(); for (int i= 0; i < options.size(); i++) { if (options.get(i).action.equalsIgnoreCase(action)) { return client.moveMouseTo(new RectangleDestination(client.getMenuX(), client.getMenuY()+19+(i*15), client.getMenuWidth(), 15), false, true, false); } } } return false; } Of course I could do more checking, but that can easily be accomplished by checking the boolean returned when the scripter calls the method.
  16. His would be faster if he took out the sleep timer and removed some of the redundant code :p
  17. I'm sure you'll get the rank in time! Just be active and help out
  18. You can see why you don't get the rank if one of the requirements is that you're active and you've been gone for months :p
  19. 1) Ok lets say I want to interact with something but the action I want is the second action on the list. It won't work and will continue to select the first one because all it's doing is clicking. Something along the lines of this, but not exactly of course, would work better: if (Arrays.asList(object.getDefinition().getActions()).get(0).equalsIgnoreCase(action)) { return sI.client.moveMouseTo(new RectangleDestination(boundingBox.x+5, boundingBox.y+5, boundingBox.width-10, boundingBox.height-10), false, true, false); } 2) Because getting stuck in a loop is fantastic...? I don't see how it could be considering there's not a single loop besides the option grabber in your entire snippet. Lastly, just because you may say select this option doesn't mean the method will execute correctly. You should be returning the value returned by the mouse methods.
  20. Agreed, it's not like we all don't just go on the hub everyday.
  21. This won't work if the interaction you want to do isn't the first one and the mouse pointer is already on the entity, as it will just click it. Also returning a boolean is pointless right now because it will always return true, even if it fails to click or find the interaction.
  22. Swizzbeat

    Thanks?

    Problem is these can easily be faked. I would contact a mod over there an have them create an account so you can send them a message confirming it's you Kinda ridiculous how they just took it from you though....
  23. Swizzbeat

    Thanks?

    It would be more helpful if you showed a post proving that it's your account
  24. This is the second time. @Swizzbeat would never do something like this and I think he deserves the administrator position.
×
×
  • Create New...