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.

need help again..

Featured Replies

how to withraw as note

if (getBank().contains("Shortbow")){
enableMode(Bank.BankMode.WITHDRAW_NOTE);
if 	(getBank().getWithdrawMode() == Bank.BankMode.WITHDRAW_NOTE);
getBank().withdrawAll("Shortbow");
sleep(random(2000, 3000));

Edited by combat_acc


if (!getBank().getWithdrawMode().equals(BankMode.WITHDRAW_NOTE))

getBank().enableMode(BankMode.WITHDRAW_NOTE);

Edited by Lewis

getBank().enableMode(Bank.BankMode.WITHDRAW_NOTE);
new ConditionalSleep(10000) {
	@[member='Override']

	public boolean condition() throws InterruptedException {
		return getBank().getWithdrawMode() == Bank.BankMode.WITHDRAW_NOTE;
	}
}.sleep();
getBank().withdrawAll("Shortbow");
new ConditionalSleep(10000) {
	@[member='Override']

	public boolean condition() throws InterruptedException {
		return !getBank().contains("Shortbow");
	}
}.sleep();

Here, this should work. Rather than having a random sleep after withdrawing, try using a conditional sleep. This will make it so it only sleeps as long as it needs to. 

 

EDIT: Encapsulate the bankmode stuff into an if statement as shown in Lewis's reply.

Edited by PlagueDoctor

like so: (feel free to correct me)
final String BANK_BOOTH = "Banker";
NPC bankbooth = npcs.closest(BANK_BOOTH);

if (!bank.isOpen()) {
	bankbooth.interact("Bank");
	new ConditionalSleep(10000) {
		@[member='Override']
		public boolean condition() throws InterruptedException {
			return bank.isOpen();
		}
	}.sleep();
} else if (bank.isOpen()) {
if (!getBank().getWithdrawMode().equals(BankMode.WITHDRAW_NOTE)) {
getBank().enableMode(BankMode.WITHDRAW_NOTE);
new ConditionalSleep(10000) {
		@[member='Override']
		public boolean condition() throws InterruptedException {
			return getBank().getWithdrawMode().equals(BankMode.WITHDRAW_NOTE);
		}
	}.sleep();
} else if (bank.contains("Shortbow") && getBank().getWithdrawMode().equals(BankMode.WITHDRAW_NOTE)) {
bank.withdraw("Shortbow", AMOUNT);
new ConditionalSleep(10000) {
	@[member='Override']
	public boolean condition() throws InterruptedException {
		return inventory.contains("Shortbow");
	}
}.sleep();
}
}

 

Edited by Lewis

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.