Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2SupportUnitInstance


          try
          {
            Location loc = new Location(Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()));
            int npc1_id = Integer.parseInt(st.nextToken());
            int npc2_id = Integer.parseInt(st.nextToken());
            L2NpcInstance commanderNpc = new L2SupportUnitInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(npc1_id));
            commanderNpc.setCurrentHpMp(commanderNpc.getMaxHp(), commanderNpc.getMaxMp(), true);
            commanderNpc.setXYZInvisible(loc.correctGeoZ());
            commanderNpc.setSpawnedLoc(commanderNpc.getLoc());
            commanderNpc.setHeading(loc.h);
            commanderNpc.spawnMe();
            _commanderNpcs.add(commanderNpc);
            _commanderSpawns.add(new SiegeSpawn(fortress.getId(), loc, npc2_id));
          }
          catch(Exception e)
          {
View Full Code Here

TOP

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

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.