[help]spawn more than one rb.

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
millers
Posts: 2
Joined: Thu Feb 17, 2011 12:14 am

[help]spawn more than one rb.

Post 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?
User avatar
kimeraweb
Posts: 55
Joined: Sat Jul 31, 2010 5:33 pm
Location: Deutschland
Contact:

Re: [help]spawn more than one rb.

Post by kimeraweb »

Easier, clone one ^^
GS: 4470
DP: 7733
millers
Posts: 2
Joined: Thu Feb 17, 2011 12:14 am

Re: [help]spawn more than one rb.

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