[9309] Implement DB storage for new quest_template field 'RewXPId'.

Values 0-8, used to display XP reward in client log.
Please note that calculation of quest XP has changed, and formula must be corrected accordingly.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-02-05 14:28:28 +01:00
parent cb33736a5a
commit f73b778cde
9 changed files with 76 additions and 64 deletions

View file

@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL,
`cache_id` int(10) default '0',
`required_9297_01_mangos_item_template` bit(1) default NULL
`required_9309_01_mangos_quest_template` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--
@ -13804,6 +13804,7 @@ CREATE TABLE `quest_template` (
`NextQuestId` mediumint(9) NOT NULL default '0',
`ExclusiveGroup` mediumint(9) NOT NULL default '0',
`NextQuestInChain` mediumint(8) unsigned NOT NULL default '0',
`RewXPId` tinyint(3) unsigned NOT NULL default '0',
`SrcItemId` mediumint(8) unsigned NOT NULL default '0',
`SrcItemCount` tinyint(3) unsigned NOT NULL default '0',
`SrcSpell` mediumint(8) unsigned NOT NULL default '0',

View file

@ -0,0 +1,3 @@
ALTER TABLE db_version CHANGE COLUMN required_9297_01_mangos_item_template required_9309_01_mangos_quest_template bit;
ALTER TABLE quest_template ADD COLUMN RewXPId tinyint(3) unsigned NOT NULL default '0' AFTER NextQuestInChain;

View file

@ -260,6 +260,7 @@ pkgdata_DATA = \
9291_02_mangos_locales_quest.sql \
9296_01_mangos_spell_chain.sql \
9297_01_mangos_item_template.sql \
9309_01_mangos_quest_template.sql \
README
## Additional files to include when running 'make dist'
@ -500,4 +501,5 @@ EXTRA_DIST = \
9291_02_mangos_locales_quest.sql \
9296_01_mangos_spell_chain.sql \
9297_01_mangos_item_template.sql \
9309_01_mangos_quest_template.sql \
README