PDA

View Full Version : Problem using #npcspawn ADD


KhaN
06-05-2004, 04:31 AM
Hi,

Im starting to populate zones for my server, and i got a "little" problem, i create a range of NPC 100001 to 100016, they are DEF NPC, i use #npctypespawn ID to spawn them, but when i use #npcspawn ADD, they are not added to Spawn2, Spawnentry and Spawngroup ... add that EQ says me that they are added.

If i spawn other NPC, they are added to DB ... i know i could wipe DEF NPC, recreate them, and that will work, but i want to know why this dont work ! When looking at NPC type, all look like correct ...

Thanks in advance

monalin crusader
06-12-2004, 03:44 AM
You have to use 2 commands after you #spawn a npcs to add it to the db. First co #npcspawn create, then #npcspawn add.

Note: DO NOT #repop zone it will not be there and it will erase it from db you must zone out and zone back in. Or reboot the zone server.

Jezebell
06-12-2004, 04:06 AM
Thats incorrect, and a common misconception. Using #npcspawn create and then #npcspawn add will create a duplicate of the same spawn in your spawn tables.

When spawning a new mob (one that does NOT exist in the npc_types table) you use:

#spawn

That puts a mob in front of you. Then you target it and type:

#npcspawn create

That adds the mob to the npc_types, spawngroup, spawnentry, and spawn2 tables.

After you create all the unique npcs that you need and you want to duplicate them at different spawnpoints you have to reboot the server. Once you log back in you can find your new npcs by typing:

#findnpctype npcname

Each npc will have an npcid which you will use to spawn them via:

#dbspawn npcid

that will spawn the mob at the location, then to add that spawn to the spawn tables you target it and type:

#npcspawn add

Thats it! Hope this helped you.

Dave987
06-12-2004, 06:30 AM
Wow I never knew all that Jezebel , thanks for clearing it up :P