Gunman Posted July 2, 2019 Share Posted July 2, 2019 Okay. I try moving the mouse with int randomX = random(708, 720); int randomY = random(324, 321); getMouse().move(randomX, randomY); But get this error [ERROR][Bot #1][07/02 06:34:04 AM]: Error in script executor! java.lang.IllegalArgumentException: bound must be positive And if I don't do this it won't move the mouse at all and freeze up the client with the error. //int randomX = random(708, 720); //int randomY = random(324, 321); getMouse().move(708, 321); I had a script that moved the mouse like the first one above with no issues till I lost the source code a few days ago. Wtf is going on? Also if I remove the code and move the mouse manually the script works perfect. Also gives the error if it's like this. int randomX = random(708, 720); int randomY = random(324, 321); getMouse().move(708, 321); Quote Link to comment Share on other sites More sharing options...
progamerz Posted July 2, 2019 Share Posted July 2, 2019 (edited) @Gunman random(min,max) In randomY u have the the min value more than the max value Edited July 2, 2019 by progamerz 1 Quote Link to comment Share on other sites More sharing options...
Gunman Posted July 3, 2019 Author Share Posted July 3, 2019 5 hours ago, progamerz said: @Gunman random(min,max) In randomY u have the the min value more than the max value Does that really fucking matter? That fucking pisses me off. Thanks 1 Quote Link to comment Share on other sites More sharing options...