Package lineage2.gameserver.model

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


  @Override
  protected void onEvtDead(Creature killer)
  {
    final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(teredorLarva));
    sp.setLoc(Location.findPointToStay(actor, 100, 120));
    sp.doSpawn(true);
    super.onEvtDead(killer);
  }
 
  /**
   * @author Mobius
View Full Code Here


    SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(npcId));
    sp.setLoc(randomOffset > 0 ? Location.findPointToStay(loc, 0, randomOffset, getGeoIndex()) : loc);
    sp.setReflection(this);
    sp.setAmount(1);
    sp.setRespawnDelay(respawnDelay);
    sp.doSpawn(true);
    sp.startRespawn();
    return sp.getLastSpawn();
  }
 
  /**
 
View Full Code Here

          {
            sp.startRespawn();
          }
          for (int i = 0; i < sp.getAmount(); i++)
          {
            sp.doSpawn(true);
          }
        }
        DelusionChamber.this.addSpawnWithoutRespawn(getManagerId(), riftRoom.getTeleportCoords(), 0);
      }
    }, 10000);
View Full Code Here

  {
    final SimpleSpawner sp = new SimpleSpawner(npcId);
    sp.setLocx(loc.x);
    sp.setLocy(loc.y);
    sp.setLocz(loc.z);
    final NpcInstance npc = sp.doSpawn(true);
    npc.setHeading(PositionUtils.calculateHeadingFrom(npc, killer));
    npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, killer, 1000);
  }
}
View Full Code Here

      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 2");
      npc.setTitle("TvT Event");
      _spawns.add(npc);
    }
  }
View Full Code Here

          spawn.setLocy(_arenaCoordinates[_arena][5] + Rnd.get(-400, 400));
          spawn.setLocz(_zCoord);
          spawn.setAmount(1);
          spawn.setHeading(1);
          spawn.setRespawnDelay(1);
          BlockInstance blockInstance = (BlockInstance) spawn.doSpawn(true);
          blockInstance.setRed((random % 2) == 0);
          _spawns.add(spawn);
          random++;
        }
      }
View Full Code Here

          girlSpawn.setLocy(_arenaCoordinates[_arena][5] + Rnd.get(-400, 400));
          girlSpawn.setLocz(_zCoord);
          girlSpawn.setAmount(1);
          girlSpawn.setHeading(1);
          girlSpawn.setRespawnDelay(1);
          girlSpawn.doSpawn(true);
          girlSpawn.init();
          _girlNpc = girlSpawn.getLastSpawn();
          ThreadPoolManager.getInstance().schedule(new RunnableImpl()
          {
            @Override
View Full Code Here

    }
    SimpleSpawner sp = new SimpleSpawner(template);
    sp.setLoc(spawnPoint);
    sp.setAmount(1);
    sp.setRespawnDelay(0);
    _snowman = sp.doSpawn(true);
    if (_snowman == null)
    {
      return;
    }
    template = NpcHolder.getInstance().getTemplate(THOMAS_ID);
View Full Code Here

    Location pos = Location.findPointToStay(_snowman, 100, 120);
    sp = new SimpleSpawner(template);
    sp.setLoc(pos);
    sp.setAmount(1);
    sp.setRespawnDelay(0);
    _thomas = sp.doSpawn(true);
    if (_thomas == null)
    {
      return;
    }
    _snowmanState = SnowmanState.CAPTURED;
View Full Code Here

      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 1");
      npc.setTitle("TvT Event");
      _spawns.add(npc);
    }
  }
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.