Package com.l2jfrozen.gameserver.templates

Examples of com.l2jfrozen.gameserver.templates.L2NpcTemplate


     
      NamedNodeMap attrs;
      byte type, roomId;
      int mobId, x, y, z, delay, count;
      L2Spawn spawnDat;
      L2NpcTemplate template;

      for(Node rift = doc.getFirstChild(); rift != null; rift = rift.getNextSibling())
      {
        if("rift".equalsIgnoreCase(rift.getNodeName()))
        {
View Full Code Here


  }


  private static void spawnEventBoss(L2PcInstance activeChar)
  {
    L2NpcTemplate tmpl = NpcTable.getInstance().getTemplate(_bossId);

    try
    {
      _bossSpawn = new L2Spawn(tmpl);
View Full Code Here

    }
  }
 
  private static void spawnEventBoss()
  {
    L2NpcTemplate tmpl = NpcTable.getInstance().getTemplate(_bossId);

    try
    {
      _bossSpawn = new L2Spawn(tmpl);
View Full Code Here

    for(SiegeSpawn _sp : SiegeManager.getInstance().getControlTowerSpawnList(Id))
    {
      L2ControlTowerInstance ct;

      L2NpcTemplate template = NpcTable.getInstance().getTemplate(_sp.getNpcId());

      template.getStatsSet().set("baseHpMax", _sp.getHp());
      // TODO: Check/confirm if control towers have any special weapon resistances/vulnerabilities
      // template.addVulnerability(Stats.BOW_WPN_VULN,0);
      // template.addVulnerability(Stats.BLUNT_WPN_VULN,0);
      // template.addVulnerability(Stats.DAGGER_WPN_VULN,0);
View Full Code Here

    Announce("Now its open for 1 hours!");

    L2NpcInstance result = null;
    try
    {
      L2NpcTemplate template = NpcTable.getInstance().getTemplate(MESSENGER_ID);

      L2Spawn spawn = new L2Spawn(template);
      spawn.setLocx(50335);
      spawn.setLocy(111275);
      spawn.setLocz(-1970);
View Full Code Here

    }

    L2NpcInstance result = null;
    try
    {
      L2NpcTemplate template = NpcTable.getInstance().getTemplate(BOSS_ID);

      L2Spawn spawn = new L2Spawn(template);
      spawn.setLocx(44525);
      spawn.setLocy(108867);
      spawn.setLocz(-2020);
View Full Code Here

    _zones.clear();
  }
 
  public L2NpcTemplate getValidTemplate(int bossId)
  {
    L2NpcTemplate template = NpcTable.getInstance().getTemplate(bossId);
    if(template == null)
      return null;

    if(!template.type.equalsIgnoreCase("L2GrandBoss"))
      return null;
View Full Code Here

    {
      activeChar.sendMessage("Mob group " + groupId + " already exists.");
      return;
    }

    L2NpcTemplate template = NpcTable.getInstance().getTemplate(templateId);

    if(template == null)
    {
      activeChar.sendMessage("Invalid NPC ID specified.");
      return;
View Full Code Here

        statement.setInt(2, 0);
      }
      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

  {
    L2NpcInstance result = null;

    try
    {
      L2NpcTemplate template = NpcTable.getInstance().getTemplate(npcId);

      if(template != null)
      {
        // Sometimes, even if the quest script specifies some xyz (for example npc.getX() etc) by the time the code
        // reaches here, xyz have become 0!  Also, a questdev might have purposely set xy to 0,0...however,
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.