Skip to content

Instantly share code, notes, and snippets.

@phl0w
Created June 19, 2012 13:48
Show Gist options
  • Select an option

  • Save phl0w/2954320 to your computer and use it in GitHub Desktop.

Select an option

Save phl0w/2954320 to your computer and use it in GitHub Desktop.
import org.powerbot.game.api.methods.Settings;
import org.powerbot.game.api.methods.Widgets;
public class Prayer {
public static int getPrayerPoints() {
return Integer.parseInt(Widgets.get(749, 6).getText());
}
public static boolean isQuickPrayersOn() {
return Settings.get(1396) != 0 || Settings.get(1395) != 0;
}
public static void setQuickPrayers() {
Widgets.get(749, 5).interact("Turn");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment