- Thread Author
- #1
Whats an effective way of,
Selecting Fish -> Use on Fire -> Cook-All
Another Problem I'm having is
it is clicking on the people around the fire because their hit box's are over the fire
Selecting Fish -> Use on Fire -> Cook-All
Code:
SpriteItem sI1 = Inventory.newQuery().names(nzl.getFish()).results().random();
InterfaceComponent iC = Interfaces.newQuery().textContains(nzl.getFish()).containers(309, 6).results().first();
GameObject fire = GameObjects.getLoaded("Fire").nearest();
if (sI1 != null && Inventory.contains(nzl.getFish()) && fire !=null && !Inventory.contains(nzl.getCFish)){
sI1.interact("Use");
fire.click();
iC.interact("Cook All");
}
Another Problem I'm having is
Code:
if(fire.interact("Use")){
Execution.delayUntil(() -> iC != null && iC.isVisible(), 500, 1000);
}
it is clicking on the people around the fire because their hit box's are over the fire
Last edited: