Package lineage2.gameserver.network.serverpackets.components

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


    }
    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

      }
      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

        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

          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

              {
                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

        }
        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

          Player owner = target.getPlayer();
          if (owner != null)
          {
            if (activeChar == target)
            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else if (owner == activeChar)
            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else
            {
              owner.sendMessage(new CustomMessage("S1_HAS_BEEN_RESTORED_S2_HP_OF_YOUR_PET", owner).addString(activeChar.getName()).addNumber(Math.round(addToHp)));
            }
          }
        }
        getEffects(activeChar, target, getActivateRate() > 0, false);
      }
View Full Code Here

  {
    for (int i : Config.ALT_DISABLED_MULTISELL)
    {
      if (i == listId)
      {
        player.sendMessage(new CustomMessage("common.Disabled", player));
        return;
      }
    }
    MultiSellListContainer list = getList(listId);
    if (list == null)
    {
      player.sendMessage(new CustomMessage("common.Disabled", player));
      return;
    }
    SeparateAndSend(list, player, taxRate);
  }
View Full Code Here

          {
            ancientAdenaConvert = Long.parseLong(command.substring(13).trim());
          }
          catch(NumberFormatException e)
          {
            player.sendMessage(new CustomMessage("common.IntegerAmount", player, new Object[0]));
            return;
          }
          catch(StringIndexOutOfBoundsException e)
          {
            player.sendMessage(new CustomMessage("common.IntegerAmount", player, new Object[0]));
            return;
          }
          if(ancientAdenaAmount < ancientAdenaConvert || ancientAdenaConvert < 1L)
          {
            player.sendPacket(SystemMsg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.components.CustomMessage

Copyright © 2018 www.massapicom. 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.