Package net.sf.l2j.gameserver.serverpackets

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


    // 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

    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

    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, x, y, z));
    }
View Full Code Here

    public void removeAllMarkers()
    {
        // TODO: Need method to remove all markers from radar at once
        for (RadarMarker tempMarker : _markers)
            _player.sendPacket(new RadarControl(1, tempMarker._type, tempMarker._x, tempMarker._y, tempMarker._z));

        _markers.removeAllElements();
    }
View Full Code Here

    final L2PcInstance activeChar = (L2PcInstance)playable;
    final int itemId=item.getItemId();
    if (itemId == 7063 )
    {
      activeChar.sendPacket(new ShowMiniMap(1665));
      activeChar.sendPacket(new RadarControl(0, 1, 51995, -51265, -3104));
    }
    else 
      activeChar.sendPacket(new ShowMiniMap(itemId));
    return;
  }
View Full Code Here

                try
                {
                    L2Spawn spawn = SpawnTable.getInstance().getTemplate(Integer.parseInt(command.substring(12).trim()));
                   
                    if(spawn!=null)
                        player.sendPacket(new RadarControl(0,1,spawn.getLocx(),spawn.getLocy(),spawn.getLocz()));
                } catch (NumberFormatException nfe)
                {
                    player.sendMessage("Wrong command parameters");
                }
            }
View Full Code Here

TOP

Related Classes of net.sf.l2j.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.