Examples of NpcTemplate


Examples of lineage2.gameserver.templates.npc.NpcTemplate

   * @return NpcInstance
   */
  static NpcInstance spawn(int npcId, int x, int y, int z, int h)
  {
    final Location loc = new Location(x, y, z);
    final NpcTemplate template = NpcHolder.getInstance().getTemplate(npcId);
    final NpcInstance npc = template.getNewInstance();
    npc.setSpawnedLoc(loc);
    npc.setLoc(loc);
    npc.setHeading(h);
    npc.spawnMe();
    return npc;
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

   * @param npcId int
   * @return NpcInstance
   */
  public static NpcInstance baylor_spawn(Location loc, int npcId)
  {
    final NpcTemplate template = NpcHolder.getInstance().getTemplate(npcId);
    final NpcInstance npc = template.getNewInstance();
    npc.setSpawnedLoc(loc);
    npc.setHeading(loc.h);
    npc.setLoc(loc);
    npc.setReflection(currentReflection);
    npc.spawnMe();
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    {
      e.printStackTrace();
    }
    try
    {
      final NpcTemplate Cube = NpcHolder.getInstance().getTemplate(TELEPORT_CUBE);
      _teleportCubeSpawn = new SimpleSpawner(Cube);
      _teleportCubeSpawn.setAmount(1);
      _teleportCubeSpawn.setLoc(CUBE_LOCATION);
      _teleportCubeSpawn.setRespawnDelay(60);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
    try
    {
      final NpcTemplate angel = NpcHolder.getInstance().getTemplate(ARCHANGEL);
      SimpleSpawner spawnDat;
      _angelSpawns.clear();
      final List<Integer> random = new ArrayList<>();
      for (int i = 0; i < 5; i++)
      {
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    _managers = new ArrayList<>();
    for (int i = 31921; i <= 31924; i++)
    {
      try
      {
        NpcTemplate template = NpcHolder.getInstance().getTemplate(i);
        Location loc = null;
        switch (i)
        {
          case 31921:
            loc = new Location(181061, -85595, -7200, -32584);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    NpcLocation loc = _shadowSpawns.get(npcId);
    if (loc == null)
    {
      return;
    }
    NpcTemplate template = NpcHolder.getInstance().getTemplate(loc.npcId);
    SepulcherRaidInstance mob = new SepulcherRaidInstance(IdFactory.getInstance().getNextId(), template);
    mob.setSpawnedLoc(loc);
    mob.spawnMe(loc);
    mob.mysteriousBoxId = npcId;
    _allMobs.add(mob);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    List<NpcLocation> monsterList = _emperorsGraveNpcs.get(npcId);
    if (monsterList != null)
    {
      for (NpcLocation loc : monsterList)
      {
        NpcTemplate template = NpcHolder.getInstance().getTemplate(loc.npcId);
        NpcInstance npc = null;
        if (template.isInstanceOf(SepulcherMonsterInstance.class))
        {
          npc = new SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
        }
        else
        {
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    {
      return;
    }
    for (NpcLocation loc : monsterList)
    {
      NpcTemplate template = NpcHolder.getInstance().getTemplate(loc.npcId);
      SepulcherMonsterInstance mob = new SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
      mob.setSpawnedLoc(loc);
      mob.spawnMe(loc);
      mob.mysteriousBoxId = npcId;
      _allMobs.add(mob);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

  {
    if (!FourSepulchersManager.isAttackTime())
    {
      return;
    }
    NpcTemplate template = NpcHolder.getInstance().getTemplate(_victim.get(npc.getNpcId()));
    SepulcherMonsterInstance npc2 = new SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
    npc2.setSpawnedLoc(npc.getLoc());
    npc2.spawnMe(npc.getLoc());
    _allMobs.add(npc2);
  }
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

  {
    if (!FourSepulchersManager.isAttackTime())
    {
      return;
    }
    NpcTemplate template = NpcHolder.getInstance().getTemplate(_keyBoxNpc.get(npc.getNpcId()));
    SepulcherNpcInstance npc2 = new SepulcherNpcInstance(IdFactory.getInstance().getNextId(), template);
    npc2.setSpawnedLoc(npc.getLoc());
    npc2.spawnMe(npc.getLoc());
    _allMobs.add(npc2);
  }
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

                spawnedKeyBoxMob = true;
              }
              break;
          }
        }
        NpcTemplate template = NpcHolder.getInstance().getTemplate(spawnKeyBoxMob ? 18149 : loc.npcId);
        SepulcherMonsterInstance mob = new SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
        mob.setSpawnedLoc(loc);
        mob.spawnMe(loc);
        mob.mysteriousBoxId = npcId;
        switch (npcId)
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.