Created
June 5, 2011 15:43
-
-
Save JeroenMerks/1009068 to your computer and use it in GitHub Desktop.
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
final RSObject Ore = objects.getNearest(oreID); //get the Object | |
if (Ore.interact("Mine")) { //Do the interaction, continue when it returns true | |
sleepWhile(new Condition() { | |
public boolean isTrue() { | |
return players.getMyPlayer().getAnimation() == -1; //The condition | |
} | |
}, Ore, 1000); //The targetObject and Threshold | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment