Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Option to pick up Agonic orts

Joined
Nov 3, 2013
Messages
2,387
Speaks for itself I think.

Agonic arts are things that randomly appear under you, you use these on the clan ava for bonus exp.

RS3
 
Joined
Jan 27, 2015
Messages
1,557
Pretty useless if you wanna go full efficient. That was at least from my experience on 2x exp weekend.
 
Primate
Joined
Oct 30, 2014
Messages
3,475
Code:
package productions.celestial.api.defaultoperations;

import com.runemate.game.api.hybrid.entities.GroundItem;
import com.runemate.game.api.hybrid.local.Camera;
import com.runemate.game.api.hybrid.location.navigation.Path;
import com.runemate.game.api.hybrid.location.navigation.basic.BresenhamPath;
import com.runemate.game.api.hybrid.region.GroundItems;
import com.runemate.game.api.hybrid.region.Players;
import com.runemate.game.api.script.Execution;
import com.runemate.game.api.script.framework.task.Task;

public class TakeAnagogicOrt extends Task {
  
    private GroundItem ort = null;
  
    @Override
    public void execute() {
        if (ort.isVisible()) {
            if (ort.interact("Take", "Anagogic ort")) {
                if (Execution.delayUntil(() -> Players.getLocal().isMoving(), 750)) {
                    Execution.delayUntil(() -> !Players.getLocal().isMoving(), 2000);
                }
            } else {
                Camera.passivelyTurnTo(ort);
            }
        } else {
            final Path p = BresenhamPath.buildTo(ort);
            if (p != null && p.step(true)) {
                Camera.passivelyTurnTo(ort);
                Execution.delayUntil(() -> ort != null && ort.isVisible(), 2000);
            }
        }
    }

    @Override
    public boolean validate() {
        if (!Players.getLocal().isMoving()) {
            ort = GroundItems.newQuery().names("Anagogic ort").actions("Take").reachable().results().first();
        }
        return ort != null;
    }
  
}

For le bot writers.
 
Top