From a4baef0c475eaa80768c2eb6f909835e3ace8458 Mon Sep 17 00:00:00 2001 From: Alez Date: Sun, 26 Jul 2009 20:46:50 +0400 Subject: [PATCH] [8254] Internal cooldowns for some item effects. Signed-off-by: VladimirMangos Also add lost chain data part to mangos.sql from prev. commit. --- sql/mangos.sql | 10 +++++++++- sql/updates/8253_01_mangos_spell_chain.sql | 2 +- sql/updates/8254_01_mangos_spell_proc_event.sql | 6 ++++++ sql/updates/Makefile.am | 2 ++ src/shared/revision_nr.h | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 sql/updates/8254_01_mangos_spell_proc_event.sql diff --git a/sql/mangos.sql b/sql/mangos.sql index 3f5149fea..ca94c27ae 100644 --- a/sql/mangos.sql +++ b/sql/mangos.sql @@ -23,7 +23,7 @@ DROP TABLE IF EXISTS `db_version`; CREATE TABLE `db_version` ( `version` varchar(120) default NULL, `creature_ai_version` varchar(120) default NULL, - `required_8253_02_mangos_spell_proc_event` bit(1) default NULL + `required_8254_01_mangos_spell_proc_event` bit(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes'; -- @@ -15777,6 +15777,12 @@ INSERT INTO spell_chain VALUES (26372,26371,26364,9,0), (49278,26372,26364,10,0), (49279,49278,26364,11,0), +/*Maelstrom Weapon*/ +(51528,0,51528,1,0), +(51529,51528,51528,2,0), +(51530,51529,51528,3,0), +(51531,51530,51528,4,0), +(51532,51531,51528,5,0), /*Nature Resistance Totem*/ (10595,0,10595,1,0), (10600,10595,10595,2,0), @@ -17866,6 +17872,7 @@ INSERT INTO `spell_proc_event` VALUES (55677, 0x00000000, 6, 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), (55680, 0x00000000, 6, 0x00000200, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), (55689, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0), +(55747, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), (55768, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), (55776, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), (56218, 0x00000000, 5, 0x00000002, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), @@ -17913,6 +17920,7 @@ INSERT INTO `spell_proc_event` VALUES (60132, 0x00000000, 15, 0x00000000, 0x08020000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), (60170, 0x00000000, 5, 0x00000006, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), (60172, 0x00000000, 5, 0x00040000, 0x00000000, 0x00000000, 0x00000000, 0x00010000, 0.000000, 0.000000, 0), +(60436, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), (60442, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), (60493, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), (60503, 0x00000000, 4, 0x00000004, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0), diff --git a/sql/updates/8253_01_mangos_spell_chain.sql b/sql/updates/8253_01_mangos_spell_chain.sql index 19d35f8cd..207a22381 100644 --- a/sql/updates/8253_01_mangos_spell_chain.sql +++ b/sql/updates/8253_01_mangos_spell_chain.sql @@ -13,4 +13,4 @@ INSERT INTO `spell_chain` (`spell_id`, `prev_spell`, `first_spell`, `rank`, `req (51529,51528,51528,2,0), (51530,51529,51528,3,0), (51531,51530,51528,4,0), -(51532,51531,51528,5,0); \ No newline at end of file +(51532,51531,51528,5,0); diff --git a/sql/updates/8254_01_mangos_spell_proc_event.sql b/sql/updates/8254_01_mangos_spell_proc_event.sql new file mode 100644 index 000000000..9be248781 --- /dev/null +++ b/sql/updates/8254_01_mangos_spell_proc_event.sql @@ -0,0 +1,6 @@ +ALTER TABLE db_version CHANGE COLUMN required_8253_02_mangos_spell_proc_event required_8254_01_mangos_spell_proc_event bit; + +DELETE FROM `spell_proc_event` WHERE `entry` IN (55747,60436); +INSERT INTO `spell_proc_event` VALUES +(55747, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45), +(60436, 0x00000000, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 45); diff --git a/sql/updates/Makefile.am b/sql/updates/Makefile.am index 89aaa3def..3a26346aa 100644 --- a/sql/updates/Makefile.am +++ b/sql/updates/Makefile.am @@ -260,6 +260,7 @@ pkgdata_DATA = \ 8251_03_mangos_spell_proc_event.sql \ 8253_01_mangos_spell_chain.sql \ 8253_02_mangos_spell_proc_event.sql \ + 8254_01_mangos_spell_proc_event.sql \ README ## Additional files to include when running 'make dist' @@ -500,4 +501,5 @@ EXTRA_DIST = \ 8251_03_mangos_spell_proc_event.sql \ 8253_01_mangos_spell_chain.sql \ 8253_02_mangos_spell_proc_event.sql \ + 8254_01_mangos_spell_proc_event.sql \ README diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index fc6b3185e..33baa5e7d 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 "8253" + #define REVISION_NR "8254" #endif // __REVISION_NR_H__