[Help] How to spawn multi NPCs by auto script?

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
chuong2a
Posts: 51
Joined: Thu Oct 25, 2012 2:07 am

[Help] How to spawn multi NPCs by auto script?

Post by chuong2a »

[Help] How to spawn multi NPCs by auto script?
Im tired to manually spawn each NPCs. And when I re-install server Database, I will need to manually spawn each NPCs again...
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: [Help] How to spawn multi NPCs by auto script?

Post by VlLight »

Are uou spawning them using //spawn command?
chuong2a
Posts: 51
Joined: Thu Oct 25, 2012 2:07 am

Re: [Help] How to spawn multi NPCs by auto script?

Post by chuong2a »

VlLight wrote: Are uou spawning them using //spawn command?
Yes Im using //spawn command manually.
But I want to spawn 100 NPCs just by one script and a double click...
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: [Help] How to spawn multi NPCs by auto script?

Post by VlLight »

1. Set these parameters in general.properties

Code: Select all

CustomSpawnlistTable = TrueSaveGmSpawnOnCustom = True 
2. Spawn your NPC's
3. Before database reinstall backup custom_spawnlist table
4. After database reinstall restore custom_spawnlist table from backup, if needed
chuong2a
Posts: 51
Joined: Thu Oct 25, 2012 2:07 am

Re: [Help] How to spawn multi NPCs by auto script?

Post by chuong2a »

Thanks. And please answer one more question.
When I use command spawn, the first NPC will be spawned right next to me, but the second NPC also will be spawned at the old position (same position to the first NPC), even though I have run away.
How to fix this error?
felpudito
Posts: 8
Joined: Wed Nov 26, 2008 6:36 am

Re: [Help] How to spawn multi NPCs by auto script?

Post by felpudito »

Only target yoursef, move away and then spawn.
Post Reply