Created
February 27, 2015 17:47
-
-
Save lordgmage/a8abe51f3e960452a8ab to your computer and use it in GitHub Desktop.
Need fixing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package strategies; | |
import org.parabot.environment.api.utils.Time; | |
import org.parabot.environment.scripts.framework.SleepCondition; | |
import org.parabot.environment.scripts.framework.Strategy; | |
import org.rev317.min.api.methods.*; | |
import org.rev317.min.api.wrappers.Npc; | |
import org.rev317.min.api.wrappers.SceneObject; | |
import org.rev317.min.api.wrappers.Tile; | |
import org.rev317.min.api.wrappers.TilePath; | |
public class ToMineEss implements Strategy { | |
SceneObject[] Ess = SceneObjects.getNearest(2491); | |
public static Tile[] EssPath = {new Tile(2849, 10214), new Tile(2852, 10223)}; | |
Npc[] Aubury = 553; | |
@Override | |
public boolean activate() { | |
System.out.println("Cunt"); | |
return Inventory.isEmpty() && Bank.getBanker().distanceTo() < 90; | |
} | |
@Override | |
public void execute() { | |
Aubury = Npcs.getNearest(553); | |
System.out.println("ToMine"); | |
final TilePath ToMine = new TilePath(EssPath); | |
if (ToMine != null && !ToMine.hasReached()) { | |
ToMine.traverse(); | |
Time.sleep(new SleepCondition() { | |
@Override | |
public boolean isValid() { | |
return ToMine.hasReached(); | |
} | |
}, 5000); | |
Aubury[0].interact(2); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment