Package l2p.gameserver.instancemanager.DimensionalRiftManager

Examples of l2p.gameserver.instancemanager.DimensionalRiftManager.DimensionalRiftRoom


    if(spawnTimer != null)
    {
      spawnTimer.cancel();
      spawnTimer = null;
    }
    final DimensionalRiftRoom riftRoom = DimensionalRiftManager.getInstance().getRoom(_roomType, room);
    spawnTimer = new Timer();
    spawnTimerTask = new TimerTask()
    {
      @Override
      public void run()
      {
        for(L2Spawn s : riftRoom.getSpawns())
        {
          L2Spawn sp = s.clone();
          sp.setReflection(_id);
          addSpawn(sp);
          if(!isBossRoom)
          {
            sp.startRespawn();
          }
          for(int i = 0; i < sp.getAmount(); i++)
          {
            sp.doSpawn(true);
          }
        }
        Quest.addSpawnToInstance(getManagerId(), riftRoom.getTeleportCoords(), 0, _id);
      }
    };
    spawnTimer.schedule(spawnTimerTask, Config.RIFT_SPAWN_DELAY);
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.instancemanager.DimensionalRiftManager.DimensionalRiftRoom

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.