Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.NpcInfo


      {
        player.sendPacket(new PetInfo(this).update());
      }
      else
      {
        player.sendPacket(new NpcInfo(this, player).update());
      }
    }
  }
View Full Code Here


      Party party = forPlayer.getParty();
      if ((getReflection() == ReflectionManager.GIRAN_HARBOR) && ((owner == null) || (party == null) || (party != owner.getParty())))
      {
        return list;
      }
      list.add(new NpcInfo(this, forPlayer));
      if ((owner != null) && (party != null) && (party == owner.getParty()))
      {
        list.add(new PartySpelled(this, true));
      }
      list.add(RelationChanged.update(forPlayer, this, forPlayer));
View Full Code Here

  {
    if (!isDetected() && (getOwner() != forPlayer))
    {
      return Collections.emptyList();
    }
    return Collections.<L2GameServerPacket> singletonList(new NpcInfo(this, forPlayer));
  }
View Full Code Here

   */
  public void broadcastCharInfo()
  {
    for (Player player : World.getAroundPlayers(this))
    {
      player.sendPacket(new NpcInfo(this, player).update());
    }
  }
View Full Code Here

   */
  @Override
  public List<L2GameServerPacket> addPacketList(Player forPlayer, Creature dropper)
  {
    List<L2GameServerPacket> list = new ArrayList<L2GameServerPacket>(3);
    list.add(new NpcInfo(this, forPlayer));
    if (isInCombat())
    {
      list.add(new AutoAttackStart(getObjectId()));
    }
    if (isMoving || isFollow)
View Full Code Here

    {
      setTitle(owner.getName());
      owner.addTrainedBeast(this);
      for (Player player : World.getAroundPlayers(this))
      {
        player.sendPacket(new NpcInfo(this, player));
      }
      setFollowTarget(getPlayer());
      getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, owner, Config.FOLLOW_RANGE);
    }
    else
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, 0, actor.getLoc()));
    Functions.npcSay(actor, "A fatal error has occurred");
    Functions.npcSay(actor, "System is being shut down...");
    Functions.npcSay(actor, "......");
    try
    {
View Full Code Here

  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
View Full Code Here

          break;
        case 30:
        case 20:
        case 10:
        case 5:
          Announcements.getInstance().announceToAll(new SystemMessage(SystemMessage.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS__PLEASE_FIND_A_SAFE_PLACE_TO_LOG_OUT).addNumber(shutdownCounter));
          break;
        case 0:
          switch (shutdownMode)
          {
            case SHUTDOWN:
View Full Code Here

            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
            for(Player p : getPlayers())
            {
              p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
              p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            startCollapseTimer(5 * 60 * 1000L);
            timeSpent = (int) (System.currentTimeMillis() - _savedTime) / 1000;
          }
        }, 10000L);
View Full Code Here

TOP

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

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.