Package lineage2.gameserver.model

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


      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_objectId);
    if ((boat == null) || boat.isMoving)
    {
      player.sendActionFailed();
      return;
    }
    boat.oustPlayer(player, _location, false);
  }
}
View Full Code Here


      return;
    }
    Clan clan = activeChar.getClan();
    if (clan == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!((activeChar.getClanPrivileges() & Clan.CP_CL_CLAN_WAR) == Clan.CP_CL_CLAN_WAR))
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if (!((activeChar.getClanPrivileges() & Clan.CP_CL_CLAN_WAR) == Clan.CP_CL_CLAN_WAR))
    {
      activeChar.sendActionFailed();
      return;
    }
    if (clan.getWarsCount() >= 30)
    {
      activeChar.sendPacket(Msg.A_DECLARATION_OF_WAR_AGAINST_MORE_THAN_30_CLANS_CANT_BE_MADE_AT_THE_SAME_TIME, ActionFail.STATIC);
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

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

      buyer.sendPacket(Msg.WHILE_OPERATING_A_PRIVATE_STORE_OR_WORKSHOP_YOU_CANNOT_DISCARD_DESTROY_OR_TRADE_AN_ITEM);
      return;
    }
    if (buyer.isInTrade())
    {
      buyer.sendActionFailed();
      return;
    }
    if (buyer.isFishing())
    {
      buyer.sendPacket(Msg.YOU_CANNOT_DO_ANYTHING_ELSE_WHILE_FISHING);
View Full Code Here

    {
      return;
    }
    if (!activeChar.isInStoreMode() || ((activeChar.getPrivateStoreType() != Player.STORE_PRIVATE_SELL) && (activeChar.getPrivateStoreType() != Player.STORE_PRIVATE_SELL_PACKAGE)))
    {
      activeChar.sendActionFailed();
      return;
    }
    activeChar.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
    activeChar.standUp();
    activeChar.broadcastCharInfo();
View Full Code Here

      return;
    }
    RecipeTemplate recipeList = RecipeHolder.getInstance().getRecipeByRecipeId(_id);
    if (recipeList == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    sendPacket(new RecipeItemMakeInfo(activeChar, recipeList, 0xffffffff));
  }
}
View Full Code Here

      return;
    }
    Clan clan = activeChar.getClan();
    if (clan == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!activeChar.isClanLeader())
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.ChangeAffiliations", activeChar));
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.