Examples of startRespawn()


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

        npcSpawn.setHeading(_witchSpawn._heading);
        npcSpawn.setAmount(1);
        npcSpawn.setRespawnDelay(1);

        // 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)
View Full Code Here

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

          npcSpawn.setHeading(Rnd.nextInt(65536));
          npcSpawn.setAmount(1);
          npcSpawn.setRespawnDelay(respawnDelay);

          // 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,
View Full Code Here

Examples of l2p.gameserver.model.L2Spawn.startRespawn()

          L2Spawn sp = s.clone();
          sp.setReflection(_id);
          addSpawn(sp);
          if(!isBossRoom)
          {
            sp.startRespawn();
          }
          for(int i = 0; i < sp.getAmount(); i++)
          {
            sp.doSpawn(true);
          }
View Full Code Here

Examples of l2p.gameserver.model.L2Spawn.startRespawn()

        npcSpawn.setReflection(_id);
        npcSpawn.setLoc(currSpawn.loc);
        npcSpawn.setHeading(Rnd.get(65536));
        npcSpawn.setAmount(1);
        npcSpawn.setRespawnDelay(respawnDelay);
        npcSpawn.startRespawn();
        L2FestivalMonsterInstance festivalMob = (L2FestivalMonsterInstance) npcSpawn.doSpawn(true);
        // 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)
        {
          festivalMob.setOfferingBonus(2);
View Full Code Here

Examples of l2p.gameserver.model.L2Spawn.startRespawn()

                          spawnDat.setLocation(locId);
                          spawnDat.setRespawnDelay(respawn, respawnRnd);
                          spawnDat.setAmount(count);
                          if(respawn > 0)
                          {
                            spawnDat.startRespawn();
                          }
                          _instancedZones.get(instanceId).get(roomId).getSpawnsInfo().add(new SpawnInfo(locId, spawnDat, spawnType));
                          countGood++;
                          try
                          {
View Full Code Here

Examples of l2p.gameserver.model.L2Spawn.startRespawn()

          spawnDat.setHeading(Integer.parseInt(st.nextToken()));
        }
        spawnDat.setRespawnDelay(respawn);
        if(respawn > 0)
        {
          spawnDat.startRespawn();
        }
        spawnDat.setReflection(0);
        if(npc.isRaid)
        {
          RaidBossSpawnManager.getInstance().addNewSpawn(spawnDat);
View Full Code Here

Examples of lineage2.gameserver.model.SimpleSpawner.startRespawn()

            spawnDat.setReflection(ReflectionManager.DEFAULT);
            spawnDat.setRespawnDelay(hbsi.getRespawn(), hbsi.getRespawnRnd());
            spawnDat.setRespawnTime(0);
            spawnDat.doSpawn(true);
            spawnDat.getLastSpawn().addListener(_deathListener);
            spawnDat.startRespawn();
            _spawnList.add(spawnDat);
          }
        }
        catch (Exception e)
        {
View Full Code Here

Examples of lineage2.gameserver.model.SimpleSpawner.startRespawn()

    sp.setLoc(randomOffset > 0 ? Location.findPointToStay(loc, 0, randomOffset, getGeoIndex()) : loc);
    sp.setReflection(this);
    sp.setAmount(1);
    sp.setRespawnDelay(respawnDelay);
    sp.doSpawn(true);
    sp.startRespawn();
    return sp.getLastSpawn();
  }
 
  /**
   * Method isDefault.
View Full Code Here

Examples of lineage2.gameserver.model.SimpleSpawner.startRespawn()

          SimpleSpawner sp = s.clone();
          sp.setReflection(DelusionChamber.this);
          addSpawn(sp);
          if (!isBossRoom)
          {
            sp.startRespawn();
          }
          for (int i = 0; i < sp.getAmount(); i++)
          {
            sp.doSpawn(true);
          }
View Full Code Here

Examples of lineage2.gameserver.model.SimpleSpawner.startRespawn()

            {
              c.stopRespawn();
            }
            else
            {
              c.startRespawn();
            }
            addSpawn(c);
          }
          break;
        case 1:
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.