Everything posted by SESH
-
acceptTrade()
Does trade.acceptTrade() accept just the current interface or both?
- Problem with click()
-
Problem with click()
There's nothing wrong with the code besides click() though. The method is generating the right coordinates fine. I could write just click(30, 30, false); in my onLoop() and it still would only click sometimes. Other people have posted this same problem in this subforum. Something honestly has to be wrong with click(), but I don't know of any workarounds.
-
Problem with click()
The bounds come from the Shape given when the method is called...
-
Problem with click()
Here's a method I use to click a random coordinate in a shape with normal distribution: public boolean clickRandomXY(Shape region) { Rectangle r = region.getBounds(); int maxX = (int) r.getMaxX() - 1; int maxY = (int) r.getMaxY() - 1; int minX = (int) r.getMinX() + 1; int minY = (int) r.getMinY() + 1; int x, y; do { x = rand(minX, maxX); y = rand(minY, maxY); } while (!(x <= maxX) || !(x >= minX) || !(y <= maxY) || !(y >= minY)); return !mouse.click(x, y, false); } I know the code is a bit ugly, I apologize. rand() is my method for a random integer with normal distribution. Using this method, the mouse will move to the coordinates and then just not click sometimes. I also find it odd that click() returns true if the event failed... what's the reason for that? It goes against logic.
-
Problem with click()
Is anyone else having problems with click()? Sometimes it clicks, sometimes it doesn't. I've had to resort to looping click()'s in my methods until they finally work to get it to actually click. The weird thing is that it moves to the pixel to click, it just doesn't click once it's there, and it only happens sometimes. Anyone know the reason for this? Thanks
-
Better random()
It would be incredibly, incredibly unlikely for it to even run through the while loop twice.
-
Is there a way to make the mouse "jump" instead of travel?
http://osbot.org/forum/topic/70076-mousekeys-like-mouse-movement/?p=774964
-
Better random()
This function returns a random number with minimum min and maximum max with normal distribution. More info here public static int rand(int min, int max) { int n; int mean = (min + max) / 2; int std = (max - mean) / 3; Random r = new Random(); do { double val = r.nextGaussian() * std + mean; n = (int) Math.round(val); } while (n < min || n > max); return n; }
-
Ban Theory by Gnomedesto
Here's one way of implementing this: public static int rand(int min, int max) { int n; int mean = (min + max) / 2; int std = (max - mean) / 3; Random r = new Random(); do { double val = r.nextGaussian() * std + mean; n = (int) Math.round(val); } while (n < min || n > max); return n; }
- Khal Pest Control
- LOL
- calling out asuna
-
Y'all making me sad
Weird it was free at my school
-
Tips for new botter
http://osbot.org/forum/topic/64700-how-to-minimize-the-chances-of-getting-banned-while-botting/
-
Y'all making me sad
Pretty sure US schools have to provide free driving lessons so you might have gotten owned
-
Buying shoes on ebay?
Do yourself a favor and don't buy clothes or shoes from ebay that don't have a brand. Most of the time it's asian small and will fall apart after a month. Save up and buy a pair when you can afford it, or buy something more durable but less fashionable for the short term
-
Marijuana
Being a /pol/tard is degenerate
-
Marijuana
Exactly. Morality and legality are mutually exclusive. I've been smoking weed for 4+ years and have never had a "bad trip". Silly to say even because you don't trip on weed.
-
Marijuana
I see. I didn't mean to be a dick if you thought I was. Have a nice day
-
Marijuana
But why post it if it has no validity? Right, if they're high during a game or practice, that's irresponsible and I doubt they perform as well as they could. However someone who smokes weed but isn't high during sporting is likely only affected by lung damage from smoke inhalation, which can be mitigated through vaping or edibles.
-
Marijuana
One person's subjective observation has literally zero scientific significance.
-
Thanks Jagex for the $1600 "Fendi's" ;)
Stop trying to brag lmfao
-
Marijuana
If it was legal people wouldn't have to hide it. In my opinion that just goes to show how ridiculous drug policy is that LE would tear down cabins to find a fairly harmless drug.
-
Who are your top 3 new gen rappers?
If Childish Gambino or Eminem is one of your top rappers, 110% you are white.