Advertisement
joedezzy1

Untitled

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