If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4498:
L2JDP Revision 7789:
Hello i have a question where i can edit the core so i can spawn more than one raidboss?
[help]spawn more than one rb.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- kimeraweb
- Posts: 55
- Joined: Sat Jul 31, 2010 5:33 pm
- Location: Deutschland
- Contact:
-
- Posts: 2
- Joined: Thu Feb 17, 2011 12:14 am
Re: [help]spawn more than one rb.
ok i found the lines what i need but still when i login in the server i spawn some npc it's showing npc spawned 'name" and location .. but it's still not showing .. !!!
I tried something like this
I tried something like this
Code: Select all
try { L2Spawn spawn = new L2Spawn(template1); if (Config.SAVE_GMSPAWN_ON_CUSTOM) spawn.setCustom(true); spawn.setLocx(target.getX()); spawn.setLocy(target.getY()); spawn.setLocz(target.getZ()); spawn.setAmount(mobCount); spawn.setHeading(activeChar.getHeading()); spawn.setRespawnDelay(respawnTime); if (RaidBossSpawnManager.getInstance().getValidTemplate(spawn.getNpcid()) != null) { spawn.setRespawnMinDelay(43200); spawn.setRespawnMaxDelay(129600); RaidBossSpawnManager.getInstance().addNewSpawn(spawn, 0, template1.baseHpMax, template1.baseMpMax, permanent); } else { SpawnTable.getInstance().addNewSpawn(spawn, permanent); spawn.init(); } if (!permanent) spawn.stopRespawn(); activeChar.sendMessage("Created " + template1.name + " on " + target.getObjectId()); } catch (Exception e) { activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.TARGET_CANT_FOUND)); } }