aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorNyeriah <sarah.trysan@live.com>2016-07-28 05:48:20 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-11 17:17:38 +0100
commit9db8ae1654975ac7ce2cdbff5ff67dd340845cc2 (patch)
tree6dc951e4400b67899bd06e1a6b75e91ec6603290 /sql
parent307003fc9c5ed33de3d77f6537c1e3205c58d667 (diff)
Scripts/Karazhan: Rework Attumen the Huntsman's script
Change log: - Timers are more accurate - Corrected Charge ability ID based on 6.x researches - Added Midnight's missing emotes - Fixed issue with instance being stuck in combat in case of wipes - Solved the rare scenario where Attumen would be summoned multiple times - Visual spell on 3rd phase transition added - Attumen and Midnight can now be damaged during 3rd phase transition - Midnight calls for the aid of every horse still alive in the stables - Use proper spells to summon Attumen and handle transitions - Now despawns on evade Video of encounter after changes: https://www.youtube.com/watch?v=KX0rqaBeSzw (cherry picked from commit 4c4d92faa3b9e82fbabffb03eb63761b282f03a2) Scripts/Karazhan: Fix a warning (cherry picked from commit 0cc33b5a42f44847393235c20411e34c7caf2bc5) Scripts/Karazhan: Register Midnight's summons * Solves issue with bosses not despawning after encounter (cherry picked from commit 2d0fa2d0201dce03f958aa7583f51fc92c46f795)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2017_02_11_12_world_2016_07_28_00_world.sql53
1 files changed, 53 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_02_11_12_world_2016_07_28_00_world.sql b/sql/updates/world/master/2017_02_11_12_world_2016_07_28_00_world.sql
new file mode 100644
index 00000000000..89d9d616efb
--- /dev/null
+++ b/sql/updates/world/master/2017_02_11_12_world_2016_07_28_00_world.sql
@@ -0,0 +1,53 @@
+SET @ATTUMEN_UNMOUNTED := 15550;
+SET @ATTUMEN_MOUNTED := 16152;
+SET @MIDNIGHT := 16151;
+SET @GMIDNIGHT := 135159;
+
+DELETE FROM `creature_text` WHERE `entry` IN (@MIDNIGHT, @ATTUMEN_UNMOUNTED, @ATTUMEN_MOUNTED);
+INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
+(@ATTUMEN_UNMOUNTED, 0, 0, 'It was... inevitable.', 14, 0, 100, 0, 0, 9169, 13460, 0, 'attumen SAY_KILL1'),
+(@ATTUMEN_UNMOUNTED, 0, 1, 'Another trophy to add to my collection!', 14, 0, 100, 0, 0, 9300, 15333, 0,'attumen SAY_KILL2'),
+(@ATTUMEN_UNMOUNTED, 1, 0, 'Such easy sport.', 14, 0, 100, 0, 0, 9170, 0, 0,'attumen SAY_RANDOM1'),
+(@ATTUMEN_UNMOUNTED, 1, 1, 'Amateurs! Do not think you can best me! I kill for a living.', 14, 0, 100, 0, 0, 9304, 0, 0, 'attumen SAY_RANDOM2'),
+(@ATTUMEN_UNMOUNTED, 2, 0, 'Weapons are merely a convenience for a warrior of my skill!', 14, 0, 100, 0, 0, 9166, 13490, 0, 'attumen SAY_DISARMED'),
+(@ATTUMEN_UNMOUNTED, 3, 0, 'Well done, Midnight!', 14, 0, 100, 0, 0, 9173, 15334, 0, 'attumen SAY_MIDNIGHT_KILL'),
+(@ATTUMEN_UNMOUNTED, 4, 0, 'Cowards! Wretches!', 14, 0, 100, 0, 0, 9167, 13459, 0, 'attumen SAY_APPEAR1'),
+(@ATTUMEN_UNMOUNTED, 4, 1, 'Who dares attack the steed of the Huntsman?', 14, 0, 100, 0, 0, 9298, 15378, 0, 'attumen SAY_APPEAR2'),
+(@ATTUMEN_UNMOUNTED, 4, 2, 'Perhaps you would rather test yourselves against a more formidable opponent?!', 14, 0, 100, 0, 0, 9299, 15379, 0, 'attumen SAY_APPEAR3'),
+(@ATTUMEN_UNMOUNTED, 5, 0, 'Come Midnight, let\'s disperse this petty rabble!', 14, 0, 100, 0, 0, 9168, 13456, 0, 'attumen SAY_MOUNT'),
+
+(@ATTUMEN_MOUNTED, 0, 0, 'It was... inevitable.', 14, 0, 100, 0, 0, 9169, 13460, 0, 'attumen SAY_KILL1'),
+(@ATTUMEN_MOUNTED, 0, 1, 'Another trophy to add to my collection!', 14, 0, 100, 0, 0, 9300, 15333, 0,'attumen SAY_KILL2'),
+(@ATTUMEN_MOUNTED, 1, 0, 'Such easy sport.', 14, 0, 100, 0, 0, 9170, 0, 0,'attumen SAY_RANDOM1'),
+(@ATTUMEN_MOUNTED, 1, 1, 'Amateurs! Do not think you can best me! I kill for a living.', 14, 0, 100, 0, 0, 9304, 0, 0, 'attumen SAY_RANDOM2'),
+(@ATTUMEN_MOUNTED, 2, 0, 'Weapons are merely a convenience for a warrior of my skill!', 14, 0, 100, 0, 0, 9166, 13490, 0, 'attumen SAY_DISARMED'),
+(@ATTUMEN_MOUNTED, 3, 0, 'Always knew... someday I would become... the hunted.', 14, 0, 100, 0, 0, 9165, 13462, 0, 'attumen SAY_DEATH'),
+
+(@MIDNIGHT, 0, 0, '%s calls for her master!', 16, 0, 100, 0, 0, 0, 13439, 0, 'midnight EMOTE_CALL_ATTUMEN'),
+(@MIDNIGHT, 1, 0, '%s rushes to her master\'s aid.', 16, 0, 100, 0, 0, 0, 13455, 0, 'midnight EMOTE_MOUNT_UP');
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` = 29770;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(13, 1, 29770, 0, 0, 31, 0, 3, 15550, 0, 0, 0, 0, '', 'Mount spell only hit Attumen the Huntsmen');
+
+DELETE FROM `creature_formations` WHERE `leaderGUID` = 135159;
+INSERT INTO `creature_formations` (`leaderGUID`, `memberGUID`, `dist`, `angle`, `groupAI`, `point_1`, `point_2`) VALUES
+(@GMIDNIGHT, @GMIDNIGHT, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135828, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135836, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135829, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135839, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135833, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135840, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135834, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135830, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135841, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135842, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135831, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135837, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135838, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135832, 0, 0, 1, 0, 0),
+(@GMIDNIGHT, 135835, 0, 0, 1, 0, 0);
+
+UPDATE `creature_template` SET `ScriptName` = 'boss_attumen', `lootid` = @ATTUMEN_MOUNTED WHERE `entry` = @ATTUMEN_MOUNTED;
+UPDATE `creature_loot_template` SET `entry` = @ATTUMEN_MOUNTED WHERE `entry` = @ATTUMEN_UNMOUNTED;