Page 1 of 1

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

Posted: Sat Oct 27, 2012 7:38 pm
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...

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

Posted: Sat Oct 27, 2012 8:08 pm
by VlLight
Are uou spawning them using //spawn command?

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

Posted: Sat Oct 27, 2012 8:58 pm
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...

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

Posted: Sat Oct 27, 2012 9:05 pm
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

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

Posted: Sat Oct 27, 2012 9:56 pm
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?

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

Posted: Sun Oct 28, 2012 5:09 am
by felpudito
Only target yoursef, move away and then spawn.