From 28ccd9975dcee40a3f8a477d08c24579bed07321 Mon Sep 17 00:00:00 2001 From: Lynx3d Date: Sat, 27 Nov 2010 00:34:33 +0100 Subject: [PATCH] [10786] A bit spell proc housekeeping * PPM values for enchanting spells 13898, 20029, 20032, 44524, 44576 * Correct cooldown for enchanting spell 59625 * Add procEx and cooldown for item 50198 --- sql/mangos.sql | 12 +++++++++--- .../10786_01_mangos_spell_proc_item_enchant.sql | 9 +++++++++ sql/updates/10786_02_mangos_spell_proc_event.sql | 6 ++++++ sql/updates/Makefile.am | 4 ++++ src/shared/revision_nr.h | 2 +- src/shared/revision_sql.h | 2 +- 6 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 sql/updates/10786_01_mangos_spell_proc_item_enchant.sql create mode 100644 sql/updates/10786_02_mangos_spell_proc_event.sql diff --git a/sql/mangos.sql b/sql/mangos.sql index c435f4d33..6188a2858 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_10764_01_mangos_spell_proc_event` bit(1) default NULL + `required_10786_02_mangos_spell_proc_event` bit(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes'; -- @@ -17331,7 +17331,7 @@ INSERT INTO `spell_proc_event` VALUES (59176, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0), (59327, 0x00, 15, 0x08000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), (59345, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), -(59630, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), +(59630, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 35), (59725, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000800, 0.000000, 0.000000, 0), (60061, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), (60063, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), @@ -17422,6 +17422,7 @@ INSERT INTO `spell_proc_event` VALUES (71217, 0x00, 11, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000010, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), (71226, 0x00, 15, 0x00000010, 0x00000000, 0x00000000, 0x08020000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), (71228, 0x00, 15, 0x00000000, 0x00000000, 0x00000000, 0x20000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), +(71404, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 50), (71406, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000,45.000000, 0), (71545, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000,45.000000, 0), (71611, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), @@ -17452,7 +17453,12 @@ LOCK TABLES `spell_proc_item_enchant` WRITE; INSERT INTO `spell_proc_item_enchant` (`entry`, `ppmRate`) VALUES (8034, 9), -- Frostbrand Weapon (8680, 8.5714), -- Instant Poison -(13218, 21.4286); -- Wound Poison +(13218, 21.4286), -- Wound Poison +(13897, 6.0), -- Enchant Weapon - Fiery Weapon +(20004, 6.0), -- Enchant Weapon - Lifestealing +(20005, 1.6), -- Enchant Weapon - Icy Chill +(44525, 3.4), -- Enchant Weapon - Icebreaker +(44578, 3.4); -- Enchant Weapon - Lifeward /*!40000 ALTER TABLE `spell_proc_item_enchant` ENABLE KEYS */; UNLOCK TABLES; diff --git a/sql/updates/10786_01_mangos_spell_proc_item_enchant.sql b/sql/updates/10786_01_mangos_spell_proc_item_enchant.sql new file mode 100644 index 000000000..1f8a8e06c --- /dev/null +++ b/sql/updates/10786_01_mangos_spell_proc_item_enchant.sql @@ -0,0 +1,9 @@ +ALTER TABLE db_version CHANGE COLUMN required_10764_01_mangos_spell_proc_event required_10786_01_mangos_spell_proc_item_enchant bit; + +DELETE FROM spell_proc_item_enchant WHERE entry IN (13897, 20004, 20005, 44525, 44578); +INSERT INTO spell_proc_item_enchant VALUES +(13897, 6.0), -- Enchant Weapon - Fiery Weapon +(20004, 6.0), -- Enchant Weapon - Lifestealing +(20005, 1.6), -- Enchant Weapon - Icy Chill +(44525, 3.4), -- Enchant Weapon - Icebreaker +(44578, 3.4); -- Enchant Weapon - Lifeward diff --git a/sql/updates/10786_02_mangos_spell_proc_event.sql b/sql/updates/10786_02_mangos_spell_proc_event.sql new file mode 100644 index 000000000..e2efe73c0 --- /dev/null +++ b/sql/updates/10786_02_mangos_spell_proc_event.sql @@ -0,0 +1,6 @@ +ALTER TABLE db_version CHANGE COLUMN required_10786_01_mangos_spell_proc_item_enchant required_10786_02_mangos_spell_proc_event bit; + +DELETE FROM spell_proc_event WHERE entry IN (59630,71404); +INSERT INTO spell_proc_event VALUES +(59630, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 35), +(71404, 0x7F, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 50); diff --git a/sql/updates/Makefile.am b/sql/updates/Makefile.am index d2cf75661..0818b94dc 100644 --- a/sql/updates/Makefile.am +++ b/sql/updates/Makefile.am @@ -125,6 +125,8 @@ pkgdata_DATA = \ 10749_01_mangos_mangos_string.sql \ 10762_01_mangos_spell_proc_event.sql \ 10764_01_mangos_spell_proc_event.sql \ + 10786_01_mangos_spell_proc_item_enchant.sql \ + 10786_02_mangos_spell_proc_event.sql \ README ## Additional files to include when running 'make dist' @@ -230,4 +232,6 @@ EXTRA_DIST = \ 10749_01_mangos_mangos_string.sql \ 10762_01_mangos_spell_proc_event.sql \ 10764_01_mangos_spell_proc_event.sql \ + 10786_01_mangos_spell_proc_item_enchant.sql \ + 10786_02_mangos_spell_proc_event.sql \ README diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index ae5f91624..39688f9a8 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 "10785" + #define REVISION_NR "10786" #endif // __REVISION_NR_H__ diff --git a/src/shared/revision_sql.h b/src/shared/revision_sql.h index 884dccdb4..cc4ad4000 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_10664_01_characters_arena_team_stats" - #define REVISION_DB_MANGOS "required_10764_01_mangos_spell_proc_event" + #define REVISION_DB_MANGOS "required_10786_02_mangos_spell_proc_event" #define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version" #endif // __REVISION_SQL_H__