Jump to content

Osbot Dropping Bot Like


geoffrey456

Recommended Posts

s.getInventory().getItemInSlot(0).interact("Drop");
s.getInventory().getItemInSlot(4).interact("Drop");
s.getInventory().getItemInSlot(1).interact("Drop");
s.getInventory().getItemInSlot(5).interact("Drop");
s.getInventory().getItemInSlot(6).interact("Drop");
s.getInventory().getItemInSlot(2).interact("Drop");

Go ahead and use this. :???:

 

Link to comment
Share on other sites

You just modify your dropping method to drop at specific inventory indices, for example, if the first slot in the inventory is slot 0, then the first on the second line would be 4. So using basic maths principles you can create an algorithm to do the drop > 1 down drop > repeat method you've shown in your second gif.

Link to comment
Share on other sites

9 minutes ago, The Undefeated said:

s.getInventory().getItemInSlot(0).interact("Drop");
s.getInventory().getItemInSlot(4).interact("Drop");
s.getInventory().getItemInSlot(1).interact("Drop");
s.getInventory().getItemInSlot(5).interact("Drop");
s.getInventory().getItemInSlot(6).interact("Drop");
s.getInventory().getItemInSlot(2).interact("Drop");

Go ahead and use this. :???:

 

But if my inv is filled with waterskin and i drops the empty waterskins then i would drop too the skins if u know what i mean?

Link to comment
Share on other sites

1 minute ago, geoffrey456 said:

But if my inv is filled with waterskin and i drops the empty waterskins then i would drop too the skins if u know what i mean?

You should just let it drop normally because it won't go any faster.

You should use interact if you want to drop items faster but I don't recommend it.

 

Link to comment
Share on other sites

Damn all of these people cannot show you a simple snippet, smh

int[] slot = { 0, 4, 1, 5 };
for(int i : slot){
	if(getInventory().getItemInSlot(i).getName().equals("whatever"))
		getInventory().getItemInSlot(i).interact("Drop");
}

Just replace the slot array with the slots you want to be dropped.

  • Like 3
Link to comment
Share on other sites

1 minute ago, Vilius said:

Damn all of these people cannot show you a simple snippet, smh


int[] slot = { 0, 4, 1, 5 };
for(int i : slot){
	if(getInventory().getItemInSlot(i).getName().equals("whatever"))
		getInventory().getItemInSlot(i).interact("Drop");
}

Just replace the slot array with the slots you want to be dropped.

It's more so just trying to help him understand the code and write it himself; It's not a difficult principle and he obviously hasn't bothered to take the time to try and write it himself.

Link to comment
Share on other sites

1 hour ago, geoffrey456 said:

https://gyazo.com/3be8c60c73f47341408ef884b7e0df28  Currently!!!!

How can i let it drop like this

https://gyazo.com/54236d18af9705f3012abaa320661f68 

I want it to do This pattern kappa :D

No idea why you would want to do this (assumes shift drop enabled):

private void funkyDropAll(final String itemName) throws InterruptedException {
    getKeyboard().pressKey(VK_SHIFT);
    for (int i : new int[]{0, 4, 1, 5, 2, 6, 3, 7, 8, 12, 9, 13, 10, 14, 11, 15, 16, 20, 17, 21, 18, 22, 19, 23, 24, 25, 26, 27}) {
        Item item = getInventory().getItemInSlot(i);
        if (item != null && item.getName().equals(itemName)) {
            getInventory().interact(i);
            MethodProvider.sleep(random(20, 25));
        }
    }
    getKeyboard().releaseKey(VK_SHIFT);
}

 

  • Like 4
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...