Jump to content

inventory dropall very slow


Recommended Posts

Posted

It takes a long time to drop items out of the inventory. It takes around 45 seconds for a full dropped inventory. Even writing my own dropping method with Mouse and inventory slots, it looks like the mouse waits a very long time to path before clicking. Is there some other method to make it move+click faster?

Posted
5 hours ago, Reddozen said:

It takes a long time to drop items out of the inventory. It takes around 45 seconds for a full dropped inventory. Even writing my own dropping method with Mouse and inventory slots, it looks like the mouse waits a very long time to path before clicking. Is there some other method to make it move+click faster?

Are you using mirror mode? Everything is a lot slower in mirror mode, at least for me..

  • Like 1
Posted (edited)
On 3/31/2019 at 10:49 AM, Reddozen said:

ya. using mirror mode. there no way to speed up mirror mode?

I just had a user mention this issue in my thieving script when running mirror mode and I figured out a way to fix it.

1) Iterate through inventory slots and store the mouse destination of any slot containing an item you wish to drop in a list.

2) Hold down shift key to enable shift click dropping.

getKeyboard().pressKey(16);

3)Iterate the mouse destination list:

   -move mouse to mouse destination

   -check if the option when hovering item is drop

getMenuAPI().getTooltip().contains("Drop")

   -if the hover option is drop then click

   -if hover option is not drop then you'll need to right click the item, and interact with the drop option for example:

            List<Option> options = getMenuAPI().getMenu();
            for (int j = 0; j < options.size(); j++) {
                if (options.get(j).action.equals("Drop")) {
                    getMouse().move(new RectangleDestination(getBot(), getMenuAPI().getOptionRectangle(j)));
                    mouse.click(false);
                    break;
                }
            }

   -at the end release shift key

getKeyboard().releaseKey(16);

 

This seemed to speed things up quite a bit for me, though it still won't be as fast as if you weren't running mirror.

Edit: The reason you need to check if drop is the item's hover option is because the user may not have shift click dropping enabled and in that case you'll need to either write a method to enable it or just drop the items by selecting drop from their menu.

Edited by Molly
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...