Skip to content

Instantly share code, notes, and snippets.

@lordgmage
Created February 17, 2015 00:00
Show Gist options
  • Save lordgmage/74a4603a89cc51ee172b to your computer and use it in GitHub Desktop.
Save lordgmage/74a4603a89cc51ee172b to your computer and use it in GitHub Desktop.
picking flax
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