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.

2 questions

Featured Replies

Is it possible to move the camera while my script is running to bank?

if (getBank().open()){
    getCamera().movePitch(22);
    getCamera().moveYaw(303);
}

currently it runs to the bank and then turns the camera. How can i make it run to the bank and while running turn?

 

2nd question, i want to log my profits in a file onExit()

how can i log to a .txt file and make the name of the file dynamic using the accounts name?

 

thx in advance for any help.

13 minutes ago, mattpew said:

Is it possible to move the camera while my script is running to bank?


if (getBank().open()){
    getCamera().movePitch(22);
    getCamera().moveYaw(303);
}

currently it runs to the bank and then turns the camera. How can i make it run to the bank and while running turn?

 

2nd question, i want to log my profits in a file onExit()

how can i log to a .txt file and make the name of the file dynamic using the accounts name?

 

thx in advance for any help.


1. Maybe just stop walking when the bank booth is nearby and then call getBank().open(); It will walk there & probably move the camera at the same time:
 

if (getObjects().closest("Bank booth or whatever its called") == null) {
    WebWalkEvent webWalkEvent = new WebWalkEvent(Banks.VARROCK_WEST);
    webWalkEvent.setBreakCondition(new Condition() {
        @Override
        public boolean evaluate() {
            return getObjects().closest("Bank booth or whatever its called") != null;
        }
    });
    execute(webWalkEvent);
} else {
    getBank().open();
}

2. Create a file in the data directory getDirectoryData() with the Player's name myPlayer().getName(), and then write to it. 100s of tutorials online on how to write files with Java.

Edited by Explv

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.