Examples of NpcTemplate


Examples of lineage2.gameserver.templates.npc.NpcTemplate

    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18602);
        if (template != null)
        {
          final NpcInstance a = template.getNewInstance();
          a.setCurrentHpMp(a.getMaxHp(), a.getMaxMp());
          a.spawnMe(actor.getLoc());
        }
      }
    }, 10000L);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18601);
        if (template != null)
        {
          final NpcInstance a = template.getNewInstance();
          a.setCurrentHpMp(a.getMaxHp(), a.getMaxMp());
          a.spawnMe(actor.getLoc());
        }
      }
    }, 10000L);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

   */
  private void startEffectZonesControl()
  {
    for (SeedRegion sr : _regionsData)
    {
      NpcTemplate template = NpcHolder.getInstance().getTemplate(ANNIHILATION_FURNACE);
      for (int i = 0; i < sr.af_spawns.length; i++)
      {
        NpcInstance npc = template.getNewInstance();
        npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp());
        npc.spawnMe(new Location(sr.af_spawns[i][0], sr.af_spawns[i][1], sr.af_spawns[i][2], sr.af_spawns[i][3]));
        npc.setNpcState(sr.activeBuff);
        sr.af_npcs[i] = npc;
      }
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

   * Method spawnHellbound.
   */
  void spawnHellbound()
  {
    SimpleSpawner spawnDat;
    NpcTemplate template;
    for (HellboundSpawn hbsi : _list)
    {
      if (ArrayUtils.contains(hbsi.getStages(), getHellboundLevel()))
      {
        try
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

        }
        if (skill.getSkillType() != Skill.SkillType.SUMMON)
        {
          continue;
        }
        NpcTemplate template = NpcHolder.getInstance().getTemplate(skill.getNpcId());
        SummonInstance s = new SummonInstance(objId, template, owner, ((SummonServitor) skill).getLifeTime(), ((SummonServitor) skill).getSummonPoint(), skill);
        s.setCurrentHp(curHp, true);
        s.setCurrentMp(curMp, true);
        summons.add(s);
      }
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

        149048,
        -3472,
        0
      }
    };
    final NpcTemplate template = NpcHolder.getInstance().getTemplate(31391);
    for (int[] element : EVENT_MANAGERS)
    {
      SimpleSpawner sp = new SimpleSpawner(template);
      sp.setLocx(element[0]);
      sp.setLocy(element[1]);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

        case 3:
          _task = ThreadPoolManager.getInstance().schedule(new CountDown(), 175000);
          break;
      }
      byte random = 2;
      final NpcTemplate template = NpcHolder.getInstance().getTemplate(18672);
      try
      {
        for (int i = 0; i < _numOfBoxes; i++)
        {
          SimpleSpawner spawn = new SimpleSpawner(template);
          spawn.setLocx(_arenaCoordinates[_arena][4] + Rnd.get(-400, 400));
          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++;
        }
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
      if ((_round == 1) || (_round == 2))
      {
        NpcTemplate girl = NpcHolder.getInstance().getTemplate(18676);
        try
        {
          final SimpleSpawner girlSpawn = new SimpleSpawner(girl);
          girlSpawn.setLocx(_arenaCoordinates[_arena][4] + Rnd.get(-400, 400));
          girlSpawn.setLocy(_arenaCoordinates[_arena][5] + Rnd.get(-400, 400));
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    Location spawnLoc = Location.findPointToStay(rewarded, 300, 400);
    for (int i = 0; (i < 20) && !GeoEngine.canSeeCoord(rewarded, spawnLoc.x, spawnLoc.y, spawnLoc.z, false); i++)
    {
      spawnLoc = Location.findPointToStay(rewarded, 300, 400);
    }
    NpcTemplate template = NpcHolder.getInstance().getTemplate(EVENT_REWARDER_ID);
    if (template == null)
    {
      System.out.println("WARNING! events.SavingSnowman.spawnRewarder template is null for npc: " + EVENT_REWARDER_ID);
      Thread.dumpStack();
      return;
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    {
      Announcements.getInstance().announceToPlayerByCustomMessage(player, "scripts.events.SavingSnowman.AnnounceSnowmanCaptured", null, ChatType.CRITICAL_ANNOUNCE);
      player.sendPacket(new SystemMessage(SystemMessage.S2_S1).addZoneName(spawnPoint).addString("�?щите Снеговика в "));
      player.sendPacket(new RadarControl(2, 2, spawnPoint), new RadarControl(0, 1, spawnPoint));
    }
    NpcTemplate template = NpcHolder.getInstance().getTemplate(SNOWMAN_ID);
    if (template == null)
    {
      System.out.println("WARNING! events.SavingSnowman.captureSnowman template is null for npc: " + SNOWMAN_ID);
      Thread.dumpStack();
      return;
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

        149167,
        -3495,
        0
      }
    };
    final NpcTemplate template = NpcHolder.getInstance().getTemplate(31390);
    for (int[] element : EVENT_MANAGERS)
    {
      SimpleSpawner sp = new SimpleSpawner(template);
      sp.setLocx(element[0]);
      sp.setLocy(element[1]);
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.