Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Player.sendActionFailed()


        return;
      }
      if (subject.isSubLeader() != 0)
      {
        activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.MemberLeaderAnotherUnit", activeChar));
        activeChar.sendActionFailed();
        return;
      }
    }
    SubUnit oldUnit = null;
    if (replacement != null)
View Full Code Here


    {
      return;
    }
    if (!activeChar.getPlayerAccess().UseInventory || activeChar.isBlocked())
    {
      activeChar.sendActionFailed();
      return;
    }
    activeChar.sendItemList(true);
    activeChar.sendStatusUpdate(false, false, StatusUpdateField.CUR_LOAD);
  }
View Full Code Here

      return;
    }
    Party party = activeChar.getParty();
    if ((party == null) || !activeChar.getParty().isLeader(activeChar))
    {
      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isInOlympiadMode())
    {
      activeChar.sendMessage("Вы не можете �?ейча�? выйти из группы.");
View Full Code Here

      return;
    }
    Castle castle = ResidenceHolder.getInstance().getResidence(Castle.class, _unitId);
    if ((castle == null) || (player.getClan().getCastle() != castle.getId()))
    {
      player.sendActionFailed();
      return;
    }
    CastleSiegeEvent siegeEvent = castle.getSiegeEvent();
    SiegeClanObject siegeClan = siegeEvent.getSiegeClan(CastleSiegeEvent.DEFENDERS_WAITING, _clanId);
    if (siegeClan == null)
View Full Code Here

    {
      if (activeChar.isClanAirShipDriver())
      {
        activeChar.sendPacket(SystemMsg.THIS_ACTION_IS_PROHIBITED_WHILE_STEERING);
      }
      activeChar.sendActionFailed();
      return;
    }
    if (_unselect == 0)
    {
      if (activeChar.isCastingNow())
View Full Code Here

    {
      return;
    }
    if (activeChar.isActionsDisabled())
    {
      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isInStoreMode())
    {
      activeChar.sendPacket(Msg.WHILE_OPERATING_A_PRIVATE_STORE_OR_WORKSHOP_YOU_CANNOT_DISCARD_DESTROY_OR_TRADE_AN_ITEM);
View Full Code Here

      activeChar.sendPacket(Msg.WHILE_OPERATING_A_PRIVATE_STORE_OR_WORKSHOP_YOU_CANNOT_DISCARD_DESTROY_OR_TRADE_AN_ITEM);
      return;
    }
    if (activeChar.isInTrade())
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!Config.ALT_GAME_KARMA_PLAYER_CAN_SHOP && (activeChar.getKarma() < 0) && !activeChar.isGM())
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if (!Config.ALT_GAME_KARMA_PLAYER_CAN_SHOP && (activeChar.getKarma() < 0) && !activeChar.isGM())
    {
      activeChar.sendActionFailed();
      return;
    }
    GameObject target = activeChar.getTarget();
    ManorManagerInstance manor = (target != null) && (target instanceof ManorManagerInstance) ? (ManorManagerInstance) target : null;
    if (!activeChar.isGM() && ((manor == null) || !activeChar.isInRange(manor, Creature.INTERACTION_DISTANCE)))
View Full Code Here

    }
    GameObject target = activeChar.getTarget();
    ManorManagerInstance manor = (target != null) && (target instanceof ManorManagerInstance) ? (ManorManagerInstance) target : null;
    if (!activeChar.isGM() && ((manor == null) || !activeChar.isInRange(manor, Creature.INTERACTION_DISTANCE)))
    {
      activeChar.sendActionFailed();
      return;
    }
    Castle castle = ResidenceHolder.getInstance().getResidence(Castle.class, _manorId);
    if (castle == null)
    {
View Full Code Here

  {
    Player activeChar = getClient().getActiveChar();
    ItemInstance item = activeChar.getInventory().getItemByObjectId(_itemId);
    if (item == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!item.isAugmented())
    {
      activeChar.sendPacket(Msg.AUGMENTATION_REMOVAL_CAN_ONLY_BE_DONE_ON_AN_AUGMENTED_ITEM);
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.