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.

inventory.DropAll(); Bug

Featured Replies

When the bot tries to drop all items, it will select "use" instead of "drop" then proceeding to drop the rest of the items. It will cycle threw the rest of the items without dropping them and try and continue the task at hand but cannot because it's trying to use the selected item on the RS2Object or item... This will happen occasionally, can be easily replicated if needed it!

 

Thanks! 

Code:

@Override
    public int onLoop() throws InterruptedException {
    System.out.println(inventory.dropAll("Yew logs"));
        return 5000;
    }

Output:

 

[iNFO][bot #1][06/28 11:14:47 AM]: Terminating script Skeletor...
[iNFO][bot #1][06/28 11:14:47 AM]: Script Skeletor has exited!
[iNFO][06/28 11:22:17 AM]: Loaded 1 local scripts and 0 custom random solvers!
[iNFO][06/28 11:22:17 AM]: You have 6 SDN scripts loaded.
[iNFO][bot #1][06/28 11:22:20 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][06/28 11:22:20 AM]: Started script : Skeletor
true
[iNFO][bot #1][06/28 11:22:26 AM]: Terminating script Skeletor...
[iNFO][bot #1][06/28 11:22:26 AM]: Script Skeletor has exited!
[iNFO][bot #1][06/28 11:22:56 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][06/28 11:22:56 AM]: Started script : Skeletor
true
[iNFO][bot #1][06/28 11:23:03 AM]: Terminating script Skeletor...
[iNFO][bot #1][06/28 11:23:03 AM]: Script Skeletor has exited!
[iNFO][bot #1][06/28 11:23:13 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][06/28 11:23:13 AM]: Started script : Skeletor
true
[iNFO][bot #1][06/28 11:23:18 AM]: Terminating script Skeletor...
[iNFO][bot #1][06/28 11:23:19 AM]: Script Skeletor has exited!
[iNFO][bot #1][06/28 11:23:26 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][06/28 11:23:26 AM]: Started script : Skeletor
true
[iNFO][bot #1][06/28 11:23:32 AM]: Terminating script Skeletor...
[iNFO][bot #1][06/28 11:23:32 AM]: Script Skeletor has exited!
[iNFO][bot #1][06/28 11:23:41 AM]: Loaded 4 built-in random solvers!
[iNFO][bot #1][06/28 11:23:41 AM]: Started script : Skeletor
true
[iNFO][bot #1][06/28 11:23:48 AM]: Terminating script Skeletor...
[iNFO][bot #1][06/28 11:23:48 AM]: Script Skeletor has exited!

 

 

I was unable to reproduce the issue. Please ensure you are testing against Version 2.3.77 Stealth Injection.

  • Developer

Code:

@Override
    public int onLoop() throws InterruptedException {
    System.out.println(inventory.dropAll("Yew logs"));
        return 5000;
    }

Output:

 

 

I was unable to reproduce the issue. Please ensure you are testing against Version 2.3.77 Stealth Injection.

 

He meant it uses the item instead of dropping it by accident.

This will cause the drop method to not drop all items behind the 1 item it selected by accident.

It happends regularly on mirror :)

 

The issue while using items on gameobjects could be solved in the script smile.png

Edited by Khaleesi

Testing should be performed against the core client; please report mirror client specific issues in the mirror client forum.

  • Developer

Testing should be performed against the core client; please report mirror client specific issues in the mirror client forum.

 

I said it happends more often on mirror client, happends on regular client too if the users is having laggs.

 

The issue here is that the drop method tried to drop inventory items while an items has been selected by accident.

You should simply not start the drop method if an item is selected AND break out of the drop loop when an item is selected.

 

If that helps explain the issue of the users. ^^

Edited by Khaleesi

I said it happends more often on mirror client, happends on regular client too if the users is having laggs.

 

The issue here is that the drop method tried to drop inventory items while an items has been selected by accident.

You should simply not start the drop method if an item is selected AND break out of the drop loop when an item is selected.

 

If that helps explain the issue of the users. ^^

Can confirm this happens even in regular client.

Edited by iJodix

  • 4 weeks later...

is there a way we can prevent/ fix this ? it is annoying when i have it gets stuck on a mostly full inv and doesnt drop anything :(

 

I can add a check in InteractionEvent but at some point I have to stop writing scripts for scripters.

 

Edit: Changes made in 2.3.87.

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.