Package com.l2jfrozen.gameserver.model.spawn

Examples of com.l2jfrozen.gameserver.model.spawn.L2Spawn.doSpawn()


        // Needed as doSpawn() is required to be called also for the NpcInstance it returns.
        npcSpawn.startRespawn();

        SpawnTable.getInstance().addNewSpawn(npcSpawn, false);
        _witchInst = npcSpawn.doSpawn();

        if(Config.DEBUG)
        {
          _log.fine("SevenSignsFestival: Spawned the Festival Witch " + npcSpawn.getNpcid() + " at " + _witchSpawn._x + " " + _witchSpawn._y + " " + _witchSpawn._z);
        }
View Full Code Here


          // Needed as doSpawn() is required to be called also for the NpcInstance it returns.
          npcSpawn.startRespawn();

          SpawnTable.getInstance().addNewSpawn(npcSpawn, false);
          L2FestivalMonsterInstance festivalMob = (L2FestivalMonsterInstance) npcSpawn.doSpawn();

          // Set the offering bonus to 2x or 5x the amount per kill,
          // if this spawn is part of an increased challenge or is a festival chest.
          if(spawnType == 1)
          {
View Full Code Here

        spawn.setLocy(_fisher.GetFishy());
        spawn.setLocz(_fisher.GetFishz());
        spawn.setAmount(1);
        spawn.setHeading(_fisher.getHeading());
        spawn.stopRespawn();
        ((L2PenaltyMonsterInstance) spawn.doSpawn()).setPlayerToKill(_fisher);
        spawn = null;
      }
      catch(Exception e)
      {
        // Nothing
View Full Code Here

      return;

    L2Spawn spawnDat = _mysteriousBoxSpawns.get(npcId);
    if(spawnDat != null)
    {
      _allMobs.add(spawnDat.doSpawn());
      spawnDat.stopRespawn();
    }
    spawnDat = null;
  }
View Full Code Here

              keyBoxMobSpawn.setLocy(spawnDat.getLocy());
              keyBoxMobSpawn.setLocz(spawnDat.getLocz());
              keyBoxMobSpawn.setHeading(spawnDat.getHeading());
              keyBoxMobSpawn.setRespawnDelay(3600);
              SpawnTable.getInstance().addNewSpawn(keyBoxMobSpawn, false);
              mob = (L2SepulcherMonsterInstance) keyBoxMobSpawn.doSpawn();
              keyBoxMobSpawn.stopRespawn();
            }
            else
            {
              _log.warning("FourSepulchersManager.SpawnMonster: Data missing in NPC table for ID: 18149");
View Full Code Here

      spawnDat.setLocx(activeChar.getX());
      spawnDat.setLocy(activeChar.getY());
      spawnDat.setLocz(activeChar.getZ());
      spawnDat.setHeading(activeChar.getHeading());
      spawnDat.setRespawnDelay(3600);
      _allMobs.add(spawnDat.doSpawn());
      spawnDat.stopRespawn();

      spawnDat = null;
    }
  }
View Full Code Here

      spawnDat.setLocx(activeChar.getX());
      spawnDat.setLocy(activeChar.getY());
      spawnDat.setLocz(activeChar.getZ());
      spawnDat.setHeading(activeChar.getHeading());
      spawnDat.setRespawnDelay(3600);
      _allMobs.add(spawnDat.doSpawn());
      spawnDat.stopRespawn();

      spawnDat = null;
    }
  }
View Full Code Here

      return;

    L2Spawn spawnDat = _shadowSpawns.get(npcId);
    if(spawnDat != null)
    {
      L2SepulcherMonsterInstance mob = (L2SepulcherMonsterInstance) spawnDat.doSpawn();
      spawnDat.stopRespawn();

      if(mob != null)
      {
        mob.mysteriousBoxId = npcId;
View Full Code Here

          else
            npcId = 29067; // normal
         
          // Do spawn.
          antharasSpawn = _monsterSpawn.get(npcId);
          _antharas = (L2GrandBossInstance) antharasSpawn.doSpawn();
          GrandBossManager.getInstance().addBoss(_antharas);
         
          _monsters.add(_antharas);
          _antharas.setIsImobilised(true);
         
View Full Code Here

          tempSpawn.setHeading(0);
          tempSpawn.setAmount(1);
          tempSpawn.setRespawnDelay(FWA_ACTIVITYTIMEOFANTHARAS * 2);
          SpawnTable.getInstance().addNewSpawn(tempSpawn, false);
          // Do spawn.
          _monsters.add(tempSpawn.doSpawn());
        }
      }
      catch (Exception e)
      {
        _log.warning(e.getMessage());
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.