Advertisement
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()){
- RSNPCDefinition def = npc.getDefinition();
- if (def != null) {
- String name = def.getName();
- if (name != null && Timing.waitUptext(name, General.random(700, 1100))) {
- if (npc != null && npc.click(option)) {
- General.sleep(1100, 1600);
- return true;
- }
- }
- else if (!fixCam(npc.getPosition())) {
- PathFinding.aStarWalk(npc);
- }
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement