Stupid question question about custom npc

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
kekun
Posts: 2
Joined: Thu Jul 22, 2010 7:54 pm

Stupid question question about custom npc

Post 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 :)
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Stupid question question about custom npc

Post 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.
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
kekun
Posts: 2
Joined: Thu Jul 22, 2010 7:54 pm

Re: Stupid question question about custom npc

Post by kekun »

It work, many thanks :D
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Stupid question question about custom npc

Post by Zoey76 »

kekun wrote:It work, many thanks :D
I'm glad to see it worked. :P
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
Post Reply