Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.DeleteObject


   */
  @Override
  public List<L2GameServerPacket> deletePacketList()
  {
    List<L2GameServerPacket> list = new ArrayList<>(2);
    list.add(new DeleteObject(_controlKey));
    list.add(new DeleteObject(this));
    return list;
  }
View Full Code Here


   * Method deletePacketList.
   * @return List<L2GameServerPacket>
   */
  public List<L2GameServerPacket> deletePacketList()
  {
    return Collections.<L2GameServerPacket> singletonList(new DeleteObject(this));
  }
View Full Code Here

    {
      NpcInstance obj;
      for (int i = 0; i < 8; i++)
      {
        obj = MonsterRace.getInstance().getMonsters()[i];
        activeChar.broadcastPacket(new DeleteObject(obj));
      }
      state = -1;
    }
View Full Code Here

   */
  public void removeKnownPlayer(Player player)
  {
    for (int i = 0; i < 8; i++)
    {
      player.sendPacket(new DeleteObject(MonsterRace.getInstance().getMonsters()[i]));
    }
  }
View Full Code Here

      makeAnnouncement(SystemMessage.MONSTER_RACE_S1_IS_FINISHED);
      _raceNumber++;
      ServerVariables.set("monster_race", _raceNumber);
      for (int i = 0; i < 8; i++)
      {
        broadcast(new DeleteObject(MonsterRace.getInstance().getMonsters()[i]));
      }
    }
View Full Code Here

  public void onShutdown()
  {}
 
  public void broadcastPacket(int value, boolean b)
  {
    L2GameServerPacket trigger = new EventTrigger(value, b);
    for (Player player : GameObjectsStorage.getAllPlayersForIterate())
      player.sendPacket(trigger);

  }
View Full Code Here

  }
 
  public void broadcastSend(Castle castle)
  {
    L2GameServerPacket trigger = new ExCastleState(castle);
    for (Player player : GameObjectsStorage.getAllPlayersForIterate())
      player.sendPacket(trigger);

  }
View Full Code Here

      if (castle != null)
      { 
        if(_side.ordinal()==1 || _side.ordinal()==0)
        {
        ((Player) cha).sendPacket(new ExCastleState(castle));
        broadcastPacket(_side.ordinal(),true);
        broadcastSend(castle);
        Announcements.getInstance().announceToAll(new ExCastleState(castle));
        //broadcastPacket(_side.ordinal(),false);
        }
        else
        {
        ((Player) cha).sendPacket(new ExCastleState(castle));
        broadcastPacket(_side.ordinal(),true);
        broadcastSend(castle);
        Announcements.getInstance().announceToAll(new ExCastleState(castle));
        //broadcastPacket(_side.ordinal(),false);
        }
       
        //return;
      }
View Full Code Here

  @Override
  public void onPlayerEnter(Player player)
  {
    super.onPlayerEnter(player);
    player.sendPacket(new ExSendUIEvent(player, 0, 1, (int) (System.currentTimeMillis() - _savedTime) / 1000, 0, NpcString.NONE));
  }
View Full Code Here

  @Override
  public void onPlayerExit(Player player)
  {
    super.onPlayerExit(player);
    player.sendPacket(new ExSendUIEvent(player, 1, 1, 0, 0));
  }
View Full Code Here

TOP

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

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.