Skip to content

Commit 2dd1943

Browse files
offlKrigsgaldrnet
authored andcommitted
Scripts/Serpentshrine Cavern: Rewrite Morogrim (TrinityCore/TrinityCore#31733)
1 parent 930969a commit 2dd1943

2 files changed

Lines changed: 306 additions & 218 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
-- Morogrim
2+
UPDATE `creature_template` SET `speed_run` = 2.14286, `BaseAttackTime` = 1600 WHERE `entry` = 21213;
3+
UPDATE `creature_model_info` SET `BoundingRadius` = 6.315, `CombatReach` = 6 WHERE `DisplayID` = 20739;
4+
5+
UPDATE `creature_text` SET `Type` = 41 WHERE `CreatureID` = 21213 AND `GroupID` IN (5,7);
6+
7+
UPDATE `creature` SET `position_x` = 370.829, `position_y` = -723.939, `position_z` = -14.005, `orientation` = 2.93215 WHERE `id` = 21213;
8+
9+
-- Murlocs
10+
DELETE FROM `spell_target_position` WHERE `ID` IN (37766,37923,37925,37926,37927,39813,39814,39815,39816,39817,37772,37928,37929,37931,37932,39818,39819,39820,39821,39822);
11+
INSERT INTO `spell_target_position` (`ID`, `EffectIndex`, `MapID`, `PositionX`, `PositionY`, `PositionZ`, `Orientation`, `VerifiedBuild`) VALUES
12+
(37766,0,548,266,-707,-2.91667,5.34071,0),
13+
(37925,0,548,260,-712,-2.91667,5.34071,0),
14+
(37927,0,548,254,-719,-2.91667,5.34071,0),
15+
(39814,0,548,260,-704,-2.91667,5.11381,0),
16+
(39816,0,548,253,-707,-2.91667,5.2709,0),
17+
(39817,0,548,250,-708,-2.91667,5.14872,0),
18+
19+
(37928,0,548,528,-699,-6.91667,3.9968,0),
20+
(37931,0,548,534,-706,-6.91667,3.9968,0),
21+
(39818,0,548,540,-700,-6.91667,4.32842,0),
22+
(39820,0,548,535,-695,-6.91667,4.01426,0),
23+
(39821,0,548,533,-691,-6.91667,4.31096,0),
24+
(39822,0,548,529,-691,-6.91667,4.31096,0);
25+
26+
UPDATE `creature_template` SET `speed_walk` = 1.6, `speed_run` = 1.42857 WHERE `entry` = 21920;
27+
28+
DELETE FROM `smart_scripts` WHERE `entryorguid` = 21920 AND `source_type` = 0;
29+
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
30+
(21920,0,0,0,37,0,100,0,0,0,0,0,0,116,2,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Tidewalker Lurker - On AI Initialize - Set Corpse Delay"),
31+
(21920,0,1,0,0,0,100,0,5000,10000,5000,10000,0,11,41932,0,0,0,0,0,2,0,0,0,0,0,0,0,0,"Tidewalker Lurker - In Combat - Cast 'Carnivorous Bite'");
32+
33+
-- Watery Grave (first is sniffed, other copied from Water Globule spells)
34+
UPDATE `spell_target_position` SET `PositionX` = 334, `PositionY` = -728, `PositionZ` = -14, `Orientation` = 0, `VerifiedBuild` = 26365 WHERE `ID` = 37850;
35+
UPDATE `spell_target_position` SET `PositionX` = 366, `PositionY` = -736, `PositionZ` = -14, `Orientation` = 2.513274 WHERE `ID` = 38023;
36+
UPDATE `spell_target_position` SET `PositionX` = 366, `PositionY` = -709, `PositionZ` = -14, `Orientation` = 2.513274 WHERE `ID` = 38024;
37+
UPDATE `spell_target_position` SET `PositionX` = 372, `PositionY` = -690, `PositionZ` = -14, `Orientation` = 4.258604 WHERE `ID` = 38025;
38+
39+
-- Water Globule
40+
UPDATE `spell_target_position` SET `PositionX` = 334, `PositionY` = -728, `PositionZ` = -14, `Orientation` = 0, `VerifiedBuild` = 26365 WHERE `ID` = 37854;
41+
UPDATE `spell_target_position` SET `PositionX` = 366, `PositionY` = -736, `PositionZ` = -14, `Orientation` = 2.513274, `VerifiedBuild` = 26365 WHERE `ID` = 37858;
42+
UPDATE `spell_target_position` SET `PositionX` = 366, `PositionY` = -709, `PositionZ` = -14, `Orientation` = 2.513274, `VerifiedBuild` = 26365 WHERE `ID` = 37860;
43+
UPDATE `spell_target_position` SET `PositionX` = 372, `PositionY` = -690, `PositionZ` = -14, `Orientation` = 4.258604, `VerifiedBuild` = 26365 WHERE `ID` = 37861;
44+
45+
UPDATE `creature_template` SET `speed_walk` = 0.4, `speed_run` = 0.285714 WHERE `entry` = 21913;
46+
47+
-- Spell scripts
48+
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
49+
'spell_morogrim_tidewalker_watery_grave',
50+
'spell_morogrim_tidewalker_summon_water_globules');
51+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
52+
(38028, 'spell_morogrim_tidewalker_watery_grave'),
53+
(37866, 'spell_morogrim_tidewalker_summon_water_globules');

0 commit comments

Comments
 (0)