Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- Imports Omitted
- **/
- @Manifest(authors = { "merakit" }, name="Law Siphon", description = "Gets ESS from lawhounds.")
- public class RuneSpan extends ActiveScript {
- int master = 15413;
- @Override
- protected void setup(){
- provide(new Strategy(new Siphon(),new Siphon()));
- }
- private class Siphon implements Task, Condition {
- @Override
- public void run(){
- final NPC esshound = NPCs.getNearest(master);
- if(esshound != null){
- if(esshound.isOnScreen()) {
- esshound.getLocation();
- Camera.turnTo(esshound);
- esshound.interact("Siphon");
- } else if(!esshound.isOnScreen()) {
- esshound.getLocation();
- Camera.turnTo(esshound);
- }
- }
- Time.sleep(2000);
- }
- @Override
- public boolean validate() {
- return Players.getLocal().getAnimation() == -1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment