Skip to content

Instantly share code, notes, and snippets.

@JeroenMerks
Created June 5, 2011 15:43
Show Gist options
  • Save JeroenMerks/1009068 to your computer and use it in GitHub Desktop.
Save JeroenMerks/1009068 to your computer and use it in GitHub Desktop.
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