Jump to content

inventory dropall very slow


Reddozen

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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