- Joined
- Nov 3, 2013
- Messages
- 41
- Thread Author
- #1
I've written some api for an old bot
dropAll
dropAllOff
dropAll
dropAllOff
Code:
public void dropAllOf(final int id) {
if(Inventory.isFull()) {
for(final Item i: Inventory.getItems()) {
if(i.getId() == id) {
i.interact("Drop");
Task.sleep(500, 1000);
}
}
}
}
public void dropAll() {
if(Inventory.isFull()) {
for(final Item i: Inventory.getItems()) {
i.interact("Drop");
Task.sleep(500, 1000);
}
}
}
}