Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.93 KB | None | 0 0
  1. private static RSWeb webWalker;
  2.  
  3. private void runToAltar(Location loc, RSTile tile) {
  4.         if (loc == Location.BELOW_GROUND) {
  5.             hasCrafted = false;
  6.             webWalker = web.getWeb(getMyPlayer().getLocation(), tile);
  7.             while (!webWalker.finished()) {
  8.                 webWalker.step();
  9.                 if (!prayer.isQuickPrayerOn() && skills.getCurrentLevel(Skills.PRAYER) > 0) {
  10.                     interfaces.getComponent(QUICK_PRAYER_ORB_IFACE, QUICK_PRAYER_ORB_IFACE_CHILD).interact("Turn");
  11.                 }
  12.                 if (loc == Location.AT_ALTAR) {
  13.                     if (prayer.isQuickPrayerOn()) {
  14.                         interfaces.getComponent(QUICK_PRAYER_ORB_IFACE, QUICK_PRAYER_ORB_IFACE_CHILD).interact("Turn");
  15.                     }
  16.                     break;
  17.                 }
  18.             }
  19.         }
  20.     }
  21.  
  22. public int loop() {
  23.     runToAltar(getLocation(), new RSTile(3314, 4811));
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement