diff --git a/sql/mangos.sql b/sql/mangos.sql index 246b16e72..a0990506b 100644 --- a/sql/mangos.sql +++ b/sql/mangos.sql @@ -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_8800_01_mangos_spell_elixir` bit(1) default NULL + `required_8803_02_mangos_playercreateinfo_action` bit(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes'; -- @@ -10420,7 +10420,7 @@ INSERT INTO `playercreateinfo_action` VALUES (8,1,72,6603,0), (8,1,73,78,0), (8,1,74,2764,0), -(8,1,75,26296,0), +(8,1,75,26297,0), (8,1,83,117,128), (8,1,84,6603,0), (8,1,96,6603,0), @@ -10428,7 +10428,7 @@ INSERT INTO `playercreateinfo_action` VALUES (8,3,0,6603,0), (8,3,1,2973,0), (8,3,2,75,0), -(8,3,3,20554,0), +(8,3,3,26297,0), (8,3,10,159,128), (8,3,11,4604,128), (8,4,0,6603,0), @@ -10440,7 +10440,7 @@ INSERT INTO `playercreateinfo_action` VALUES (8,5,0,6603,0), (8,5,1,585,0), (8,5,2,2050,0), -(8,5,3,20554,0), +(8,5,3,26297,0), (8,5,10,159,128), (8,5,11,4540,128), (8,6,0,6603,0), @@ -10449,17 +10449,17 @@ INSERT INTO `playercreateinfo_action` VALUES (8,6,3,45462,0), (8,6,4,45902,0), (8,6,5,47541,0), -(8,6,10,50621,0), +(8,6,10,26297,0), (8,7,0,6603,0), (8,7,1,403,0), (8,7,2,331,0), -(8,7,3,20554,0), +(8,7,3,26297,0), (8,7,10,159,128), (8,7,11,117,128), (8,8,0,6603,0), (8,8,1,133,0), (8,8,2,168,0), -(8,8,3,20554,0), +(8,8,3,26297,0), (8,8,10,159,128), (8,8,11,117,128), (10,2,0,6603,0), @@ -12513,7 +12513,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (8,1,22027,'Remove Insignia'), (8,1,22810,'Opening - No Text'), (8,1,26290,'Bow Specialization'), -(8,1,26296,'Berserking'), +(8,1,26297,'Berserking'), (8,1,32215,'Victorious State'), (8,1,45927,'Summon Friend'), (8,1,58943,'Da Voodoo Shuffle'), @@ -12547,7 +12547,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (8,3,9078,'Cloth'), (8,3,9125,'Generic'), (8,3,13358,'Defensive State (DND)'), -(8,3,20554,'Berserking'), +(8,3,26297,'Berserking'), (8,3,20555,'Regeneration'), (8,3,20557,'Beast Slaying'), (8,3,20558,'Throwing Specialization'), @@ -12632,7 +12632,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (8,5,8386,'Attacking'), (8,5,9078,'Cloth'), (8,5,9125,'Generic'), -(8,5,20554,'Berserking'), +(8,5,26297,'Berserking'), (8,5,20555,'Regeneration'), (8,5,20557,'Beast Slaying'), (8,5,20558,'Throwing Specialization'), @@ -12707,7 +12707,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (8,6,48266,'Blood Presence'), (8,6,49410,'Forceful Deflection'), (8,6,49576,'Death Grip'), -(8,6,50621,'Berserking'), +(8,6,26297,'Berserking'), (8,6,52665,'Sigil'), (8,6,58943,'Da Voodoo Shuffle'), (8,6,59879,'Blood Plague'), @@ -12744,7 +12744,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (8,7,9078,'Cloth'), (8,7,9116,'Shield'), (8,7,9125,'Generic'), -(8,7,20554,'Berserking'), +(8,7,26297,'Berserking'), (8,7,20555,'Regeneration'), (8,7,20557,'Beast Slaying'), (8,7,20558,'Throwing Specialization'), @@ -12785,7 +12785,7 @@ INSERT INTO `playercreateinfo_spell` VALUES (8,8,8386,'Attacking'), (8,8,9078,'Cloth'), (8,8,9125,'Generic'), -(8,8,20554,'Berserking'), +(8,8,26297,'Berserking'), (8,8,20555,'Regeneration'), (8,8,20557,'Beast Slaying'), (8,8,20558,'Throwing Specialization'), diff --git a/sql/updates/8803_01_mangos_playercreateinfo_spell.sql b/sql/updates/8803_01_mangos_playercreateinfo_spell.sql new file mode 100644 index 000000000..9b6306b27 --- /dev/null +++ b/sql/updates/8803_01_mangos_playercreateinfo_spell.sql @@ -0,0 +1,3 @@ +ALTER TABLE db_version CHANGE COLUMN required_8800_01_mangos_spell_elixir required_8803_01_mangos_playercreateinfo_spell bit; + +UPDATE `playercreateinfo_spell` SET `spell` = 26297 WHERE `spell` IN (20554,26296,50621); diff --git a/sql/updates/8803_02_mangos_playercreateinfo_action.sql b/sql/updates/8803_02_mangos_playercreateinfo_action.sql new file mode 100644 index 000000000..077d4d29d --- /dev/null +++ b/sql/updates/8803_02_mangos_playercreateinfo_action.sql @@ -0,0 +1,5 @@ +ALTER TABLE db_version CHANGE COLUMN required_8803_01_mangos_playercreateinfo_spell required_8803_02_mangos_playercreateinfo_action bit; + +UPDATE `playercreateinfo_action` + SET `action` = 26297 + WHERE `action` IN (20554,26296,50621) AND `type` = 0; diff --git a/sql/updates/Makefile.am b/sql/updates/Makefile.am index 6a6263391..a7fce4537 100644 --- a/sql/updates/Makefile.am +++ b/sql/updates/Makefile.am @@ -154,6 +154,8 @@ pkgdata_DATA = \ 8777_01_mangos_creature.sql \ 8777_02_mangos_gameobject.sql \ 8800_01_mangos_spell_elixir.sql \ + 8803_01_mangos_playercreateinfo_spell.sql \ + 8803_02_mangos_playercreateinfo_action.sql \ README ## Additional files to include when running 'make dist' @@ -288,4 +290,6 @@ EXTRA_DIST = \ 8777_01_mangos_creature.sql \ 8777_02_mangos_gameobject.sql \ 8800_01_mangos_spell_elixir.sql \ + 8803_01_mangos_playercreateinfo_spell.sql \ + 8803_02_mangos_playercreateinfo_action.sql \ README diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c72b6e980..670ac9f2c 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8802" + #define REVISION_NR "8803" #endif // __REVISION_NR_H__ diff --git a/src/shared/revision_sql.h b/src/shared/revision_sql.h index 004d772b9..68bbe6d0a 100644 --- a/src/shared/revision_sql.h +++ b/src/shared/revision_sql.h @@ -1,6 +1,6 @@ #ifndef __REVISION_SQL_H__ #define __REVISION_SQL_H__ #define REVISION_DB_CHARACTERS "required_8721_01_characters_guild" - #define REVISION_DB_MANGOS "required_8800_01_mangos_spell_elixir" + #define REVISION_DB_MANGOS "required_8803_02_mangos_playercreateinfo_action" #define REVISION_DB_REALMD "required_8728_01_realmd_account" #endif // __REVISION_SQL_H__