Package lineage2.gameserver.model

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


    }
    try
    {
      final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(32370));
      sp.setLoc(new Location(-11984, 272928, -9040, 23644));
      sp.doSpawn(true);
      removable_ghost = sp.getLastSpawn();
    }
    catch (Exception e)
    {
      e.printStackTrace();
View Full Code Here


    _npcBaium = NpcBaium;
    final SimpleSpawner baiumSpawn = _monsterSpawn.get(BAIUM);
    baiumSpawn.setLoc(_npcBaium.getLoc());
    _npcBaium.getSpawn().stopRespawn();
    _npcBaium.deleteMe();
    final BossInstance baium = (BossInstance) baiumSpawn.doSpawn(true);
    _monsters.add(baium);
    _state.setRespawnDate(getRespawnInterval());
    _state.setState(EpicBossState.State.ALIVE);
    _state.update();
    Log.add("Spawned Baium, awake by: " + awake_by, "bosses");
View Full Code Here

    {
      final NpcInstance actor = getActor();
      final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(_id));
      sp.setLoc(Location.findPointToStay(actor, 100, 120));
      sp.setRespawnDelay(30, 40);
      sp.doSpawn(true);
      spawns.add(sp);
    }
  }
 
  /**
 
View Full Code Here

    {
      try
      {
        SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(MOBS[Rnd.get(MOBS.length)]));
        sp.setLoc(Location.findPointToStay(actor, 100, 120));
        NpcInstance npc = sp.doSpawn(true);
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(1, 100));
      }
      catch (Exception e)
      {
        e.printStackTrace();
View Full Code Here

    final NpcInstance actor = getActor();
    try
    {
      final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(FAFURION));
      sp.setLoc(Location.findPointToStay(actor, 100, 120));
      sp.doSpawn(true);
    }
    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.