Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.sendActionFailed()


      return;
    }
    if(activeChar.isBlocked() && !activeChar.isFlying()) // Разрешаем выходить из игры если используется сервис HireWyvern. Вернет в начальную точку.
    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.Logout.OutOfControl", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    // Prevent player from logging out if they are a festival participant
    // and it is in progress, otherwise notify party members that the player
    // is not longer a participant.
View Full Code Here


    if(activeChar.isFestivalParticipant())
    {
      if(SevenSignsFestival.getInstance().isFestivalInitialized())
      {
        activeChar.sendMessage("You cannot log out while you are a participant in a festival.");
        activeChar.sendActionFailed();
        return;
      }
      L2Party playerParty = activeChar.getParty();
      if(playerParty != null)
      {
View Full Code Here

      }
    }
    if(activeChar.isInOlympiadMode())
    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.Logout.Olympiad", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.inObserverMode())
    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.Logout.Observer", activeChar));
View Full Code Here

      return;
    }
    if(activeChar.inObserverMode())
    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.Logout.Observer", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    activeChar.logout(false, false, false, false);
  }
}
View Full Code Here

    {
      unit = FortressManager.getInstance().getFortressByIndex(_UnitId);
    }
    if(unit == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    // Check if leader of the clan who owns the castle?
    if(unit.getOwnerId() != activeChar.getClanId() || !activeChar.isClanLeader())
    {
View Full Code Here

      activeChar.sendPacket(Msg.YOU_CANNOT_BOARD_A_SHIP_WHILE_YOU_ARE_POLYMORPHED, Msg.ActionFail);
      return;
    }
    if(activeChar.isMovementDisabled() || activeChar.isSitting())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2AirShip boat = (L2AirShip) L2VehicleManager.getInstance().getBoat(_boatId);
    if(boat == null)
    {
View Full Code Here

      return;
    }
    L2AirShip boat = (L2AirShip) L2VehicleManager.getInstance().getBoat(_boatId);
    if(boat == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    // FIXME Возможно, стоит убрать
    if(!activeChar.isInVehicle() || activeChar.getVehicle() != boat)
    {
View Full Code Here

    {
      return;
    }
    if(_count < 1 || _items == null)
    {
      player.sendActionFailed();
      return;
    }
    L2Object target = player.getTarget();
    if(!(target instanceof L2ManorManagerInstance))
    {
View Full Code Here

    {
      return;
    }
    if(activeChar.isOutOfControl())
    {
      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;
    }
    // Проверяем, не подменили ли id
    if(activeChar.getBuyListId() != _listId)
    {
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.