Everything posted by Swizzbeat
-
What the fuck are happening around on these forums?
Honestly it seemed like a bad deal from the start no harm was done though right? Let's all have a nice jerk sesh together and forget the whole thing happened
-
FREE graphic design store
Umm I meant every F key should have the F taken out :p and would you mind drawing the red rectangle for me? That way I don't have to be drawing two rectangles every single time! maybe even a little text notifier saying "Jad health" or something like that so users know what it is?
-
XavierM IS A BAWS
If you say "man" one more time I may kill you.
-
Pictle! - A simple screen region tool!
This is awesome! Inspired me to try to write my own tomorrow
-
FREE graphic design store
Looks great mate! A few things though, would it be possible to delete the F infront of the number and replace the key 4 with the text so it reads"4 - Drink prayer dose" and change the purple sweet to number 5? And if you could delete the area of the green rectangle that would be amazing, as I'm going to actually draw a green rectangle in there myself to show how much health is left. Also could you take the s out of the end of my name?
-
Attention OSX 10.9 Users
Windows
-
FREE graphic design store
Type of work: Script paint Color scheme: Red/black Any requested content: http://gyazo.com/0bc5579744b899bac4dfd9903d942887.png Link to any renders/sketches to include/follow: I need the dimensions to be 505 by 114. Do you think i'm pretty?: 10/10 would bang It's for my Jad Helper script
-
Where did the 'Real-Life' section come from?
It used to be an actual sub forum but then someone deleted it for some reason
-
Post your IRL pictures
Only one on my comp.
-
Letting this stay here till I get payed.
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.
-
No benefits in my VIP
Your primary group is TWC and I doubt they will change it.
-
Log's Back!
Trust me I know the feeling....
-
Convert .Class into java src
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/
- Tattoos
-
Accurate Interaction
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
-
Letting this stay here till I get payed.
Why wouldn't you just give him the jar file....and why are you using groovy...
-
Accurate Interaction
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.
-
Accurate Interaction
His would be faster if he took out the sleep timer and removed some of the redundant code :p
-
@Maldesto
I'm sure you'll get the rank in time! Just be active and help out
-
@Maldesto
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
-
Accurate Interaction
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.
-
Porn and Nudity CAN be shown!
Agreed, it's not like we all don't just go on the hub everyday.
-
Accurate Interaction
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.
- Thanks?
- Thanks?