Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.RadarControl


    String htmltext = event;
    Player player = st.getPlayer();
    QuestState qs = player.getQuestState(_10273_GoodDayToFly.class);
    if ((qs == null) || (qs.getState() != COMPLETED))
    {
      player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
      player.sendPacket(new RadarControl(0, 2, -184545, 243120, 1581));
      htmltext = "32627.htm";
    }
    else if (event.equalsIgnoreCase("32627-3.htm"))
    {
      player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
      player.sendPacket(new RadarControl(0, 2, -192361, 254528, 3598));
    }
    else if (event.equalsIgnoreCase("32627-4.htm"))
    {
      player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
      player.sendPacket(new RadarControl(0, 2, -174600, 219711, 4424));
    }
    else if (event.equalsIgnoreCase("32627-5.htm"))
    {
      player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
      player.sendPacket(new RadarControl(0, 2, -181989, 208968, 4424));
    }
    else if (event.equalsIgnoreCase("32627-6.htm"))
    {
      player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
      player.sendPacket(new RadarControl(0, 2, -252898, 235845, 5343));
    }
    else if (event.equalsIgnoreCase("32627-8.htm"))
    {
      player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
      player.sendPacket(new RadarControl(0, 2, -212819, 209813, 4288));
    }
    else if (event.equalsIgnoreCase("32627-9.htm"))
    {
      player.sendPacket(new RadarControl(2, 2, 0, 0, 0));
      player.sendPacket(new RadarControl(0, 2, -246899, 251918, 4352));
    }
    return htmltext;
  }
View Full Code Here


        {
          case ALIVE:
          case DEAD:
            Spawner spawn = RaidBossSpawnManager.getInstance().getSpawnTable().get(bossId);
            Location loc = spawn.getCurrentSpawnRange().getRandomLoc(spawn.getReflection().getGeoIndex());
            player.sendPacket(new RadarControl(2, 2, loc), new RadarControl(0, 1, loc));
            break;
          case UNDEFINED:
            player.sendMessage(new CustomMessage("lineage2.gameserver.model.instances.L2AdventurerInstance.BossNotInGame", player).addNumber(bossId));
            break;
        }
View Full Code Here

    }
    final Player activeChar = (Player) playable;
    Functions.show("help/" + item.getItemId() + ".htm", activeChar, null);
    if (item.getItemId() == 7063)
    {
      activeChar.sendPacket(new RadarControl(0, 2, new Location(51995, -51265, -3104)));
    }
    activeChar.sendActionFailed();
    return true;
  }
View Full Code Here

      {
        int val = Integer.parseInt(command.substring(16));
        NpcInstance npc = GameObjectsStorage.getByNpcId(val);
        if (npc != null)
        {
          player.sendPacket(new RadarControl(2, 2, npc.getLoc()));
          player.sendPacket(new RadarControl(0, 1, npc.getLoc()));
        }
      }
      else if (command.startsWith("Multisell") || command.startsWith("multisell"))
      {
        String listId = command.substring(9).trim();
View Full Code Here

        {
          st.takeItems(ARK_OWNERS.get(npcId)[0], 1);

          htmltext = ARK_OWNERS_TEXT.get(npcId)[0];

          st.getPlayer().sendPacket(new RadarControl(0, 1, ARK_OWNERS.get(npcId)[2], ARK_OWNERS.get(npcId)[3], ARK_OWNERS.get(npcId)[4]));
        }
        // do not have letter and do not have the item
        else if(st.getQuestItemsCount(ARK_OWNERS.get(npcId)[1]) < 1)
        {
          htmltext = ARK_OWNERS_TEXT.get(npcId)[1];

          st.getPlayer().sendPacket(new RadarControl(0, 1, ARK_OWNERS.get(npcId)[2], ARK_OWNERS.get(npcId)[3], ARK_OWNERS.get(npcId)[4]));
        }
        else
        // have the item (done)
        {
          htmltext = ARK_OWNERS_TEXT.get(npcId)[2];
View Full Code Here

   * @param y int
   * @param z int
   */
  public void addRadar(int x, int y, int z)
  {
    sendPacket(new RadarControl(0, 1, x, y, z));
  }
View Full Code Here

   * @param y int
   * @param z int
   */
  public void addRadarWithMap(int x, int y, int z)
  {
    sendPacket(new RadarControl(0, 2, x, y, z));
  }
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.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.