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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 09-26-2002, 11:23 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

ok a simple attempt to comment the mysql table definitions for spawns.

I trimed out the table fields not relarted to tieing the tables together.


Code:
#
# Table structure for table 'npc_types'
#

CREATE TABLE npc_types (  # key is the ID, Table defines mob to be spawned
  id int(11) NOT NULL auto_increment,
  name text NOT NULL,
#sniped
  PRIMARY KEY  (id)
) TYPE=MyISAM;



#
# Table structure for table 'spawn2'
#

CREATE TABLE spawn2 (  # defines where and how the spawngroup spawns
  id int(11) NOT NULL auto_increment,
  spawngroupID int(11) NOT NULL default '0',
#sniped
  PRIMARY KEY  (id)
) TYPE=MyISAM;



#
# Table structure for table 'spawnentry'
#

CREATE TABLE spawnentry (  # lists the npc_types that can spawn in a given spawn group
  spawngroupID int(11) NOT NULL default '0',
  npcID int(11) NOT NULL default '0',  # npc_tpe ID
#sniped
  PRIMARY KEY  (spawngroupID,npcID)
) TYPE=MyISAM;



#
# Table structure for table 'spawngroup'
#

CREATE TABLE spawngroup (  # named entry used to tie spawn2 and spawnenrty together
  id int(11) NOT NULL auto_increment,  # ID (spawngroupID)
  name varchar(30) NOT NULL default '',  # user given name neams nothing
  PRIMARY KEY  (id),
  UNIQUE KEY name (name)
) TYPE=MyISAM;
__________________
Please read the forum rules and look at reacent messages before posting.
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 12:51 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