Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static RSWeb webWalker;
- private void runToAltar(Location loc, RSTile tile) {
- if (loc == Location.BELOW_GROUND) {
- hasCrafted = false;
- webWalker = web.getWeb(getMyPlayer().getLocation(), tile);
- while (!webWalker.finished()) {
- webWalker.step();
- if (!prayer.isQuickPrayerOn() && skills.getCurrentLevel(Skills.PRAYER) > 0) {
- interfaces.getComponent(QUICK_PRAYER_ORB_IFACE, QUICK_PRAYER_ORB_IFACE_CHILD).interact("Turn");
- }
- if (loc == Location.AT_ALTAR) {
- if (prayer.isQuickPrayerOn()) {
- interfaces.getComponent(QUICK_PRAYER_ORB_IFACE, QUICK_PRAYER_ORB_IFACE_CHILD).interact("Turn");
- }
- break;
- }
- }
- }
- }
- public int loop() {
- runToAltar(getLocation(), new RSTile(3314, 4811));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement