Jump to content

Dropping All Except


Stew

Recommended Posts

You need to create your own method because that method is broken

 

Here you go i made you a quick one :D

    public boolean dropAllExcept(int... ids) throws InterruptedException	{
    	for(Item item: client.getInventory().getItems())	{
    		for (int id: ids)	{
    			if (item != null && ids.length > 0)
    				if (item.getId() != id)
    					client.getInventory().dropAll(item.getId());    				
    		}
    	}
    	return client.getInventory().isEmptyExcept(ids);
    }
Link to comment
Share on other sites

 

You need to create your own method because that method is broken

 

Here you go i made you a quick one biggrin.png

    public boolean dropAllExcept(int... ids) throws InterruptedException	{
    	for(Item item: client.getInventory().getItems())	{
    		for (int id: ids)	{
    			if (item != null && ids.length > 0)
    				if (item.getId() != id)
    					client.getInventory().dropAll(item.getId());    				
    		}
    	}
    	return client.getInventory().isEmptyExcept(ids);
    }

It seems to be working for me.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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