Package lineage2.gameserver.model

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


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


      return;
    }
    if (!request.isInProgress())
    {
      request.cancel();
      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isActionsDisabled())
    {
      request.cancel();
View Full Code Here

      return;
    }
    if (activeChar.isActionsDisabled())
    {
      request.cancel();
      activeChar.sendActionFailed();
      return;
    }
    Player requestor = request.getRequestor();
    if (requestor == null)
    {
View Full Code Here

    }
    Log.add(player.getName() + "|Trying to put enchant|" + itemToEnchant.getItemId() + "|+" + itemToEnchant.getEnchantLevel() + "|" + itemToEnchant.getObjectId(), "enchants");
    EnchantScrollInfo esi = EnchantScrollManager.getScrollInfo(scroll.getItemId());
    if (esi == null)
    {
      player.sendActionFailed();
      return;
    }
    if (!checkItem(itemToEnchant, esi))
    {
      player.sendPacket(ExPutEnchantTargetItemResult.FAIL);
View Full Code Here

    }
    activeChar.setActive();
    ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);
    if (item == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    int itemId = item.getItemId();
    if (activeChar.isInStoreMode())
    {
View Full Code Here

      activeChar.sendPacket(new SystemMessage2(SystemMsg.S1_CANNOT_BE_USED_DUE_TO_UNSUITABLE_TERMS).addItemName(itemId));
      return;
    }
    if (activeChar.isOutOfControl())
    {
      activeChar.sendActionFailed();
      return;
    }
    int[] IDENTIFY_CRISIS =
    {
      1570
View Full Code Here

      1570
    };
    if (activeChar.getEffectList().containEffectFromSkills(IDENTIFY_CRISIS))
    {
      activeChar.sendPacket(SystemMsg.YOU_CAN_NOT_CHANGE_CLASS_DUE_TO_DISRUPTION_OF_THE_IDENTIFICATION);
      activeChar.sendActionFailed();
      return;
    }
    boolean success = item.getTemplate().getHandler().useItem(activeChar, item, _ctrlPressed);
    if (success)
    {
View Full Code Here

      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_boatObjectId);
    if (boat == null)
    {
      player.sendActionFailed();
      return;
    }
    boat.moveInBoat(player, _originPos, _pos);
  }
}
View Full Code Here

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

      seller.sendPacket(Msg.WHILE_OPERATING_A_PRIVATE_STORE_OR_WORKSHOP_YOU_CANNOT_DISCARD_DESTROY_OR_TRADE_AN_ITEM);
      return;
    }
    if (seller.isInTrade())
    {
      seller.sendActionFailed();
      return;
    }
    if (seller.isFishing())
    {
      seller.sendPacket(Msg.YOU_CANNOT_DO_ANYTHING_ELSE_WHILE_FISHING);
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.