Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Deposit Box Help

Featured Replies

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.

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

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:

  • Author
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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.