Package com.l2jfrozen.gameserver.templates

Examples of com.l2jfrozen.gameserver.templates.L2NpcTemplate


        final int y = locationList[locationIndex].getY();
        final int z = locationList[locationIndex].getZ();
        final int heading = locationList[locationIndex].getHeading();

        // Fetch the template for this NPC ID and create a new spawn.
        L2NpcTemplate npcTemp = NpcTable.getInstance().getTemplate(spawnInst.getNpcId());

        if(npcTemp == null)
        {
          _log.warning("Couldnt find NPC id" + spawnInst.getNpcId() + " Try to update your DP");
          return;
View Full Code Here


   */
  public L2NpcTemplate addEventId(int npcId, QuestEventType eventType)
  {
    try
    {
      L2NpcTemplate t = NpcTable.getInstance().getTemplate(npcId);

      if(t != null)
      {
        t.addQuestEvent(eventType, this);
      }

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

    while(_throneSpawns.size()<_teams.size())
      _throneSpawns.add(null);
    for(String team : _teams)
    {
      int index = _teams.indexOf(team);
      L2NpcTemplate tmpl = NpcTable.getInstance().getTemplate(_flagIds.get(index));
      L2NpcTemplate throne = NpcTable.getInstance().getTemplate(32027);
      try
      {
        // Spawn throne
        _throneSpawns.set(index, new L2Spawn(throne));
        _throneSpawns.get(index).setLocx(_flagsX.get(index));
View Full Code Here

   * @param teamName the team name
   */
  public static void spawnFlag(String teamName)
  {
    int index = _teams.indexOf(teamName);
    L2NpcTemplate tmpl = NpcTable.getInstance().getTemplate(_flagIds.get(index));

    try
    {
      _flagSpawns.set(index, new L2Spawn(tmpl));

View Full Code Here

      PreparedStatement statement = con.prepareStatement("SELECT * from raidboss_spawnlist ORDER BY boss_id");
      ResultSet rset = statement.executeQuery();

      L2Spawn spawnDat;
      L2NpcTemplate template;
      long respawnTime;
      while(rset.next())
      {
        template = getValidTemplate(rset.getInt("boss_id"));
        if(template != null)
View Full Code Here

      return StatusEnum.UNDEFINED;
  }

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

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

    int npcID = sitem.getNpcId();
   
    if (npcID == 0)
      return;
   
    L2NpcTemplate npcTemplate = NpcTable.getInstance().getTemplate(npcID);
   
    if (npcTemplate == null)
      return;
   
    switch (sitem.getType())
View Full Code Here

      default:
        npcid = 18319;
        break;
    }

    L2NpcTemplate temp;
    temp = NpcTable.getInstance().getTemplate(npcid);

    if(temp != null)
    {
      try
View Full Code Here

  }
 
  //olympiad mod
  public static void spawnEventNpc()
  {
    L2NpcTemplate tmpl = NpcTable.getInstance().getTemplate(_npcId);

    try
    {
      _npcSpawn = new L2Spawn(tmpl);
      _npcSpawn.setLocx(_npcX);
View Full Code Here

  }
 
  //olympiad mod
    public static void spawnEventNpc1()
    {
      L2NpcTemplate tmpl1 = NpcTable.getInstance().getTemplate(_npc1Id);


      try
      {
        _npc1Spawn = new L2Spawn(tmpl1);
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.