Page 1 of 1
Stupid question question about custom npc
Posted: Tue Aug 03, 2010 12:23 pm
by kekun
Hi all,
In first, sorry for my bad English :/
After that, I have a question about a custom NPC. I inserted a custom npc (GM Shop), it worked good but when i reboot my server I must respwan him manually. I think I forget a opton in config but I don't find his, could you help me ?
Thanks in advance

Re: Stupid question question about custom npc
Posted: Tue Aug 03, 2010 5:51 pm
by Zoey76
You need to add your NPC in the custom_spawnlist.sql also enable the option to use such tables in config files.
General.properties:
Code: Select all
# Default: FalseCustomSpawnlistTable = True
You can run a query to add the NPC:
Code: Select all
INSERT INTO `custom_spawnlist` VALUES (NULL, 'location', count, NPC_TemplateID, x, y, z, 0, 0, heading, respawn, 0, 0);
The first value is the spawn id, it should be null cause the table has auto_increment for that value, the location is a string that contain a brief description of the spawning place like 'Giran_TownCenter', the count should be 1, the NPC_TemplateID is the id that gives the npc the looking, x,y,z are the coordinates where you want it to spawn you can go to that place and use /loc command in the client to get that location coordinates , heading is where the npc is looking at, and the respawn is the respawn delay in seconds after death, but it is not going to die, 60 should be fine I think.
Re: Stupid question question about custom npc
Posted: Thu Aug 05, 2010 9:45 am
by kekun
It work, many thanks

Re: Stupid question question about custom npc
Posted: Thu Aug 05, 2010 9:31 pm
by Zoey76
kekun wrote:It work, many thanks

I'm glad to see it worked.
