MRMRMR1234 Posted May 26, 2020 Share Posted May 26, 2020 New botter, first time writing my own script. Novice scripter. Through tutorials, ingenuity, and sheer luck I have managed to get a script off the ground and running. It is running fairly fluid and I am actively observing and troubleshooting reliability, imitating a real player, etc. One thing I've noticed is that this thing banks like a MOTHERFUCKER. Using a deposit box, it deposits all in an instant. Is there a way to adjust mouse speed/reaction speed when depositing? I have pauses between opening, depositing, closing, moving, but the actual act of "Deposit All" is happening unnaturally fast. The line of code I'm using for banking is getDepositBox().open(); //wait getDepositBox().deposit(#### 0); //wait getDepositBox().close(); //move Any help is greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Lol_marcus Posted May 26, 2020 Share Posted May 26, 2020 (edited) Use sleep(random) Ex. getDepositBox().open(); sleep(random(50,500); getDepositBox().deposit(#### 0); sleep(random(50, 500); getDepositBox().close(); sleep(random(50,500); or private final Area BANK_POS = new Area(X,Y,X,Y); private void bank() throws InterruptedException { if (BANK_POS != null && (!getDeposit().isOpen())) { getDeposit().open(); } else if (getInventory().isFull() { getDeposit().depositAll; } else if (getInventory().isEmpty() { getDeposit().close(); new ConditionalSleep(2000, 600) { @Override public boolean condition() { return ((!getDeposit().isOpen()) && (inventory.isEmpty()); } }.sleep(); } else { stop(false); } } Edited May 26, 2020 by Lol_marcus Quote Link to comment Share on other sites More sharing options...
D9BLADEE Posted May 26, 2020 Share Posted May 26, 2020 4 minutes ago, Lol_marcus said: Use sleep(random) Ex. getDepositBox().open(); sleep(random(50,500); getDepositBox().deposit(#### 0); sleep(random(50, 500); getDepositBox().close(); sleep(random(50,500); Well, use conditional sleeps OP: I don't think the speed of depositing ur items should be a concern, I don't even know if the API supports modifying the speed of mouse events, but hey I'm a noob so let's see Quote Link to comment Share on other sites More sharing options...
MRMRMR1234 Posted May 26, 2020 Author Share Posted May 26, 2020 4 hours ago, D9BLADEE said: OP: I don't think the speed of depositing ur items should be a concern, I don't even know if the API supports modifying the speed of mouse events, but hey I'm a noob so let's see Yeah this is more of what I was asking about, but if it's generally accepted as not a problem, then *shrug* Quote Link to comment Share on other sites More sharing options...