Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.RadarControl


        {
          case ALIVE:
          case DEAD:
            L2Spawn spawn = RaidBossSpawnManager.getInstance().getSpawnTable().get(bossId);
            // Убираем и ставим флажок на карте и стрелку на компасе
            player.sendPacket(new RadarControl(2, 2, spawn.getLoc()), new RadarControl(0, 1, spawn.getLoc()));
            break;
          case UNDEFINED:
            player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2AdventurerInstance.BossNotInGame", player).addNumber(bossId));
            break;
        }
View Full Code Here


  {
    if(!activeChar.isInParty())
    {
      return false;
    }
    RadarControl rc = new RadarControl(0, 1, activeChar.getLoc());
    for(L2Player p : activeChar.getParty().getPartyMembers())
    {
      if(p != activeChar)
      {
        p.sendPacket(rc);
View Full Code Here

  {
    if(activeChar.getClan() == null)
    {
      return false;
    }
    RadarControl rc = new RadarControl(0, 1, activeChar.getLoc());
    for(L2Player p : activeChar.getClan().getOnlineMembers(activeChar.getObjectId()))
    {
      p.sendPacket(rc);
    }
    return true;
View Full Code Here

    L2NpcInstance npc = L2ObjectsStorage.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

            } else if (command.startsWith("NpcLocationInfo")) {
                int val = Integer.parseInt(command.substring(16));
                L2NpcInstance npc = L2ObjectsStorage.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("SupportMagic")) {
                makeSupportMagic(player);
            } else if (command.startsWith("ProtectionBlessing")) {
                // Не выдаём блессиг протекшена ПКшникам.
View Full Code Here

    }
    L2Player activeChar = (L2Player) playable;
    Functions.show("data/html/help/" + item.getItemId() + ".htm", activeChar, null);
    if(item.getItemId() == 7063)
    {
      activeChar.sendPacket(new RadarControl(0, 2, new Location(51995, -51265, -3104)));
    }
    activeChar.sendActionFailed();
  }
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

    for(L2Player player : L2ObjectsStorage.getAllPlayersForIterate())
    {
      Announcements.getInstance().announceToPlayerByCustomMessage(player, "scripts.events.SavingSnowman.AnnounceSnowmanCaptured", null, Say2C.CRITICAL_ANNOUNCEMENT);
      player.sendPacket(new SystemMessage(SystemMessage.S2_S1).addZoneName(spawnPoint).addString("Ищите Снеговика в "));
      // Убираем и ставим флажок на карте и стрелку на компасе
      player.sendPacket(new RadarControl(2, 2, spawnPoint), new RadarControl(0, 1, spawnPoint));
    }
    // Спауним снеговика
    L2NpcTemplate template = NpcTable.getTemplate(SNOWMAN_ID);
    if(template == null)
    {
View Full Code Here

  // Add a marker to player's radar
  public void addMarker(int x, int y, int z)
  {
    RadarMarker newMarker = new RadarMarker(x, y, z);
    markers.add(newMarker);
    player.sendPacket(new RadarControl(2, 2, newMarker));
    player.sendPacket(new RadarControl(0, 1, newMarker));
  }
View Full Code Here

  // Remove a marker from player's radar
  public void removeMarker(int x, int y, int z)
  {
    RadarMarker newMarker = new RadarMarker(x, y, z);
    markers.remove(newMarker);
    player.sendPacket(new RadarControl(1, 1, newMarker));
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.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.