Package lineage2.gameserver.model

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


    {
      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;
    }
    NpcInstance merchant = activeChar.getLastNpc();
    boolean isValidMerchant = (merchant != null) && merchant.isMerchantNpc();
    if (!activeChar.isGM() && ((merchant == null) || !isValidMerchant || !activeChar.isInRange(merchant, Creature.INTERACTION_DISTANCE)))
View Full Code Here

    }
    NpcInstance merchant = activeChar.getLastNpc();
    boolean isValidMerchant = (merchant != null) && merchant.isMerchantNpc();
    if (!activeChar.isGM() && ((merchant == null) || !isValidMerchant || !activeChar.isInRange(merchant, Creature.INTERACTION_DISTANCE)))
    {
      activeChar.sendActionFailed();
      return;
    }
    NpcTradeList list = BuyListHolder.getInstance().getBuyList(_listId);
    if (list == null)
    {
View Full Code Here

      return;
    }
    NpcTradeList list = BuyListHolder.getInstance().getBuyList(_listId);
    if (list == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    long totalPrice = 0;
    Map<Integer, Integer> itemList = new HashMap<>();
    try
View Full Code Here

      for (int i = 0; i < _count; i++)
      {
        int itemId = _items[i];
        if (list.getItemByItemId(itemId) == null)
        {
          activeChar.sendActionFailed();
          return;
        }
        ItemTemplate template = ItemHolder.getInstance().getTemplate(itemId);
        if (template == null)
        {
View Full Code Here

    {
      return;
    }
    if (!TradeHelper.checksIfCanOpenStore(manufacturer, Player.STORE_PRIVATE_MANUFACTURE))
    {
      manufacturer.sendActionFailed();
      return;
    }
    if (_count > Config.MAX_PVTCRAFT_SLOTS)
    {
      sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_QUANTITY_THAT_CAN_BE_INPUTTED);
View Full Code Here

      manufacturer.setPrivateStoreType(Player.STORE_PRIVATE_MANUFACTURE);
      manufacturer.broadcastPacket(new RecipeShopMsg(manufacturer));
      manufacturer.sitDown(null);
      manufacturer.broadcastCharInfo();
    }
    manufacturer.sendActionFailed();
  }
}
View Full Code Here

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

      return;
    }
    if (activeChar.isOutOfControl())
    {
      request.cancel();
      activeChar.sendActionFailed();
      return;
    }
    Player requestor = request.getRequestor();
    if (requestor == null)
    {
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.