Skip 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.

[Osbot 2.4.25] Depositbox auto-closes itself

Featured Replies

1. OSBot Version 2.4.25

2. A description of the issue. Whenever I let the script open the depositbox, the client automatically closes it. Eventhought I do not even call it to close the depositbox. (it worked totally fine last time I checked, which was at version 2.3.136)

3. Are you receiving any errors in the client canvas or the logger?  No

4. How can you replicate the issue? I have no idea, since it auto-closes itself immidiately

5. Has this issue persisted through multiple versions? If so, how far back? I am not quite sure, I am aware that it works with the 2.3.136 version of Osbot though.

 

  • 2 weeks later...

Alright I'm going to need some more information about this, a code snippet would help. Also 2.3.136 was many months ago.

  • Author

Alright I'm going to need some more information about this, a code snippet would help. Also 2.3.136 was many months ago.

Only info I can give you is that, whenever I call my script to open the depositbox, the client auto-closes the depositbox immidiately.

My code does not include any line of code that says to close the depositbox, so its the client that does this itself.

Only info I can give you is that, whenever I call my script to open the depositbox, the client auto-closes the depositbox immidiately.

My code does not include any line of code that says to close the depositbox, so its the client that does this itself.

Supply the code you are using. Else he won't know where to start.
  • Author


case BANK:

if (inventory.isFull() && BANK_AREA.contains(myPlayer()))

;

Entity BANK = objects.closest("Bank deposit box");

log("Bank deposit box null?: " + (BANK == null));

log("Bank deposit box has Deposit action: "

+ BANK.hasAction("Deposit"));

if (!depositBox.isOpen()) {

if (depositBox != null) {

if (depositBox.open())

sleep(random(200, 500));

}

log(!inventory.isEmpty());

} else if (!inventory.isEmpty()) {

if (depositBox.depositAllExcept("Lobster pot", "Coins", "coins", "Harpoon","Fishing bait","Fishing rod", "Small fishing net"))

sleep(random(500, 1200));

// if (depositBox.close());

}

sleep(random(500, 1200));

  • Author

I'll take a look at it this weekend.

This bug is still live as of today. All recent clients still auto-close the depositbox when its open

I'm not having any issues using the deposit box.

    @Override
    public void onStart() {
        getDepositBox().depositAll();
    }
  • Developer

You logic is pretty much flawed ...

 

First line:

if (inventory.isFull() && BANK_AREA.contains(myPlayer()))
;

With the ";" it's not even an condition ...

 

feel free to show me on teavmiewer, pretty sure it works for my scripts :)

I'll help you out ^^

 

Khaleesi

  • Author

You logic is pretty much flawed ...

 

First line:

if (inventory.isFull() && BANK_AREA.contains(myPlayer()))
;

With the ";" it's not even an condition ...

 

feel free to show me on teavmiewer, pretty sure it works for my scripts smile.png

I'll help you out ^^

 

Khaleesi

 

 

 

I'm not having any issues using the deposit box.

    @Override
    public void onStart() {
        getDepositBox().depositAll();
    }

 

 

Changed it to this -->

Entity BANK = objects.closest("Bank deposit box");
                	 if(depositBox.isOpen() && inventory.isFull()){
                	 	 log("Depositing Items");
                         depositBox.depositAllExcept("Lobster pot", "Coins", "coins", "Harpoon","Fishing bait","Fishing rod", "Small fishing net");
                         sleep(random(500,804)); }
                         
                         else if(!depositBox.isOpen() && !myPlayer().isMoving() && inventory.isFull()){
                    	 	 log("Opening depositBox");
                             objects.closest("Bank deposit box").interact("Deposit");
                             sleep(random(2000,3217)); 

Seems like i'll just have to rewrite my script because its something in the Getstate method. Weird thing is it used to work with the 'old' code for a few months.

No problem, I thought it was something I did wrong because I was modifying a bunch of widget code previously. In the future try isolating the specific method, I have a skeleton script for all my testing.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.