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.

bank.depositAllExcept spam clicking deposit all button

Featured Replies

When I have tunas and swordfish in my inventory, using this method the bot first right click deposit all's the tunas and after that spam clicks the deposit all button inside the actual bank window until all the swordfish are in the bank.

 

9r4rsjE.png

 

Is it a bug or something that im doing wrong?

Heres the code:

if (!s.bank.isOpen()) {
	if (bankbooth != null) {
		if (bankbooth.isVisible()) {
			if (!s.myPlayer().isMoving()) {
				bankbooth.interact("Bank");
				Script.sleep(Script.random(800, 1600));
			}
		} else {
			s.camera.toEntity(bankbooth);
		}
	}
} else {
	s.bank.depositAllExcept(Main.TOOL_ID);
}

Edited by Damighty

  • Author


private State getState() {

if (inventory.isFull()){

return State.BANK;

} else {

return State.FISH;

}

}


case BANK:

if (Bank.contains(myPlayer())) {

status = "Banking";

new Banking(this); //OP is the banking class

} else {

sleep(random(500,750));

status = "Walking to bank";

if (Docks1.contains(myPlayer())) {

localWalker.walkPath(WalkToBFrom1);

} else if (Docks2.contains(myPlayer())) {

localWalker.walkPath(WalkToBFrom2);

}

}

break;

add a sleep after the button interaction


 

When I have tunas and swordfish in my inventory, using this method the bot first right click deposit all's the tunas and after that spam clicks the deposit all button inside the actual bank window until all the swordfish are in the bank.

 

9r4rsjE.png

 

Is it a bug or something that im doing wrong?

Heres the code:

if (!s.bank.isOpen()) {
	if (bankbooth != null) {
		if (bankbooth.isVisible()) {
			if (!s.myPlayer().isMoving()) {
				bankbooth.interact("Bank");
				Script.sleep(Script.random(800, 1600));
			}
		} else {
			s.camera.toEntity(bankbooth);
		}
	}
} else {
	s.bank.depositAllExcept(Main.TOOL_ID);
}

and why isn't
 

Script.sleep(Script.random(800, 1600));
//---------------------------------------
s.sleep(Script.random(800, 1600));

like the rest of them?

  • Author

add a sleep after the button interaction

and why isn't

 

Script.sleep(Script.random(800, 1600));
//---------------------------------------
s.sleep(Script.random(800, 1600));

like the rest of them?

 

I tried adding a sleep, and all it did was it made the bot sleep after it deposit everything and spammed the deposit button. And using s.sleep just tells me that the static method sleep from MethodProvider should be accessed in a static way.

I tried adding a sleep, and all it did was it made the bot sleep after it deposit everything and spammed the deposit button. And using s.sleep just tells me that the static method sleep from MethodProvider should be accessed in a static way.

 

I have also noticed this issue, using depositAllExcept() when none of the exceptions are in the inventory generally involves it spam clicking the deposit button 4-8 extra times in a fraction of a second.

  • Author

I have also noticed this issue, using depositAllExcept() when none of the exceptions are in the inventory generally involves it spam clicking the deposit button 4-8 extra times in a fraction of a second.

 

I was going to test the same thing by adding a condition to check that and use depositAll(), but was too lazy to do that. But now that you said it, its an easy fix. Thanks

Guest
This topic is now closed to further replies.

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.