Package lineage2.gameserver.model

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


      SimpleSpawner sp = new SimpleSpawner(template);
      sp.setLocx(element[0]);
      sp.setLocy(element[1]);
      sp.setLocz(element[2]);
      sp.setHeading(element[3]);
      NpcInstance npc = sp.doSpawn(true);
      npc.setName("Arena 3");
      npc.setTitle("TvT Event");
      _spawns.add(npc);
    }
  }
View Full Code Here


    {
      final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(eliteMillipede));
      sp.setLoc(Location.findPointToStay(actor, 100, 120));
      for (int i = 0; i == 2; i++)
      {
        NpcInstance npc = sp.doSpawn(true);
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, actor.getAggroList().getMostHated(), Rnd.get(1, 100));
      }
      _eliteSpawned = true;
    }
    super.thinkAttack();
View Full Code Here

        try
        {
          SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(18493));
          sp.setLoc(Location.findPointToStay(actor, 150, 250));
          sp.setReflection(actor.getReflection());
          sp.doSpawn(true);
          sp.stopRespawn();
        }
        catch (Exception e)
        {
          e.printStackTrace();
View Full Code Here

    {
      try
      {
        SimpleSpawner sp = new SimpleSpawner(mobId);
        sp.setLoc(Territory.getRandomLoc(territory).setH(Rnd.get(65535)));
        sp.doSpawn(true);
        sp.stopRespawn();
        _roomMobList.add(sp.getLastSpawn());
      }
      catch (Exception e)
      {
View Full Code Here

  {
    try
    {
      SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(mobId));
      sp.setLoc(loc);
      sp.doSpawn(true);
      sp.stopRespawn();
      _roomMobList.add(sp.getLastSpawn());
    }
    catch (Exception e)
    {
View Full Code Here

    {
      return false;
    }
    final SimpleSpawner spawn = new SimpleSpawner(template);
    spawn.setLoc(Location.findPointToStay(activeChar, 30, 70));
    final NpcInstance npc = spawn.doSpawn(true);
    npc.setAI(new MeleonAI(npc));
    ((MeleonInstance) npc).setSpawner(activeChar);
    ThreadPoolManager.getInstance().schedule(new DeSpawnScheduleTimerTask(spawn), 180000);
    return true;
  }
View Full Code Here

            c = new SimpleSpawner(s.getNpcId());
            c.setReflection(this);
            c.setRespawnDelay(s.getRespawnDelay(), s.getRespawnRnd());
            c.setAmount(s.getCount());
            c.setLoc(loc);
            c.doSpawn(true);
            if (s.getRespawnDelay() == 0)
            {
              c.stopRespawn();
            }
            else
View Full Code Here

          c = new SimpleSpawner(s.getNpcId());
          c.setReflection(this);
          c.setRespawnDelay(s.getRespawnDelay(), s.getRespawnRnd());
          c.setAmount(1);
          c.setLoc(s.getCoords().get(Rnd.get(s.getCoords().size())));
          c.doSpawn(true);
          if (s.getRespawnDelay() == 0)
          {
            c.stopRespawn();
          }
          else
View Full Code Here

          c.setRespawnDelay(s.getRespawnDelay(), s.getRespawnRnd());
          c.setAmount(s.getCount());
          c.setTerritory(s.getLoc());
          for (int j = 0; j < s.getCount(); j++)
          {
            c.doSpawn(true);
          }
          if (s.getRespawnDelay() == 0)
          {
            c.stopRespawn();
          }
View Full Code Here

      SimpleSpawner spawn = null;
      try
      {
        spawn = new SimpleSpawner(NpcHolder.getInstance().getTemplate(_npcId));
        spawn.setLoc(actor.getLoc());
        final NpcInstance npc = spawn.doSpawn(true);
        npc.setAI(new MeleonAI(npc));
        ((MeleonInstance) npc).setSpawner(actor.getSpawner());
      }
      catch (Exception e)
      {
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.