Package l2p.gameserver.model

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


      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

      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

      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

      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

          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

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

        activeChar.sendMessage("Incorrect monster template.");
        return;
      }
      int respawnTime = spawn.getRespawnDelay();
      target.deleteMe();
      spawn.stopRespawn();
      try
      {
        // L2MonsterInstance mob = new L2MonsterInstance(monsterTemplate,
        // template1);
        spawn = new L2Spawn(template1);
View Full Code Here

      L2Spawn spawn = new L2Spawn(template);
      spawn.setLoc(loc);
      spawn.setReflection(_effected.getReflection().getId());
      spawn.setAmount(1);
      spawn.init();
      spawn.stopRespawn();
      _symbol = spawn.getLastSpawn();
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

      e.printStackTrace();
      return null;
    }
    spawn.setLoc(loc);
    L2NpcInstance npc = spawn.doSpawn(true);
    spawn.stopRespawn();
    return npc;
  }

  public void giveHallishaMark(QuestState st2)
  {
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.