Created
February 17, 2015 00:00
-
-
Save lordgmage/74a4603a89cc51ee172b to your computer and use it in GitHub Desktop.
picking flax
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
public boolean activate() { | |
return !Inventory.isFull() && !Bank.isOpen() && Players.getMyPlayer().getAnimation() == -1 && Flax_ID[0].distanceTo() < 5; | |
} | |
@Override | |
public void execute() { | |
System.out.print("Flaxing"); | |
if (Flax_ID.length > 0 && Flax_ID != null | |
&& Flax_ID[0].distanceTo() > 0 && Players.getMyPlayer().getAnimation() == -1); | |
Flax_ID[0].interact(Flax_ID[0].getHash()); | |
Time.sleep(1000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment