joedezzy1

Untitled

Jul 31st, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1.     public static boolean interactNpc(RSNPC npc, String option) {
  2.         if (!Player.isMoving() && npc != null && npc.hover()){         
  3.             if (npc.getDefinition().getName() != null
  4.                     && Timing.waitUptext(npc.getDefinition().getName(), General.random(700, 1100))) {
  5.                 if (npc != null && npc.click(option)) {
  6.                     General.sleep(1100, 1600);
  7.                     return true;
  8.                 }
  9.             }
  10.             else if (fixCam(npc.getPosition())) {
  11.                 interactNpc(npc, option);
  12.             }
  13.             else {
  14.                 PathFinding.aStarWalk(npc);
  15.             }
  16.         }
  17.         return false;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment