Package com.l2jfrozen.gameserver.templates

Examples of com.l2jfrozen.gameserver.templates.L2NpcTemplate


    {
        31929, 31934, 31939, 31944
    };

    L2Spawn spawnDat;
    L2NpcTemplate template;

    _shadowSpawns.clear();

    for(int i = 0; i <= 3; i++)
    {
View Full Code Here


  }

  protected void initExecutionerSpawns()
  {
    L2Spawn spawnDat;
    L2NpcTemplate template;

    for(int keyNpcId : _victim.keySet())
    {
      try
      {
View Full Code Here

        if(spawnKeyBoxMob)
        {
          try
          {
            L2NpcTemplate template = NpcTable.getInstance().getTemplate(18149);
            if(template != null)
            {
              keyBoxMobSpawn = new L2Spawn(template);
              keyBoxMobSpawn.setAmount(1);
              keyBoxMobSpawn.setLocx(spawnDat.getLocx());
View Full Code Here

  {
    // Setting spawn data of monsters.
    try
    {
      _Zone = GrandBossManager.getInstance().getZone(179700,113800,-7709);
      L2NpcTemplate template1;
      L2Spawn tempSpawn;
     
      // Old Antharas
      template1 = NpcTable.getInstance().getTemplate(ANTHARASOLDID);
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(181323);
      tempSpawn.setLocy(114850);
      tempSpawn.setLocz(-7623);
      tempSpawn.setHeading(32542);
      tempSpawn.setAmount(1);
      tempSpawn.setRespawnDelay(FWA_ACTIVITYTIMEOFANTHARAS * 2);
      SpawnTable.getInstance().addNewSpawn(tempSpawn, false);
      _monsterSpawn.put(29019, tempSpawn);
     
      // Weak Antharas
      template1 = NpcTable.getInstance().getTemplate(ANTHARASWEAKID);
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(181323);
      tempSpawn.setLocy(114850);
      tempSpawn.setLocz(-7623);
      tempSpawn.setHeading(32542);
      tempSpawn.setAmount(1);
      tempSpawn.setRespawnDelay(FWA_ACTIVITYTIMEOFANTHARAS * 2);
      SpawnTable.getInstance().addNewSpawn(tempSpawn, false);
      _monsterSpawn.put(29066, tempSpawn);
     
      // Normal Antharas
      template1 = NpcTable.getInstance().getTemplate(ANTHARASNORMALID);
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(181323);
      tempSpawn.setLocy(114850);
      tempSpawn.setLocz(-7623);
      tempSpawn.setHeading(32542);
      tempSpawn.setAmount(1);
      tempSpawn.setRespawnDelay(FWA_ACTIVITYTIMEOFANTHARAS * 2);
      SpawnTable.getInstance().addNewSpawn(tempSpawn, false);
      _monsterSpawn.put(29067, tempSpawn);
     
      // Strong Antharas
      template1 = NpcTable.getInstance().getTemplate(ANTHARASSTRONGID);
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(181323);
      tempSpawn.setLocy(114850);
      tempSpawn.setLocz(-7623);
      tempSpawn.setHeading(32542);
      tempSpawn.setAmount(1);
      tempSpawn.setRespawnDelay(FWA_ACTIVITYTIMEOFANTHARAS * 2);
      SpawnTable.getInstance().addNewSpawn(tempSpawn, false);
      _monsterSpawn.put(29068, tempSpawn);
    }
    catch (Exception e)
    {
      _log.warning(e.getMessage());
    }
   
    // Setting spawn data of teleport cube.
    try
    {
      L2NpcTemplate Cube = NpcTable.getInstance().getTemplate(_teleportCubeId);
      L2Spawn spawnDat;
      for (int[] element : _teleportCubeLocation)
      {
        spawnDat = new L2Spawn(Cube);
        spawnDat.setAmount(1);
View Full Code Here

    }
   
    @Override
    public void run()
    {
      L2NpcTemplate template1;
      L2Spawn tempSpawn;
      boolean isBehemoth = Rnd.get(100) < FWA_PERCENTOFBEHEMOTH;
      try
      {
        int mobNumber = (isBehemoth ? 2 : 3);
View Full Code Here

  @Override
  public void useItem(L2PlayableInstance playable, L2ItemInstance item)
  {
    L2PcInstance activeChar = (L2PcInstance) playable;

    L2NpcTemplate template1 = null;

    int itemId = item.getItemId();
    for(int i = 0; i < ITEM_IDS.length; i++)
    {
      if(ITEM_IDS[i] == itemId)
View Full Code Here

      PreparedStatement statement = con.prepareStatement("SELECT * FROM fort_siege_guards Where fortId = ? ");
      statement.setInt(1, getFort().getFortId());
      ResultSet rs = statement.executeQuery();

      L2Spawn spawn1;
      L2NpcTemplate template1;

      while(rs.next())
      {
        template1 = NpcTable.getInstance().getTemplate(rs.getInt("npcId"));
        if(template1 != null)
View Full Code Here

  public L2NpcTemplate addActionId(int npcId, Action actionType)
  {
    try
    {
      L2NpcTemplate t = NpcTable.getInstance().getTemplate(npcId);

      if(t != null)
      {
        t.addAIEvent(actionType, this);
      }

      return t;
    }
    catch(Exception e)
View Full Code Here

    // Setting spawn data of Dummy camera marker.
    _cameraMarkerSpawn.clear();
    try
    {
      L2NpcTemplate template1 = NpcTable.getInstance().getTemplate(13014); // Dummy npc
      L2Spawn tempSpawn;

      // Dummy camera marker.
      tempSpawn = new L2Spawn(template1);
      tempSpawn.setLocx(-16397);
View Full Code Here

      statement.setInt(1, 22175);
      statement.setInt(2, 22176);
      ResultSet rset = statement.executeQuery();

      L2Spawn spawnDat;
      L2NpcTemplate template1;

      while(rset.next())
      {
        template1 = NpcTable.getInstance().getTemplate(rset.getInt("npc_templateid"));
        if(template1 != null)
View Full Code Here

TOP

Related Classes of com.l2jfrozen.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.