Examples of RadarControl


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

Examples of lineage2.gameserver.network.serverpackets.RadarControl

        {
          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

Examples of lineage2.gameserver.network.serverpackets.RadarControl

    }
    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

Examples of lineage2.gameserver.network.serverpackets.RadarControl

      {
        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

Examples of lineage2.gameserver.network.serverpackets.RadarControl

        {
          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

Examples of lineage2.gameserver.network.serverpackets.RadarControl

   * @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

Examples of lineage2.gameserver.network.serverpackets.RadarControl

   * @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

Examples of net.sf.l2j.gameserver.serverpackets.RadarControl

                switch (RaidBossSpawnManager.getInstance().getRaidBossStatusId(bossId))
                {
                    case ALIVE:
                    case DEAD:
                        L2Spawn spawn = RaidBossSpawnManager.getInstance().getSpawns().get(bossId);
                        player.sendPacket(new RadarControl(0, 1, spawn.getLocx(), spawn.getLocy(),
                                                           spawn.getLocz()));
                        break;
                    case UNDEFINED:
                        player.sendMessage("This Boss isn't in game - notify L2J Datapack Dev Team");
                        break;
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.RadarControl

    // Quest item: Lidia's diary
    if (itemId == 7064 )
    {
      activeChar.sendPacket(new ShowMiniMap(1665));
      activeChar.sendPacket(new RadarControl(0, 1, 51995, -51265, -3104));
    }

    if (content == null)
    {
      NpcHtmlMessage html = new NpcHtmlMessage(1);
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.RadarControl

    public void addMarker(int x, int y, int z)
    {
        RadarMarker newMarker = new RadarMarker(x, y, z);

        _markers.add(newMarker);
        _player.sendPacket(new RadarControl(0, 1, x, y, z));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.