Advertisement
lengend

Untitled

Sep 16th, 2012
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. *   @filename   Pindleskin.js
  3. *   @author     kolton
  4. *   @desc       kill Pindleskin and optionally Nihlathak
  5. */
  6.  
  7. function Pindleskin() {
  8.     Town.goToTown(5);
  9.     Town.doChores();
  10.  
  11.     if (!Config.Pindleskin.UseWp) {
  12.         Town.move("anya");
  13.         if (!Pather.usePortal(121)) {
  14.             throw new Error("Failed to use portal.");
  15.         }
  16.  
  17.     Precast.doPrecast(true);
  18.     Pather.moveTo(10058, 13234);
  19.     Attack.clear(15, 0, getLocaleString(22497)); // Pindleskin
  20.     } else {
  21.         Pather.useWaypoint(123);
  22.         Precast.doPrecast(true);
  23.        
  24.         if (!Pather.moveToExit([122, 121], true)) {
  25.             throw new Error("Failed to move to Pindleskin");
  26.         }
  27.         Pather.moveTo(10058, 13234);
  28.         Attack.clear(15, 0, getLocaleString(22497)); // Pindleskin
  29.     }
  30.    
  31.     if (Config.Pindleskin.KillNihlathak) {
  32.         if (!Pather.moveToExit([122, 123, 124], true)) {
  33.             throw new Error("Failed to move to Halls of Vaught");
  34.         }
  35.  
  36.         Pather.moveToPreset(me.area, 2, 462, 0, 0, false, true);
  37.  
  38.         if (Config.Pindleskin.ViperQuit && getUnit(1, 597)) {
  39.             print("Tomb Vipers found.");
  40.  
  41.             return true;
  42.         }
  43.  
  44.         Attack.kill(526); // Nihlathak
  45.         Attack.clear(20);
  46.     }
  47.  
  48.     return true;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement