Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean interactNpc(RSNPC npc, String option) {
- if (!Player.isMoving() && npc != null && npc.hover()){
- if (npc.getDefinition().getName() != null
- && Timing.waitUptext(npc.getDefinition().getName(), General.random(700, 1100))) {
- if (npc != null && npc.click(option)) {
- General.sleep(1100, 1600);
- return true;
- }
- }
- else if (fixCam(npc.getPosition())) {
- interactNpc(npc, option);
- }
- else {
- PathFinding.aStarWalk(npc);
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment