Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SystemMessage2


        if (_oldOwner != null)
        {
          _oldOwner.incReputation(-1700, false, toString());
        }
      }
      broadcastInZone(new SystemMessage2(SystemMsg.S1_CLAN_HAS_DEFEATED_S2).addString(newOwner.getName()).addResidenceName(getResidence()));
      broadcastInZone(new SystemMessage2(SystemMsg.THE_SIEGE_OF_S1_IS_FINISHED).addResidenceName(getResidence()));
    }
    else
    {
      broadcastInZone(new SystemMessage2(SystemMsg.THE_SIEGE_OF_S1_HAS_ENDED_IN_A_DRAW).addResidenceName(getResidence()));
    }
    super.stopEvent(step);
    _oldOwner = null;
  }
View Full Code Here


  @Override
  public void pickUp(Player player)
  {
    player.getInventory().equipItem(_item);
    FortressSiegeEvent event = player.getEvent(FortressSiegeEvent.class);
    event.broadcastTo(new SystemMessage2(SystemMsg.C1_HAS_ACQUIRED_THE_FLAG).addName(player), SiegeEvent.ATTACKERS, SiegeEvent.DEFENDERS);
  }
View Full Code Here

    public void runImpl()
    {
      startCollapseTimer(5 * 60 * 1000L);
      doCleanup();
      for(Player p : getPlayers())
        p.sendPacket(new SystemMessage2(SystemMsg.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addInteger(5));
    }
View Full Code Here

          SystemMsg cond_msg = p.getSystemMsg();
          if (cond_msg != null)
          {
            if (cond_msg.size() > 0)
            {
              activeChar.sendPacket(new SystemMessage2(cond_msg).addSkillName(this));
            }
            else
            {
              activeChar.sendPacket(cond_msg);
            }
View Full Code Here

        cancel_res_multiplier = 1 - (cancel_res_multiplier * .01);
        prelimChance = ((2. * dml) + _cancelRate + (buffTime / 120)) * cancel_res_multiplier;
        if (Rnd.chance(calcSkillChanceLimits(prelimChance, _effector.isPlayable())))
        {
          negated++;
          _effected.sendPacket(new SystemMessage2(SystemMsg.THE_EFFECT_OF_S1_HAS_BEEN_REMOVED).addSkillName(e.getSkill().getId(), e.getSkill().getLevel()));
          e.exit();
        }
      }
    }
  }
View Full Code Here

  public void useSkill(Creature activeChar, List<Creature> targets)
  {
    for (Creature cha : targets)
    {
      cha.setAgathionEnergy(cha.getAgathionEnergy() + _addEnergy);
      cha.sendPacket(new SystemMessage2(SystemMsg.ENERGY_S1_REPLENISHED).addInteger(_addEnergy));
    }
  }
View Full Code Here

    }
    for (GlobalEvent e : player.getEvents())
    {
      if (!e.canRessurect(player, target, forceUse))
      {
        player.sendPacket(new SystemMessage2(SystemMsg.S1_CANNOT_BE_USED_DUE_TO_UNSUITABLE_TERMS).addSkillName(this));
        return false;
      }
    }
    if (oneTarget())
    {
View Full Code Here

    }
    for (NpcInstance npc : World.getAroundNpc(activeChar, 300, 200))
    {
      if ((npc.getNpcId() == _npcIds[0]) || (npc.getNpcId() == _npcIds[1]))
      {
        activeChar.sendPacket(new SystemMessage2(SystemMsg.SINCE_S1_ALREADY_EXISTS_NEARBY_YOU_CANNOT_SUMMON_IT_AGAIN).addName(npc));
        return false;
      }
    }
    if (World.getAroundNpc(activeChar, 100, 200).size() > 0)
    {
View Full Code Here

      player.sendPacket(SystemMsg.WAITING_FOR_ANOTHER_REPLY);
      return;
    }
    if (targetPlayer.isProcessingRequest())
    {
      player.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ON_ANOTHER_TASK).addName(targetPlayer));
      return;
    }
    if (targetPlayer.getMatchingRoom() != null)
    {
      return;
    }
    MatchingRoom room = player.getMatchingRoom();
    if ((room == null) || (room.getType() != MatchingRoom.PARTY_MATCHING))
    {
      return;
    }
    if (room.getLeader() != player)
    {
      player.sendPacket(SystemMsg.ONLY_A_ROOM_LEADER_MAY_INVITE_OTHERS_TO_A_PARTY_ROOM);
      return;
    }
    if (room.getPlayers().size() >= room.getMaxMembersSize())
    {
      player.sendPacket(SystemMsg.THE_PARTY_ROOM_IS_FULL);
      return;
    }
    new Request(L2RequestType.PARTY_ROOM, player, targetPlayer).setTimeout(10000L);
    targetPlayer.sendPacket(new ExAskJoinPartyRoom(player.getName(), room.getTopic()));
    player.sendPacket(new SystemMessage2(SystemMsg.S1_HAS_SENT_AN_INVITATION_TO_ROOM_S2).addName(player).addString(room.getTopic()));
    targetPlayer.sendPacket(new SystemMessage2(SystemMsg.S1_HAS_SENT_AN_INVITATION_TO_ROOM_S2).addName(player).addString(room.getTopic()));
  }
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if (target.isBusy())
    {
      activeChar.sendPacket(new SystemMessage2(SystemMsg.C1_IS_ON_ANOTHER_TASK).addName(target));
      return;
    }
    IStaticPacket problem = target.canJoinParty(activeChar);
    if (problem != null)
    {
      activeChar.sendPacket(problem);
      return;
    }
    if (activeChar.isInParty())
    {
      if (activeChar.getParty().getMemberCount() >= Party.MAX_SIZE)
      {
        activeChar.sendPacket(SystemMsg.THE_PARTY_IS_FULL);
        return;
      }
      if (Config.PARTY_LEADER_ONLY_CAN_INVITE && !activeChar.getParty().isLeader(activeChar))
      {
        activeChar.sendPacket(SystemMsg.ONLY_THE_LEADER_CAN_GIVE_OUT_INVITATIONS);
        return;
      }
    }
    new Request(L2RequestType.PARTY, activeChar, target).setTimeout(10000L).set("itemDistribution", _itemDistribution);
    target.sendPacket(new AskJoinParty(activeChar.getName(), _itemDistribution));
    activeChar.sendPacket(new SystemMessage2(SystemMsg.C1_HAS_BEEN_INVITED_TO_THE_PARTY).addName(target));
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.SystemMessage2

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.