Package org.rsbot.script.wrappers

Examples of org.rsbot.script.wrappers.RSNPC.interact()


        }
      }
    }
    if (!interfaces.clickContinue() && getMyPlayer().getAnimation() == -1) {
      final RSNPC demon = npcs.getNearest(demonID);
      demon.interact("Talk-to");
    }
    return random(2000, 2500);
  }

  public boolean findAndUseMat(final int signID) {
View Full Code Here


      }
      return random(500, 1200);
    }
    if (talkToNPC) {
      getNPCInView(theNPC);
      return theNPC.interact("Talk-to") ? random(800, 2000) : 0;
    }
    if (interfaces.get(220).isValid()) {
      return atCloseInterface(220, 16) ? random(500, 800) : 0;
    }
    if (getMyPlayer().isMoving() || getMyPlayer().getAnimation() != -1) {
View Full Code Here

        && door == null) {
      if (!calc.tileOnScreen(mordaut.getLocation())) {
        walking.walkTileMM(mordaut.getLocation());
      }
      if (mordaut != null) {
        mordaut.interact("Talk-to");
      }
      return random(1500, 1700);
    }
    if (interfaces.get(nextObjectInterface).isValid()) {
      log.info("Question Type: Next Object");
View Full Code Here

      return random(1000, 1200);
    }
    final RSNPC certer = npcs.getNearest("Giles", "Miles", "Niles");
    if (certer != null) {
      if (calc.distanceTo(certer) < 4) {
        certer.interact("Talk-to");
        return random(2500, 3000);
      } else {
        final RSTile certerLocation = certer.getLocation();
        walking.walkTileMM(certerLocation.randomize(2, 1));
        return random(3000, 3500);
View Full Code Here

        final RSNPC herald = npcs.getNearest("Frog Herald");
        if (calc.distanceTo(herald) < 5) {
          if (!calc.tileOnScreen(herald.getLocation())) {
            camera.turnTo(herald);
          }
          herald.interact("Talk-to");
          return random(500, 1000);
        } else {
          walking.walkTileMM(herald.getLocation());
          return random(500, 700);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.