- Joined
- Apr 30, 2017
- Messages
- 1
- Thread Author
- #1
I'm developing a fire rune crafter. At some point it needs to traverse from the duel arena to the fire ruins, then interact with the ruins. My bot traverses to the location, pauses for some time, then finally interacts with the ruins in a really awkward manner. Does anyone have any tips on how they would optimize this process?
Any advice or insight is greatly appreciated.
Any advice or insight is greatly appreciated.
Code:
public class RunToAltar extends LeafTask{
Player player;
@Override
public void execute() {
GameObject ruins = GameObjects.newQuery().on(Constants.fireAltarRuins).names("Mysterious ruins").actions("Enter").results().first();
final WebPath path = Traversal.getDefaultWeb().getPathBuilder().buildTo(Constants.fireAltarRuins.randomize(3, 3));
if(path != null) {
path.step();
Execution.delayUntil(() -> ruins != null, 2000, 4000);
if(ruins != null)ruins.click();
}
else System.out.println("PATH NULL");
}
}