Jump to content

Deposit Box Help


Recommended Posts

Posted

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.

Posted (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 by Lol_marcus
Posted
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 :doge:

 

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 :ditto:

Posted
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 :ditto:

 

Yeah this is more of what I was asking about, but if it's generally accepted as not a problem, then *shrug*

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...