Jump to content

Osbot Dropping Bot Like


Recommended Posts

Posted

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.

Posted
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?

Posted

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

Posted
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

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