Examples of SystemMsg


Examples of lineage2.gameserver.network.serverpackets.components.SystemMsg

  {
    int seconds = val % 60;
    int min = val / 60;
    if (min > 0)
    {
      SystemMsg msg = min > 10 ? SystemMsg.IN_S1_MINUTES_THE_GAME_WILL_BEGIN_ALL_PLAYERS_MUST_HURRY_AND_MOVE_TO_THE_LEFT_SIDE_OF_THE_CLAN_HALLS_ARENA : SystemMsg.IN_S1_MINUTES_THE_GAME_WILL_BEGIN_ALL_PLAYERS_PLEASE_ENTER_THE_ARENA_NOW;
      broadcastTo(new SystemMessage2(msg).addInteger(min), ATTACKERS);
    }
    else
    {
      broadcastTo(new SystemMessage2(SystemMsg.IN_S1_SECONDS_THE_GAME_WILL_BEGIN).addInteger(seconds), ATTACKERS);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.SystemMsg

      disband();
    }
    else
    {
      L2GameServerPacket infoPacket = infoRoomPacket();
      SystemMsg exitMessage0 = exitMessage(true, oust);
      L2GameServerPacket exitMessage = exitMessage0 != null ? new SystemMessage2(exitMessage0).addName(member) : null;
      for (Player player : this)
      {
        player.sendPacket(infoPacket, removeMemberPacket(player, member), exitMessage);
      }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.SystemMsg

    if (first && (target != null) && (getFlyType() == FlyType.CHARGE) && activeChar.isInRange(target.getLoc(), Math.min(150, getFlyRadius())))
    {
      activeChar.getPlayer().sendPacket(Msg.THERE_IS_NOT_ENOUGH_SPACE_TO_MOVE_THE_SKILL_CANNOT_BE_USED);
      return false;
    }
    SystemMsg msg = checkTarget(activeChar, target, target, forceUse, first);
    if ((msg != null) && (activeChar.getPlayer() != null))
    {
      activeChar.getPlayer().sendPacket(msg);
      return false;
    }
    if (_preCondition.length == 0)
    {
      return true;
    }
    Env env = new Env();
    env.character = activeChar;
    env.skill = this;
    env.target = target;
    if (first)
    {
      for (Condition p : _preCondition)
      {
        if (!p.test(env))
        {
          SystemMsg cond_msg = p.getSystemMsg();
          if (cond_msg != null)
          {
            if (cond_msg.size() > 0)
            {
              activeChar.sendPacket(new SystemMessage2(cond_msg).addSkillName(this));
            }
            else
            {
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.SystemMsg

            {
              return SystemMsg.INVALID_TARGET;
            }
            return null;
          }
          SystemMsg msg = null;
          for (GlobalEvent e : player.getEvents())
          {
            if ((msg = e.checkForAttack(target, activeChar, this, forceUse)) != null)
            {
              return msg;
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.SystemMsg

  {
    final DoorInstance door = getActor();
    final Residence residence = ResidenceHolder.getInstance().getResidence(door.getTemplate().getAIParams().getInteger("residence_id"));
    if ((residence.getOwner() != null) && (player.getClan() != null) && (player.getClan().equals(residence.getOwner())) && ((player.getClanPrivileges() & Clan.CP_CS_ENTRY_EXIT) == Clan.CP_CS_ENTRY_EXIT))
    {
      final SystemMsg msg = door.isOpen() ? SystemMsg.WOULD_YOU_LIKE_TO_CLOSE_THE_GATE : SystemMsg.WOULD_YOU_LIKE_TO_OPEN_THE_GATE;
      player.ask(new ConfirmDlg(msg, 0), new OnAnswerListener()
      {
        @Override
        public void sayYes()
        {
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.SystemMsg

   * Method changeClass.
   * @param index int
   */
  public void changeClass(final int index)
  {
    SystemMsg msg = checkChangeClassCondition();
    if (msg != null)
    {
      sendPacket(msg);
      return;
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.SystemMsg

    {
      return;
    }
    if (command.equalsIgnoreCase("board"))
    {
      SystemMsg msg = canBoard(player);
      if (msg != null)
      {
        player.sendPacket(msg);
        return;
      }
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.