Package org.moparscape.msc.gs.model

Examples of org.moparscape.msc.gs.model.Player.inCombat()


      player.resetPath();
      return;
    }
    if (affectedMob instanceof Player) {
      Player pl = (Player) affectedMob;
      if (pl.inCombat() && player.getRangeEquip() < 0) {
        return;
      }

      if (pl.getLocation().inWilderness()
          && System.currentTimeMillis() - pl.getLastRun() < 3000) {
View Full Code Here


        + " [CMD: "
        + item.getDef().getCommand()
        + "] at: " + player.getX() + "/" + player.getY()));

    if (player.isBusy()) {
      if (player.inCombat()) {
        player.getActionSender().sendMessage(
            "You cannot do that whilst fighting!");
      }
      return;
    }// sip
View Full Code Here

  public void handlePacket(Packet p, IoSession session) throws Exception {

    Player player = (Player) session.getAttachment();
    int pID = ((RSCPacket) p).getID();
    if ((player.isBusy() && !player.inCombat()) || player.isRanging()) {
      return;
    }

    if (player.isDueling() && player.getDuelSetting(1)) {
      player.getActionSender().sendMessage(
View Full Code Here

  public static final World world = Instance.getWorld();

  public void handlePacket(Packet p, IoSession session) throws Exception {
    Player player = (Player) session.getAttachment();
    int pID = ((RSCPacket) p).getID();
    if (player.isBusy() && !player.inCombat()) {
      return;
    }// F2P
    if (player.isDueling() && player.getDuelSetting(3)) {
      player.getActionSender().sendMessage(
          "Armour is disabled in this duel");
View Full Code Here

  public static final World world = Instance.getWorld();

  public void handlePacket(Packet p, IoSession session) throws Exception {
    Player player = (Player) session.getAttachment();
    int pID = ((RSCPacket) p).getID();
    if (player.inCombat()) {
      if (pID == 132) {
        Mob opponent = player.getOpponent();
        if (opponent == null) { // This shouldn't happen
          player.setSuspiciousPlayer(true);
          return;
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.