-
Posts
1664 -
Joined
-
Last visited
-
Days Won
4 -
Feedback
100%
Everything posted by Bobrocket
-
Will add that too.
-
There is a check to make sure the mouse is at the random position (which is within the bounding box). There is also a check to see if the menu is open before it clicks.
-
My script can handle misclicks just fine, but it does it and that doesn't help (+ it sometimes is way too fast imo) Here's the implementation I thought of: public boolean interactWith(Entity e, String action) throws InterruptedException { if (e == null) { return false; } while (!getMouse().isOnCursor(e)) { e.hover(); sleep(rand(450, 750)); } //hover while (!getMenuAPI().isOpen()) { getMouse().click(true); sleep(rand(150, 450)); } //open interface sleep(rand(150, 450)); List<Option> options = getMenuAPI().getMenu(); int rectIndex = -1; for (int i = 0; i < options.size(); i++) { Option o = options.get(i); String s = o.action; if (s.equals(action)) { rectIndex = i; break; } } if (rectIndex == -1) { return false; } Rectangle optionRect = getMenuAPI().getOptionRectangle(rectIndex); int height = optionRect.height; int startX = optionRect.x; int startY = optionRect.y; int width = optionRect.width; int endX = startX + width; int endY = startY + height; //2px bounds incase the bounding boxes are fucked int randX = getRandom(startX + 1, endX - 1); int randY = getRandom(startY + 1, endY - 1); while (!(getMouse().getPosition() == new Point(randX, randY))) { getMouse().move(randX, randY); sleep(rand(450, 750)); } //move to option sleep(rand(150, 450)); while (getMenuAPI().isOpen()) { getMouse().click(false); sleep(rand(750, 1150)); } //click return true; } Could definitely be improved, however I cannot test and currently this seems like the best way.
-
I would like to write my own right click - interact method using this as the one in OSBot seems to be too fast and misclicks a lot. Thank you, will use MenuAPI. I know how to measure font widths/heights, that's why I was asking how to get the font :P
-
I want to be able to measure the height of the fonts used in RS. Is this possible? For example, measuring the height of an item within a context menu to get an estimate for where my mouse should be.
-
Business Owners & Service Owners (A few questions)
Bobrocket replied to RServiceGeeks's topic in Community Discussion
The honesty. Besides, you can always offer a discount next time if you want them to come back. -
Business Owners & Service Owners (A few questions)
Bobrocket replied to RServiceGeeks's topic in Community Discussion
But you've yet to give anyone the money, so you can simply refund it. Not an issue. -
Business Owners & Service Owners (A few questions)
Bobrocket replied to RServiceGeeks's topic in Community Discussion
What I have found that works best is to have a web portal that automatically updates when they get more money, and that they can cash out whenever (within reason ofc). This will mean that they can quit whenever they want but of course they wont get any money for stuff they don't do. It also gives the idea that you are flexible as their job is. You should also have a "pending" balance where it shows the amount that is waiting for confirmation (eg the guy actually confirming that he received it and was not scammed etc) -
I always found OBS complicated to use. I much prefer Fraps as no set up is actually required (and I like that). It also records lossless HD perfectly on my computer, including 60fps on cs:go (high settings, full resolution; surprised me) When I'm recording RuneScape, I actually use Hypercam 2 as it is super lightweight and allows me to change the resolution easily for OSBuddy (and it has super small file sizes) + the "Unregistered Hypercam 2" isn't there anymore!
-
Windows 7 comes with a lot of additional crapware too, and you can just disable it. I imagine it would be the same for Cortana and everything else. I'm considering upgrading as I have a Windows tablet and would love to try out Win10 to see if it really is better than 7. If not, I'll just downgrade. The only problem I am going to face is the fact that my processor is a tad old, so there may not be any drivers on Win10 for it. Hopefully there will be some and all runs well, as the rest of my hardware is fairly new.
-
As of this update (2.3.71), it doesn't dismiss randoms on injection mode either. Before the update (2.3.70), it didn't dismiss randoms on mirror mode (but did perfectly fine on injection)
-
Been a few days since an update: -Account 3 is a member, and is currently thieving with a private script. -Account 2 is on holiday, as I am running low-ish on resources as of now. No bans as of yet, although I feel Account 3 may be flagged. That same sort of feeling that someone is watching you, except instead of a pedo it's a jmod (same thing really, but who am I to judge?)
-
Glad to see this new update, I have a feeling that ban rates will be reduced with this new entity interaction. Alek, do you think you could implement a font API of sorts somehow? For example, being able to call something like (getFonts().RS_DIALOGUE) may help a lot of scripters make custom methods for interaction with dialogue and interfaces. If this is already included somewhere, ignore this. Just a suggestion
-
This works brilliantly, thank you so much
-
I fixed it a different way: if (getMouse().getOnCursorCount() > 1) { if (lock == 0) stall.interact("Steal-from"); else log("Locked!!"); } else { if (lock == 0) getMouse().click(false); else log("Locked!!"); } Seems to work better for me. No idea why Another problem I'm having: both localWalker and getMap() refuse to move my character one square to the left.. while (!getMap().walk(p)) { } log("trying to walk " + myPlayer().getPosition() + " " + p); It will log, so it shows that the while loop ends (indicating that the walk has executed) although the mouse doesn't move and the neither does the player; it's stuck there forever.
-
Thank you Will this still work if there are things in the way? For example, if there is a guard in the way the first option would be "Pickpocket" for the guard, but the first option for the stall is always "Steal-from".
-
What I mean is that item in the top left when hovering over something interactive: How can I get this? For example, if it's "Steal-from", I left click, if not I right click.
-
Gentoo Linux :^)
-
//Quick way if (<npc>.hasAction("Attack")) { //Can be attacked } //Slower way (requires mouse to hover over) <npc>.hover(); while (!getMenuAPI().isOpen()) { getMouse().click(true); sleep(250); } //right click boolean hasAttack = false; for (Option o : getMenuAPI().getMenu()) { log(o.action); if (o.action.equals("Attack")) { hasAttack = true; break; } } if (hasAttack) { //Can be attacked }
-
Fuck no.
-
I was thinking about typos. What I'm going to do is make a little keychar map with nested arrays (for example, "a" typos could be "q", "s", "z") and then have a chance to see and correct it before typing (pressing backspace x amount of times and then pressing the correct key) or simply not noticing and then in a new message doing the classic "word*". Edit: the equation for a random typo could just be (100000 / (wordsPM * 10) - rand.nextInt(5))? This way it still has a degree of randomness, but it still scales nicely with the words per minute factor (ofc you're not going to make many or any typos at 1wpm but you will at 120wpm) Edit 2: working typos! Set at 125wpm in the example, with the original text "The quick brown fox jumped over the lazy dog the quick brown". Currently, there is a 33% chance that the controller will actually fix the typo. You can change this in the typeString method (where it says if (typos && rand.nextInt(2) == 1 ) {) Good luck everyone, and happy botting
-
Thanks, I will try that
-
Alright, so after reading the "My Ban Theory" thread, I decided to take the idea of a normal distribution to keyboard typing. What I have made is experimental and may not work as expected to. All I aim to do with this is help to educate those with typing correctly. How it works: Calculating based on words per minute, it sleeps a variable amount based on the value (assuming the average word has 6 characters) With the help of normal distributions, the mean is the mode and the median (which is also usually the midpoint), so we can calculate a normal distribution of sleeping using the mean. It types character per character It wraps the Script sleep function to pause the appropriate time frame (Version 1.1 and onwards) now makes typing errors based on the words per minute setting! Version 1.1 (newest; typos included): Version 1.0 (old; no typos included): Usage example: SmartKeyboard sk = new SmartKeyboard(this, 60); //60 words per minute if (sk.typeString("The quick brown fox jumped over the lazy dog", true, true)) { //Third parameter to true -> enables typos log("Typed the string and pressed enter!"); } if (sk.typeCharacter("g")) { log("Typed the character 'g'"); } if (sk.typeInteger(4)) { log("Typed the number 4!"); } sk.typoConstant = 10000; //Default 100000; lower = more likely to cause a typo; equation ((typoConstant / (words per minute * 10))+ rand.nextInt(6)) If there are any problems with this, let me know. Jagex may be smart, but we're smarter. Proof of typos: (set at 125wpm; original text "The quick brown fox jumped over the lazy dog the quick brown") Feel free to use the SmartKeyboard class however you want, but credit is always nice