» Find Revision
L2J Revision 3506:
L2JDP Revision 6606:
I'm trying to get instance of new spawn:
Code: Select all
private void spawnMonster(String monsterId, int mobCount, int x, int y, int z, int respawnDelay) { L2NpcTemplate template1; int monsterTemplate = Integer.parseInt(monsterId); template1 = NpcTable.getInstance().getTemplate(monsterTemplate); try { L2Spawn spawn = new L2Spawn(template1); spawn.setLocx(x); spawn.setLocy(y); spawn.setLocz(z); spawn.setAmount(mobCount); spawn.setHeading(1); spawn.setRespawnDelay(respawnDelay); } catch (Exception e) { } }
Code: Select all
public static Map<L2MonsterInstance> _monsters = new FastMap<L2MonsterInstance>();_monsters.put((L2MonsterInstance) spawn)