Package lineage2.gameserver.model

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


      {
        SimpleSpawner sp = new SimpleSpawner(mobId);
        sp.setLoc(Territory.getRandomLoc(territory).setH(Rnd.get(65535)));
        sp.setRespawnDelay(respawnDelay, 30);
        sp.setAmount(1);
        sp.doSpawn(true);
        sp.startRespawn();
      }
      catch (Exception e)
      {
        e.printStackTrace();
View Full Code Here


      {
        try
        {
          SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(MOBS));
          sp.setLoc(Location.findPointToStay(actor, 100, 120));
          NpcInstance npc = sp.doSpawn(true);
          if (caster.isPet() || caster.isServitor())
          {
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster, Rnd.get(2, 100));
          }
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster.getPlayer(), Rnd.get(1, 100));
View Full Code Here

      {
        try
        {
          SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(MOBS));
          sp.setLoc(Location.findPointToStay(actor, 100, 120));
          NpcInstance npc = sp.doSpawn(true);
          if (caster.isPet() || caster.isServitor())
          {
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster, Rnd.get(2, 100));
          }
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster.getPlayer(), Rnd.get(1, 100));
View Full Code Here

    NpcTemplate template = NpcHolder.getInstance().getTemplate(MAMMON_PRIEST_ID);
    SimpleSpawner sp = new SimpleSpawner(template);
    sp.setLoc(MAMMON_PRIEST_POINTS[firstTown]);
    sp.setAmount(1);
    sp.setRespawnDelay(0);
    PriestNpc = sp.doSpawn(true);
    template = NpcHolder.getInstance().getTemplate(MAMMON_MERCHANT_ID);
    sp = new SimpleSpawner(template);
    sp.setLoc(MAMMON_MERCHANT_POINTS[firstTown]);
    sp.setAmount(1);
    sp.setRespawnDelay(0);
View Full Code Here

    template = NpcHolder.getInstance().getTemplate(MAMMON_MERCHANT_ID);
    sp = new SimpleSpawner(template);
    sp.setLoc(MAMMON_MERCHANT_POINTS[firstTown]);
    sp.setAmount(1);
    sp.setRespawnDelay(0);
    MerchantNpc = sp.doSpawn(true);
    template = NpcHolder.getInstance().getTemplate(MAMMON_BLACKSMITH_ID);
    sp = new SimpleSpawner(template);
    sp.setLoc(MAMMON_BLACKSMITH_POINTS[firstTown]);
    sp.setAmount(1);
    sp.setRespawnDelay(0);
View Full Code Here

    template = NpcHolder.getInstance().getTemplate(MAMMON_BLACKSMITH_ID);
    sp = new SimpleSpawner(template);
    sp.setLoc(MAMMON_BLACKSMITH_POINTS[firstTown]);
    sp.setAmount(1);
    sp.setRespawnDelay(0);
    BlacksmithNpc = sp.doSpawn(true);
  }
 
  /**
   * @author Mobius
   */
 
View Full Code Here

      try
      {
        SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(MOB));
        sp.setLoc(Location.findPointToStay(actor, 100, 120));
        sp.setReflection(actor.getReflection());
        NpcInstance npc = sp.doSpawn(true);
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
      }
      catch (Exception e)
      {
        e.printStackTrace();
View Full Code Here

    {
      try
      {
        final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(TeleportCube));
        sp.setLoc(new Location(-12527, 279714, -11622, 16384));
        sp.doSpawn(true);
        sp.stopRespawn();
        ThreadPoolManager.getInstance().schedule(new Unspawn(), 600 * 1000L);
      }
      catch (Exception e)
      {
View Full Code Here

    {
      try
      {
        SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(32371));
        sp.setLoc(element);
        sp.doSpawn(true);
        if (!s)
        {
          Functions.npcShout(sp.getLastSpawn(), "Self Destruction mechanism launched: 10 minutes to explosion");
          s = true;
        }
View Full Code Here

    {
      try
      {
        SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(22392));
        sp.setLoc(element);
        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.