Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2CommanderInstance


  private void spawnCommanders()
  {
    for(SiegeSpawn sp : FortressSiegeManager.getCommanderSpawnList(getSiegeUnit().getId()))
    {
      L2CommanderInstance commander = new L2CommanderInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(sp.getNpcId()));
      commander.setCurrentHpMp(commander.getMaxHp(), commander.getMaxMp(), true);
      commander.setXYZInvisible(sp.getLoc().correctGeoZ());
      commander.setSpawnedLoc(commander.getLoc());
      commander.setHeading(sp.getLoc().h);
      commander.spawnMe();
      _commanders.add(commander);
    }
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.instances.L2CommanderInstance

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.