- Thread Author
- #1
So I'm having a little bit of an issue digging through the API to find all the correct methods I need to do this. This is my first bot and I wanted to make a simple Woodcutting and Arrow Shaft fletching bot as it seems none on the store work. I currently have it cutting wood and banking properly, but now I want it to fletch arrow shafts.
I'm looking in GameObjects and Inventory to figure out how to use an action on an item in the inventory, but I'm not really finding anything useful. Can anyone point me in the right direction or write up a quick example?
Thanks in advance,
Dark57
Code:
package com.dark57.bots.chopandfletch;
import com.runemate.game.api.script.framework.task.Task;
import com.runemate.game.api.hybrid.local.hud.interfaces.Inventory;
public class FletchArrowShaft extends Task {
private String tree = "Logs";
@Override
public boolean validate() {
if ( Inventory.isFull() && Inventory.contains(tree)) {
return true;
}
return false;
}
@Override
public void execute() {
}
}
I'm looking in GameObjects and Inventory to figure out how to use an action on an item in the inventory, but I'm not really finding anything useful. Can anyone point me in the right direction or write up a quick example?
Thanks in advance,
Dark57