Examples of CustomMessage


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

    {
      return;
    }
    if (changed)
    {
      Functions.show(new CustomMessage("scripts.commands.user.password.ResultTrue", activeChar), activeChar);
    }
    else
    {
      Functions.show(new CustomMessage("scripts.commands.user.password.ResultFalse", activeChar), activeChar);
    }
  }
View Full Code Here

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

      activeChar.sendActionFailed();
      return;
    }
    if (!activeChar.isClanLeader())
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.ChangeAffiliations", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    UnitMember subject = clan.getAnyMember(_subjectName);
    if (subject == null)
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.NotInYourClan", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if (subject.getPledgeType() == _targetUnit)
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.AlreadyInThatCombatUnit", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if ((_targetUnit != 0) && (clan.getSubUnit(_targetUnit) == null))
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.NoSuchCombatUnit", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if (Clan.isAcademy(_targetUnit))
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.AcademyViaInvitation", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if (Clan.isAcademy(subject.getPledgeType()))
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.CantMoveAcademyMember", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    UnitMember replacement = null;
    if (_replace > 0)
    {
      replacement = clan.getAnyMember(_replaceName);
      if (replacement == null)
      {
        activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.CharacterNotBelongClan", activeChar));
        activeChar.sendActionFailed();
        return;
      }
      if (replacement.getPledgeType() != _targetUnit)
      {
        activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.CharacterNotBelongCombatUnit", activeChar));
        activeChar.sendActionFailed();
        return;
      }
      if (replacement.isSubLeader() != 0)
      {
        activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.CharacterLeaderAnotherCombatUnit", activeChar));
        activeChar.sendActionFailed();
        return;
      }
    }
    else
    {
      if (clan.getUnitMembersSize(_targetUnit) >= clan.getSubPledgeLimit(_targetUnit))
      {
        if (_targetUnit == Clan.SUBUNIT_MAIN_CLAN)
        {
          activeChar.sendPacket(new SystemMessage(SystemMessage.S1_IS_FULL_AND_CANNOT_ACCEPT_ADDITIONAL_CLAN_MEMBERS_AT_THIS_TIME).addString(clan.getName()));
        }
        else
        {
          activeChar.sendPacket(Msg.THE_ACADEMY_ROYAL_GUARD_ORDER_OF_KNIGHTS_IS_FULL_AND_CANNOT_ACCEPT_NEW_MEMBERS_AT_THIS_TIME);
        }
        activeChar.sendActionFailed();
        return;
      }
      if (subject.isSubLeader() != 0)
      {
        activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestPledgeReorganizeMember.MemberLeaderAnotherUnit", activeChar));
        activeChar.sendActionFailed();
        return;
      }
    }
    SubUnit oldUnit = null;
View Full Code Here

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

    {
      if (!ref.isDefault())
      {
        for (Player p : ref.getPlayers())
        {
          p.sendMessage(new CustomMessage("scripts.ai.freya.FreyaFailure", p));
        }
        ref.collapse();
      }
    }
    super.thinkActive();
View Full Code Here

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

      return;
    }
    Reflection r = party.getReflection();
    if (r != null)
    {
      activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestOustPartyMember.CantOustInDungeon", activeChar));
    }
    else
    {
      party.removePartyMember(member, true);
    }
View Full Code Here

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

    }
    for (Player player : World.getAroundPlayers(npc, range, Math.max(range / 2, 200)))
    {
      if (npc.getReflection() == player.getReflection())
      {
        player.sendPacket(new NpcSay(npc, ChatType.NPC_SAY, new CustomMessage(address, player, replacements).toString()));
      }
    }
  }
View Full Code Here

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

      }
      int tx = MapUtils.regionX(player);
      int ty = MapUtils.regionY(player);
      if (((tx >= (rx - offset)) && (tx <= (rx + offset)) && (ty >= (ry - offset)) && (ty <= (ry + offset))) || npc.isInRange(player, Config.CHAT_RANGE))
      {
        player.sendPacket(new NpcSay(npc, ChatType.SHOUT, new CustomMessage(address, player, replacements).toString()));
      }
    }
  }
View Full Code Here

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

        activeChar.sendPacket(SystemMsg.YOU_CANNOT_TELEPORT_WHILE_IN_POSSESSION_OF_A_WARD);
        return false;
      }
      if (p.isInDuel() || (p.getTeam() != TeamType.NONE))
      {
        activeChar.sendMessage(new CustomMessage("common.RecallInDuel", p));
        return false;
      }
      if (p.isInOlympiadMode())
      {
        activeChar.sendPacket(Msg.THIS_SKILL_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT);
        return false;
      }
    }
    if (activeChar.isInZone(ZoneType.no_escape) || ((_townId > 0) && (activeChar.getReflection() != null) && (activeChar.getReflection().getCoreLoc() != null)))
    {
      if (activeChar.isPlayer())
      {
        activeChar.sendMessage(new CustomMessage("lineage2.gameserver.skills.skillclasses.Recall.Here", (Player) activeChar));
      }
      return false;
    }
    return super.checkCondition(activeChar, target, forceUse, dontMove, first);
  }
View Full Code Here

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

          activeChar.sendPacket(new SystemMessage(SystemMessage.S1_CANNOT_BE_USED_DUE_TO_UNSUITABLE_TERMS).addSkillName(getId(), getLevel()));
          return;
        }
        if (pcTarget.isInDuel() || (pcTarget.getTeam() != TeamType.NONE))
        {
          activeChar.sendMessage(new CustomMessage("common.RecallInDuel", (Player) activeChar));
          return;
        }
        if (_isItemHandler)
        {
          if (_itemConsumeId[0] == 7125)
View Full Code Here

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

              {
                rateOfSpoil = 99.;
              }
              if (((Player) activeChar).isGM())
              {
                activeChar.sendMessage(new CustomMessage("lineage2.gameserver.skills.skillclasses.Spoil.Chance", (Player) activeChar).addNumber((long) rateOfSpoil));
              }
              success = Rnd.chance(rateOfSpoil);
            }
            else
            {
View Full Code Here

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

        }
        if (getActivateRate() > 0)
        {
          if (activeChar.isPlayer() && ((Player) activeChar).isGM())
          {
            activeChar.sendMessage(new CustomMessage("lineage2.gameserver.skills.Formulas.Chance", (Player) activeChar).addString(getName()).addNumber(getActivateRate()));
          }
          if (!Rnd.chance(getActivateRate()))
          {
            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.