Jump to content

Deposit Box Help


MRMRMR1234

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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*

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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