Hey guys, trying to wrap my head around tick manipulation in Dreambot.
I've tried to use the Inventory management to product this but it doesn't seem to work - my guess is the delay the built in Inventory actions have.
Does anyone have any tips about this? Do i need to do it manually through the Mouse api or the Gui api?
This is what i tried:
Item knife = Inventory.getRandom("Knife");
Item teakLogs = Inventory.getRandom("Teak Logs");
if (knife != null && teakLogs != null) {
knife.interact();
teakLogs.interact();
if (otherAction) {
Walking.walk(Players.getLocal().getTile().getRandomized(1));
}
}
also tried
Item knife = Inventory.getRandom("Knife");
Item teakLogs = Inventory.getRandom("Teak Logs");
if (knife != null && teakLogs != null) {
knife.useOn(teakLogs);
if (otherAction) {
Walking.walk(Players.getLocal().getTile().getRandomized(1));
}
}
Any pointers appreciated!