The problem I had was that the data I was trying to load into the database had one extra entry in each row that the table was not expecting. That entry was "bodytype". The db.sql that comes with 0.4.1 does NOT contain the correct formatting for that table.
In order to correct it, you need to replace the npc_types structure in your db.sql with the following:
Code:
--
-- Table structure for table 'npc_types'
--
CREATE TABLE npc_types (
id int(11) NOT NULL auto_increment,
name text NOT NULL,
level tinyint(2) unsigned NOT NULL default '0',
race smallint(5) unsigned NOT NULL default '0',
class tinyint(2) unsigned NOT NULL default '0',
bodytype int(11),
hp int(11) NOT NULL default '0',
gender tinyint(2) unsigned NOT NULL default '0',
texture tinyint(2) unsigned NOT NULL default '0',
helmtexture tinyint(2) unsigned NOT NULL default '0',
size float NOT NULL default '0',
hp_regen_rate int(11) unsigned NOT NULL default '0',
mana_regen_rate int(11) unsigned NOT NULL default '0',
loottable_id int(11) unsigned NOT NULL default '0',
merchant_id int(11) unsigned NOT NULL default '0',
mindmg int(10) unsigned NOT NULL default '0',
maxdmg int(10) unsigned NOT NULL default '0',
usedspells varchar(70) NOT NULL default '',
npcspecialattks varchar(36) NOT NULL default '',
banish int(10) unsigned NOT NULL default '0',
aggroradius int(10) unsigned NOT NULL default '0',
social int(10) unsigned NOT NULL default '0',
face int(10) unsigned NOT NULL default '1',
luclin_hairstyle int(10) unsigned NOT NULL default '1',
luclin_haircolor int(10) unsigned NOT NULL default '1',
luclin_eyecolor int(10) unsigned NOT NULL default '1',
luclin_beardcolor int(10) unsigned NOT NULL default '1',
fixedz tinyint(2) unsigned NOT NULL default '0',
d_meele_texture1 int(10) unsigned NOT NULL default '0',
d_meele_texture2 int(10) unsigned NOT NULL default '0',
walkspeed float NOT NULL default '0',
runspeed float NOT NULL default '0',
MR smallint(5) NOT NULL default '0',
CR smallint(5) NOT NULL default '0',
DR smallint(5) NOT NULL default '0',
FR smallint(5) NOT NULL default '0',
PR smallint(5) NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
Then drop your database, create a new one, and source db.sql again. Then when you load your DB, it shouldn't error on npc_types.
I think I did get a few other errors, but all in all it was ok.
FYI, I got this from the cvs dump here:
http://cvs.sourceforge.net/cgi-bin/v...mu/NightDumps/
-Auldar