Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.RadarControl


        effect.get(0).exit();
      }
      skill.getEffects(actor, player, false, false);
      if (animation)
      {
        actor.broadcastPacket(new MagicSkillUse(actor, player, skill.getId(), skill.getLevel(), skill.getHitTime(), 0));
      }
    }
  }
View Full Code Here


      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)
        {
          player.setTarget(null);
          player.setTarget(actor);
          player.sendPacket(su);
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

    {
      return false;
    }
    if ((friend.getParty() == activeChar.getParty()) || (friend.getClan() == activeChar.getClan()))
    {
      RadarControl rc = new RadarControl(0, 1, friend.getLoc());
      activeChar.sendPacket(rc);
      return true;
    }
    return false;
  }
View Full Code Here

      st.setState(STARTED);
    }
    else if (event.equalsIgnoreCase("loc1"))
    {
      htmltext = "droph_q307_2a_1.htm";
      RadarControl rc = new RadarControl(0, 1, GorgolosLoc);
      st.getPlayer().sendPacket(rc);
    }
    else if (event.equalsIgnoreCase("loc2"))
    {
      htmltext = "droph_q307_2a_2.htm";
      RadarControl rc = new RadarControl(0, 1, LastTitanUtenusLoc);
      st.getPlayer().sendPacket(rc);
    }
    else if (event.equalsIgnoreCase("loc3"))
    {
      htmltext = "droph_q307_2a_3.htm";
      RadarControl rc = new RadarControl(0, 1, GiantMarpanakLoc);
      st.getPlayer().sendPacket(rc);
    }
    else if (event.equalsIgnoreCase("summon_rb"))
    {
      if ((ServerVariables.getLong("HekatonPrimeRespawn", 0) < System.currentTimeMillis()) && (st.getQuestItemsCount(CaveExplorationText1Sheet) >= 1) && (st.getQuestItemsCount(CaveExplorationText2Sheet) >= 1) && (st.getQuestItemsCount(CaveExplorationText3Sheet) >= 1))
View Full Code Here

    {
      return;
    }
    if (_snowman != null)
    {
      player.sendPacket(new RadarControl(2, 2, _snowman.getLoc()), new RadarControl(0, 1, _snowman.getLoc()));
      player.sendPacket(new SystemMessage(SystemMessage.S2_S1).addZoneName(_snowman.getLoc()).addString("�?щите Снеговика в "));
    }
    else
    {
      player.sendPacket(Msg.YOUR_TARGET_CANNOT_BE_FOUND);
View Full Code Here

    Location spawnPoint = getRandomSpawnPoint();
    for (Player player : GameObjectsStorage.getAllPlayersForIterate())
    {
      Announcements.getInstance().announceToPlayerByCustomMessage(player, "scripts.events.SavingSnowman.AnnounceSnowmanCaptured", null, ChatType.CRITICAL_ANNOUNCE);
      player.sendPacket(new SystemMessage(SystemMessage.S2_S1).addZoneName(spawnPoint).addString("�?щите Снеговика в "));
      player.sendPacket(new RadarControl(2, 2, spawnPoint), new RadarControl(0, 1, spawnPoint));
    }
    NpcTemplate template = NpcHolder.getInstance().getTemplate(SNOWMAN_ID);
    if (template == null)
    {
      System.out.println("WARNING! events.SavingSnowman.captureSnowman template is null for npc: " + SNOWMAN_ID);
View Full Code Here

      show("Caution, price or item was changed, please be careful !", player, npc);
    }
    ExShowTrace trace = new ExShowTrace();
    trace.addLine(item.player, item.player, 30, 60000);
    player.sendPacket(trace);
    RadarControl rc = new RadarControl(0, 1, item.player);
    player.sendPacket(rc);
    if (player.getVarB(Player.NO_TRADERS_VAR))
    {
      player.sendPacket(new CharInfo(trader));
      if (trader.getPrivateStoreType() == Player.STORE_PRIVATE_BUY)
View Full Code Here

    {
      int objectId = Integer.parseInt(st.nextToken());
      Player seller = World.getPlayer(objectId);
      if (seller != null)
      {
        player.sendPacket(new RadarControl(0, 2, seller.getLoc()));
        if (player.knowsObject(seller))
        {
          player.setTarget(seller);
          seller.broadcastRelationChanged();
        }
View Full Code Here

    NpcInstance npc = GameObjectsStorage.getByNpcId(val);
    if (npc == null)
    {
      return "";
    }
    player.sendPacket(new RadarControl(2, 1, npc.getLoc()));
    player.sendPacket(new RadarControl(0, 2, npc.getLoc()));
    return npc.getName();
  }
View Full Code Here

TOP

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

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.