Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Database/World Building

Archive::Database/World Building Archive area for General Discussion's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2004, 04:31 AM
KhaN's Avatar
KhaN
Dragon
 
Join Date: Mar 2004
Location: France, Bordeaux.
Posts: 677
Default Problem using #npcspawn ADD

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
__________________

Reply With Quote
  #2  
Old 06-12-2004, 03:44 AM
monalin crusader
Hill Giant
 
Join Date: May 2004
Posts: 238
Default

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.
__________________
Ascending Dawn Server Op
Coder/Quester/Mysql
Reply With Quote
  #3  
Old 06-12-2004, 04:06 AM
Jezebell
Discordant
 
Join Date: Feb 2004
Location: Florida
Posts: 441
Default

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:

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

Code:
#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:

Code:
#findnpctype npcname
Each npc will have an npcid which you will use to spawn them via:

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

Code:
#npcspawn add
Thats it! Hope this helped you.
__________________
Eru, the Creator of Arda
ServerOwner for The First Age
An EQEMulator Roleplaying [Custom-Legit] Server
The First Age Website

Running on: Asus A7N8X-Deluxe, AMD Athlon XP 2100+, Geil 1024MB PC3200 Ultra DDR RAM,
WD 40GB 7200rpm ATA-100 HDD, Visiontek 128MB Geforce4 TI 4400, Windows XP Pro SP2
Reply With Quote
  #4  
Old 06-12-2004, 06:30 AM
Dave987
Discordant
 
Join Date: Jun 2003
Location: England
Posts: 267
Default

Wow I never knew all that Jezebel , thanks for clearing it up :P
__________________
;o)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:56 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3