View Single Post
  #2  
Old 11-27-2002, 12:39 PM
quester
Hill Giant
 
Join Date: Oct 2002
Posts: 108
Default

*NOTE*: These changes are made against 3.12.. I havent had the chance to upgrade to 3.13 yet, so be aware of this when applying them!

Ok attached below are the diffs for this.. I hope.

DATABASE CHANGES:
This entails a fairly in depth change to your database. If you are uncomfortable making these changes, then wait for the converter to be finished.

Create a new table named "npc_profiles":
Code:
					MakeAnyLenString(&query, "CREATE TABLE npc_profiles ("
					// start columns		
					"id MEDIUMINT(6) NOT NULL,"
					"name VARCHAR(255) NOT NULL,"
					"str VARCHAR(15) NOT NULL,"
					"sta VARCHAR(15) NOT NULL,"
					"agi VARCHAR(15) NOT NULL,"
					"dex VARCHAR(15) NOT NULL,"
					"int VARCHAR(15) NOT NULL,"
					"wis VARCHAR(15) NOT NULL,"
					"cha VARCHAR(15) NOT NULL,"
					"mr VARCHAR(15) NOT NULL,"
					"fr VARCHAR(15) NOT NULL,"
					"cr VARCHAR(15) NOT NULL,"
					"pr VARCHAR(15) NOT NULL,"
					"dr VARCHAR(15) NOT NULL,"
					"hp VARCHAR(15) NOT NULL,"
					"ac VARCHAR(15) NOT NULL,"
					"hp_regen TINYINT UNSIGNED NOT NULL,"
					"mana_regen TINYINT UNSIGNED NOT NULL,"
					"walk_speed TINYINT UNSIGNED NOT NULL,"
					"run_speed TINYINT UNSIGNED NOT NULL,"
					"proc SMALLINT UNSIGNED,"
					"spells VARCHAR(100)"
					// end columns
					")");
In your npc_types table, add the column "npc_profile", MEDIUMINT(6) NOT NULL

In your npc_types table, you can remove any overlapping columns.
Reply With Quote