Page 1 of 1

[help]spawn more than one rb.

Posted: Fri Feb 25, 2011 2:00 pm
by millers
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?

Re: [help]spawn more than one rb.

Posted: Fri Feb 25, 2011 8:20 pm
by kimeraweb
Easier, clone one ^^

Re: [help]spawn more than one rb.

Posted: Sat Feb 26, 2011 10:11 am
by millers
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

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));        }    }