Examples of inCombat()


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

            try {
              if (item.getID() == 59 && item.getX() == 106
                  && item.getY() == 1476) {
                Npc n = world.getNpc(37, 103, 107, 1476, 1479);

                if (n != null && !n.inCombat()) {
                  owner.informOfNpcMessage(new ChatMessage(n,
                      "Nobody steals from this gang!",
                      owner));
                  fight(owner, n);
                }
View Full Code Here

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

                }
              } else if (item.getID() == 501
                  && item.getX() == 333 && item.getY() == 434) {
                Npc zam = world.getNpc(140, 328, 333, 433, 438,
                    true);
                if (zam != null && !zam.inCombat()) {
                  owner.informOfNpcMessage(new ChatMessage(
                      zam, "a curse be upon you", owner));
                  for (int i = 0; i < 3; i++) {
                    int stat = owner.getCurStat(i);
                    if (stat < 3)
View Full Code Here

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

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

        + " [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

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

  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

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

  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

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

  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.