Examples of stopRespawn()


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

    try
    {
      L2Spawn spawn1 = new L2Spawn(NpcTable.getTemplate(TELEPORTATION_CUBIC_ID));
      spawn1.setLoc(CUBIC_1_POSITION);
      spawn1.doSpawn(true);
      spawn1.stopRespawn();
      L2Spawn spawn2 = new L2Spawn(NpcTable.getTemplate(TELEPORTATION_CUBIC_ID));
      spawn2.setLoc(CUBIC_2_POSITION);
      spawn2.doSpawn(true);
      spawn2.stopRespawn();
      ThreadPoolManager.getInstance().scheduleAi(new DeSpawnScheduleTimerTask(spawn1, spawn2), CUBIC_DESPAWN_TIME, false);
View Full Code Here

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

      spawn1.doSpawn(true);
      spawn1.stopRespawn();
      L2Spawn spawn2 = new L2Spawn(NpcTable.getTemplate(TELEPORTATION_CUBIC_ID));
      spawn2.setLoc(CUBIC_2_POSITION);
      spawn2.doSpawn(true);
      spawn2.stopRespawn();
      ThreadPoolManager.getInstance().scheduleAi(new DeSpawnScheduleTimerTask(spawn1, spawn2), CUBIC_DESPAWN_TIME, false);
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

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

      tempSpawn.setLocy(-114842);
      tempSpawn.setLocz(-1632);
      //tempSpawn.setHeading(22106);
      tempSpawn.setHeading(833);
      tempSpawn.setAmount(1);
      tempSpawn.stopRespawn();
      _monsterSpawn.put(Valakas, tempSpawn);
      // Dummy Valakas.
      template1 = NpcTable.getTemplate(ValakasDummy);
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(212852);
View Full Code Here

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

      tempSpawn.setLocy(-114842);
      tempSpawn.setLocz(-1632);
      //tempSpawn.setHeading(22106);
      tempSpawn.setHeading(833);
      tempSpawn.setAmount(1);
      tempSpawn.stopRespawn();
      _monsterSpawn.put(ValakasDummy, tempSpawn);
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

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

      spawn.setRespawnDelay(respawnTime);
      spawn.setReflection(activeChar.getReflection().getId());
      spawn.init();
      if(respawnTime == 0)
      {
        spawn.stopRespawn();
      }
      activeChar.sendMessage("Created " + template.name + " on " + target.getObjectId() + ".");
    }
    catch(Exception e)
    {
View Full Code Here

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

          L2NpcInstance target = (L2NpcInstance) obj;
          target.deleteMe();
          L2Spawn spawn = target.getSpawn();
          if(spawn != null)
          {
            spawn.stopRespawn();
          }
        }
        else
        {
          activeChar.sendPacket(Msg.INVALID_TARGET);
View Full Code Here

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

        {
          SimpleSpawner spawn = new SimpleSpawner(npcId);
          spawn.setTerritory(zone.getTerritory());
          spawn.setAmount(1);
          spawn.setReflection(player.getReflection());
          spawn.stopRespawn();
          NpcInstance mob = spawn.doSpawn(true);
          if (mob != null)
          {
            ThreadPoolManager.getInstance().schedule(new UnSpawnTask(spawn), despawn * 1000L);
            if (mob.isAggressive() && attackOnSpawn)
View Full Code Here

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

      try
      {
        final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(MysteriousAgent));
        sp.setLoc(new Location(-11984, 278880, -13599, -4472));
        sp.doSpawn(true);
        sp.stopRespawn();
        ThreadPoolManager.getInstance().schedule(new Unspawn(), 600 * 1000L);
      }
      catch (Exception e)
      {
        e.printStackTrace();
View Full Code Here

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

          {
            actor.getLoc();
            SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(element));
            sp.setLoc(Location.findPointToStay(actor, 150, 350));
            sp.doSpawn(true);
            sp.stopRespawn();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
View Full Code Here

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

          {
            actor.getLoc();
            SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(element));
            sp.setLoc(Location.findPointToStay(actor, 150, 350));
            sp.doSpawn(true);
            sp.stopRespawn();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
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.