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.

why wont it open the bank??

Featured Replies

package begin;

import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(author = "Mousbros", info = "", logo = "", name = "EZBEGIN", version = 0) 

public class Begin extends Script {

    final Area BEGIN_AREA = new Area (3233,3218,3237,3226);
    final Area BANK_AREA = new Area(3092,3240,3095,3246);
    
        
    
    public void onExit() {
            
    }
        
        public void onStart() {
            
            
        }    
        
        
        @Override
        public int onLoop() throws InterruptedException {
            
        
        if(!getInventory().isEmpty()) {
            if (BEGIN_AREA.contains(myPlayer())) {    
                log("not empty");
                getWalking().webWalk(BANK_AREA);
                
            }
            
        }else {
            if(!getInventory().isEmpty()) {
            if (BANK_AREA.contains(myPlayer())) {
                RS2Object banker = getObjects().closest(10355);
                
                if (bank.getBank().isOpen()) {
                    bank.depositAll();
            } else {
                
                if (banker != null) {
                    if (banker.isVisible()) {
                        banker.interact("Bank");
                        sleep(random(998, 7896));
                    }
                    }
                }
                
            }else {
                getWalking().webWalk(BANK_AREA);
            }
        }
                 
        }    
                
                
                

                
            
            
            
            
            
            
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        return 50;
    }
    
        }

  • Author

how do I remove a topic??

2 minutes ago, Gunman said:

@mousbros Don't use id's if you can use the String name for starters as ids change more often than Strings. Also just use the bank API method to open it.
getBank().open

Also look into conditional sleep so you can sleep until the bank is open.

i found the problem tho yaaay it was a syntax error.... 

thank you for the answer much love!

Edited by mousbros

2 minutes ago, mousbros said:

how do I remove a topic??

i found the problem tho yaaay it was a syntax error.... 

thank you for the answer much love!

Idk if you can. You might be able to hide the thread in moderation actions at the top of the thread. Also put that shit in here https://pastebin.com/ so it's easier to read please 😄

1. Use the API

2. Why the random af sleeps? It's already random, no reason to put (998, 7896).

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.