Package l2p.gameserver.templates

Examples of l2p.gameserver.templates.L2NpcTemplate


    System.out.println("FrintezzaManager: Next spawn date of Frintezza is " + dt + ".");
  }

  private static L2NpcInstance spawn(Location loc)
  {
    L2NpcTemplate template = NpcTable.getTemplate(loc.id);
    L2NpcInstance npc = template.getNewInstance();
    npc.setSpawnedLoc(loc);
    npc.onSpawn();
    npc.setHeading(loc.h);
    npc.setXYZInvisible(loc);
    npc.spawnMe();
View Full Code Here


    _state = new EpicBossState(Valakas);
    _zone = ZoneManager.getInstance().getZoneById(ZoneType.epic, 702003, false);
    // Setting spawn data of monsters.
    try
    {
      L2NpcTemplate template1;
      L2Spawn tempSpawn;
      // Valakas.
      template1 = NpcTable.getTemplate(Valakas);
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(212852);
      tempSpawn.setLocy(-114842);
      tempSpawn.setLocz(-1632);
      //tempSpawn.setHeading(22106);
      tempSpawn.setHeading(833);
      tempSpawn.setAmount(1);
      tempSpawn.stopRespawn();
      _monsterSpawn.put(Valakas, tempSpawn);
      // Dummy Valakas.
      template1 = NpcTable.getTemplate(ValakasDummy);
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(212852);
      tempSpawn.setLocy(-114842);
      tempSpawn.setLocz(-1632);
      //tempSpawn.setHeading(22106);
      tempSpawn.setHeading(833);
      tempSpawn.setAmount(1);
      tempSpawn.stopRespawn();
      _monsterSpawn.put(ValakasDummy, tempSpawn);
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
    // Setting spawn data of teleport cube.
    try
    {
      L2NpcTemplate Cube = NpcTable.getTemplate(_teleportCubeId);
      L2Spawn spawnDat;
      for(int[] element : _teleportCubeLocation)
      {
        spawnDat = new L2Spawn(Cube);
        spawnDat.setAmount(1);
View Full Code Here

    _managers = new GArray<L2SepulcherNpcInstance>();
    for(int i = 31921; i <= 31924; i++)
    {
      try
      {
        L2NpcTemplate template = NpcTable.getTemplate(i);
        Location loc = null;
        switch(i)
        {
          case 31921: // conquerors
            loc = new Location(181061, -85595, -7200, -32584);
View Full Code Here

    Location loc = _shadowSpawns.get(npcId);
    if(loc == null)
    {
      return;
    }
    L2NpcTemplate template = NpcTable.getTemplate(loc.id);
    L2SepulcherRaidInstance mob = new L2SepulcherRaidInstance(IdFactory.getInstance().getNextId(), template);
    mob.onSpawn();
    mob.setSpawnedLoc(loc);
    mob.spawnMe(loc);
    mob.mysteriousBoxId = npcId;
View Full Code Here

    GArray<Location> monsterList = _emperorsGraveNpcs.get(npcId);
    if(monsterList != null)
    {
      for(Location loc : monsterList)
      {
        L2NpcTemplate template = NpcTable.getTemplate(loc.id);
        L2NpcInstance npc;
        if(template.isInstanceOf(L2SepulcherMonsterInstance.class))
        {
          npc = new L2SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
        }
        else
        {
View Full Code Here

    {
      return;
    }
    for(Location loc : monsterList)
    {
      L2NpcTemplate template = NpcTable.getTemplate(loc.id);
      L2SepulcherMonsterInstance mob = new L2SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
      mob.onSpawn();
      mob.setSpawnedLoc(loc);
      mob.spawnMe(loc);
      mob.mysteriousBoxId = npcId;
View Full Code Here

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

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

                spawnedKeyBoxMob = true;
              }
              break;
          }
        }
        L2NpcTemplate template = NpcTable.getTemplate(spawnKeyBoxMob ? 18149 : loc.id);
        L2SepulcherMonsterInstance mob = new L2SepulcherMonsterInstance(IdFactory.getInstance().getNextId(), template);
        mob.onSpawn();
        mob.setSpawnedLoc(loc);
        mob.spawnMe(loc);
        mob.mysteriousBoxId = npcId;
View Full Code Here

  {
    if(!FourSepulchersManager.isAttackTime())
    {
      return;
    }
    L2NpcTemplate template = NpcTable.getTemplate(_mysteriousBoxSpawns.get(npcId).id);
    L2SepulcherNpcInstance npc = new L2SepulcherNpcInstance(IdFactory.getInstance().getNextId(), template);
    npc.onSpawn();
    npc.setSpawnedLoc(_mysteriousBoxSpawns.get(npcId));
    npc.spawnMe(npc.getSpawnedLoc());
    _allMobs.add(npc);
View Full Code Here

TOP

Related Classes of l2p.gameserver.templates.L2NpcTemplate

Copyright © 2018 www.massapicom. 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.