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

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-26-2011, 02:18 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default ID Consistency

I am having difficulty grasping a concept in the database. If you do a packet collect, and then the SQL is generated it may have something like this at the top. This is from a GFAY generated SQL.

Code:
set @StartingNPCTypeID = 54000;
set @StartingSpawnGroupID = 54000;
set @StartingSpawnEntryID = 54000;
set @StartingSpawn2ID = 54000;
set @StartingGridID = 54000;
set @StartingMerchantID = 54000;
set @BaseDoorID = 0;
set @StartingGroundSpawnID = 54000;
set @StartingObjectID = 54000;

DELETE from npc_types where id >= @StartingNPCTypeID and id <= @StartingNPCTypeID + 999 and version = 0;
DELETE from spawngroup where id >= @StartingSpawnGroupID and id <= @StartingSpawnGroupID + 999;
DELETE from spawnentry where spawngroupID >= @StartingSpawnEntryID and spawngroupID <= @StartingSpawnEntryID + 999;
DELETE from spawn2 where id >= @StartingSpawn2ID and id <= @StartingSpawn2ID + 999 and version = 0;
So this would lead me to believe the spawnentry ID's for all GFAY NPC's would be in the 54000-54999 range right ? Trying this query....

Code:
SELECT * FROM spawnentry WHERE npcid>54000 AND npcid<54999;
Code:
spawngroupID 	npcID 	chance
1488 	54048 	100
1489 	54046 	100
1490 	54049 	100
1491 	54050 	100
1492 	54041 	20
1492 	54051 	20
1492 	54238 	20
1492 	54239 	20
1492 	54251 	20
1493 	54052 	100
1494 	54007 	100
I get this odd numbering in a lot of places. It makes it hard to add things. I will find the odd NPC in live that is not in the DB, but I cannot seem to trust putting it in, because I may step on the *&*() of another zone. I am thinking this has to be me and something I am doing wrong.

Or maybe this....

Code:
SELECT max(id) FROM npc_types WHERE id>54000 AND id<54999;
Yields this result.

Code:
pID 	npcID 	chance
54001 	268167 	100
54002 	268144 	100
54003 	268177 	100
54004 	268180 	100
54005 	268181 	100
54006 	268182 	100
54007 	268170 	100
54008 	268172 	100
54009 	268183 	100
54010 	268176 	100
54011 	268179 	100
54012 	268168 	100
54013 	268184 	100
54014 	268185 	100
54015 	268174 	100
54016 	268178 	100
54017 	268186 	10
So this is showing spawns in zone 268 ?
Reply With Quote
 


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 02:19 PM.


 

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