mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-06 06:47:53 +00:00
fix(DB/Creature): Add Abdul the Insane and related creatures from The Staff of Storm's Fury (#26843)
This commit is contained in:
161
data/sql/updates/pending_db_world/rev_1785197903056451700.sql
Normal file
161
data/sql/updates/pending_db_world/rev_1785197903056451700.sql
Normal file
@@ -0,0 +1,161 @@
|
||||
--
|
||||
DELETE FROM `creature_text` WHERE (`CreatureID` = 24900);
|
||||
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
|
||||
(24900, 0, 0, 'Its power courses through me! I AM A GOD!', 12, 0, 100, 5, 0, 0, 23977, 0, 'Abdul the Insane'),
|
||||
(24900, 0, 1, 'ABDUL IS STRONG LIKE BULL!', 12, 0, 100, 5, 0, 0, 23978, 0, 'Abdul the Insane'),
|
||||
(24900, 0, 2, 'ARE YOU CHALLENGING ME? I HAVE THE STRENGTH OF TEN MEN!', 12, 0, 100, 5, 0, 0, 23979, 0, 'Abdul the Insane');
|
||||
|
||||
DELETE FROM `creature_template_addon` WHERE (`entry` = 24900);
|
||||
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
|
||||
(24900, 0, 0, 0, 1, 0, 0, '42459');
|
||||
|
||||
DELETE FROM `creature_template_movement` WHERE (`CreatureId` = 24902);
|
||||
INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES
|
||||
(24902, 0, 0, 1, 0, 0, 0, 0);
|
||||
|
||||
SET @CGUID := 131255;
|
||||
|
||||
DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+60 AND `id` IN (24900, 24678, 24676, 24902);
|
||||
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `CreateObject`, `VerifiedBuild`) VALUES
|
||||
-- Abdul the Insane
|
||||
(@CGUID+0 , 24900, 571, 495, 4226, 1, 538.5657958984375, -3534.0439453125, 13.27492332458496093, 2.76789093017578125, 300, 2, 68887),
|
||||
-- ID - 29266 Permanent Feign Death
|
||||
-- Tuskarrs already added
|
||||
-- (@CGUID+1 , 24678, 571, 495, 4226, 1, 513.756103515625, -3475.178955078125, 3.054831266403198242, 4.328416347503662109, 300, 2, 68887),
|
||||
-- (@CGUID+2 , 24678, 571, 495, 4226, 1, 546.94964599609375, -3499.382080078125, 1.653660416603088378, 3.996803998947143554, 300, 2, 68887),
|
||||
-- (@CGUID+3 , 24678, 571, 495, 4226, 1, 550.87042236328125, -3473.961669921875, 6.492102622985839843, 1.082104086875915527, 300, 2, 68887),
|
||||
-- (@CGUID+4 , 24678, 571, 495, 4226, 1, 599.42919921875, -3485.27392578125, 3.573660135269165039, 1.396263360977172851, 300, 2, 68887),
|
||||
-- (@CGUID+5 , 24678, 571, 495, 4226, 1, 575.3487548828125, -3477.45263671875, 6.197434425354003906, 1.169370532035827636, 300, 2, 68887),
|
||||
-- (@CGUID+6 , 24678, 571, 495, 4226, 1, 563.58868408203125, -3447.75439453125, 12.59216117858886718, 3.892084121704101562, 300, 2, 68887),
|
||||
-- (@CGUID+7 , 24678, 571, 495, 4226, 1, 531.68231201171875, -3453.604248046875, 11.97931098937988281, 1.832595705986022949, 300, 2, 68887),
|
||||
(@CGUID+8 , 24676, 571, 495, 4226, 1, 534.32720947265625, -3539.286376953125, 13.35808563232421875, 2.111848354339599609, 300, 2, 68887),
|
||||
(@CGUID+9 , 24676, 571, 495, 4226, 1, 504.918731689453125, -3533.240478515625, 0.43048134446144104, 0.977384388446807861, 300, 2, 68887),
|
||||
(@CGUID+10, 24676, 571, 495, 4226, 1, 532.400390625, -3535.951904296875, 0.452539354562759399, 1.256637096405029296, 300, 2, 68887),
|
||||
(@CGUID+11, 24676, 571, 495, 4226, 1, 514.6165771484375, -3537.1767578125, 13.05911636352539062, 5.305800914764404296, 300, 2, 68887),
|
||||
(@CGUID+12, 24676, 571, 495, 4226, 1, 520.39453125, -3528.095458984375, 12.97960662841796875, 6.248278617858886718, 300, 2, 68887),
|
||||
(@CGUID+13, 24676, 571, 495, 4226, 1, 507.170318603515625, -3528.2158203125, 0.452536344528198242, 4.764749050140380859, 300, 2, 68887),
|
||||
(@CGUID+14, 24676, 571, 495, 4226, 1, 502.215240478515625, -3536.001953125, 7.773830413818359375, 5.567600250244140625, 300, 2, 68887),
|
||||
(@CGUID+15, 24676, 571, 495, 4226, 1, 498.7921142578125, -3526.788330078125, 18.84368896484375, 5.951572895050048828, 300, 2, 68887),
|
||||
(@CGUID+16, 24676, 571, 495, 4226, 1, 524.718017578125, -3538.3740234375, 13.1880807876586914, 0.506145477294921875, 300, 2, 68887),
|
||||
(@CGUID+17, 24676, 571, 495, 4226, 1, 518.16339111328125, -3538.41455078125, 7.774502277374267578, 6.230825424194335937, 300, 2, 68887),
|
||||
(@CGUID+18, 24676, 571, 495, 4226, 1, 515.48565673828125, -3536.5859375, 0.45254334807395935, 1.692969322204589843, 300, 2, 68887),
|
||||
(@CGUID+19, 24676, 571, 495, 4226, 1, 547.3468017578125, -3542.5078125, 4.519763469696044921, 0.977384388446807861, 300, 2, 68887),
|
||||
(@CGUID+20, 24676, 571, 495, 4226, 1, 533.98565673828125, -3531.822509765625, 13.15357398986816406, 4.834561824798583984, 300, 2, 68887),
|
||||
(@CGUID+21, 24676, 571, 495, 4226, 1, 520.6046142578125, -3529.746337890625, 7.774504661560058593, 3.351032257080078125, 300, 2, 68887),
|
||||
(@CGUID+22, 24676, 571, 495, 4226, 1, 507.74859619140625, -3525.21142578125, 7.773883342742919921, 6.021385669708251953, 300, 2, 68887),
|
||||
(@CGUID+23, 24676, 571, 495, 4226, 1, 499.4669189453125, -3529.2509765625, 12.82720661163330078, 3.490658521652221679, 300, 2, 68887),
|
||||
(@CGUID+24, 24676, 571, 495, 4226, 1, 503.6337890625, -3530.083251953125, 18.15540885925292968, 3.874630928039550781, 300, 2, 68887),
|
||||
(@CGUID+25, 24676, 571, 495, 4226, 1, 531.33056640625, -3540.401611328125, 7.774502277374267578, 4.328416347503662109, 300, 2, 68887),
|
||||
(@CGUID+26, 24676, 571, 495, 4226, 1, 490.982635498046875, -3527.24658203125, 7.772498607635498046, 4.729842185974121093, 300, 2, 68887),
|
||||
-- Relays
|
||||
(@CGUID+27, 24902, 571, 495, 4226, 0, 502.78961181640625, -3529.977783203125, 1.876146316528320312, 5.8817596435546875, 300, 2, 68887),
|
||||
(@CGUID+28, 24902, 571, 495, 4226, 0, 535.84027099609375, -3536.106689453125, 2.473374366760253906, 0.575958669185638427, 300, 2, 68887),
|
||||
(@CGUID+29, 24902, 571, 495, 4226, 0, 527.89703369140625, -3537.730224609375, 14.98894596099853515, 4.101523876190185546, 300, 2, 68887),
|
||||
(@CGUID+30, 24902, 571, 495, 4226, 0, 542.07421875, -3540.149658203125, 25.2296142578125, 1.65806281566619873, 300, 2, 68887),
|
||||
(@CGUID+31, 24902, 571, 495, 4226, 0, 503.9805908203125, -3535.368408203125, 15.09825325012207031, 1.413716673851013183, 300, 2, 68887),
|
||||
(@CGUID+32, 24902, 571, 495, 4226, 0, 510.803924560546875, -3532.58935546875, 28.18550300598144531, 0.314159274101257324, 300, 2, 68887),
|
||||
(@CGUID+33, 24902, 571, 495, 4226, 0, 533.3746337890625, -3540.956298828125, 9.142557144165039062, 3.909537553787231445, 300, 2, 68887),
|
||||
(@CGUID+34, 24902, 571, 495, 4226, 0, 512.82012939453125, -3538.3798828125, 14.82322120666503906, 3.944444179534912109, 300, 2, 68887),
|
||||
(@CGUID+35, 24902, 571, 495, 4226, 0, 539.58770751953125, -3539.770751953125, 34.4637908935546875, 4.852015495300292968, 300, 2, 68887),
|
||||
(@CGUID+36, 24902, 571, 495, 4226, 0, 544.17913818359375, -3536.342041015625, 18.80006599426269531, 0.680678427219390869, 300, 2, 68887),
|
||||
(@CGUID+37, 24902, 571, 495, 4226, 0, 514.40899658203125, -3533.298095703125, 20.05545234680175781, 5.969026088714599609, 300, 2, 68887),
|
||||
(@CGUID+38, 24902, 571, 495, 4226, 0, 526.3057861328125, -3531.612060546875, 9.31069183349609375, 3.385938644409179687, 300, 2, 68887),
|
||||
(@CGUID+39, 24902, 571, 495, 4226, 0, 514.2957763671875, -3521.106689453125, 29.82574272155761718, 4.904375076293945312, 300, 2, 68887),
|
||||
(@CGUID+40, 24902, 571, 495, 4226, 0, 512.51300048828125, -3522.553955078125, 40.32722854614257812, 5.724679946899414062, 300, 2, 68887),
|
||||
(@CGUID+41, 24902, 571, 495, 4226, 0, 507.89984130859375, -3537.92041015625, 37.27643585205078125, 5.462880611419677734, 300, 2, 68887),
|
||||
(@CGUID+42, 24902, 571, 495, 4226, 0, 507.966461181640625, -3525.26171875, 9.635132789611816406, 0.261799395084381103, 300, 2, 68887),
|
||||
(@CGUID+43, 24902, 571, 495, 4226, 0, 518.94781494140625, -3528.173583984375, 2.695600271224975585, 0.506145477294921875, 300, 2, 68887),
|
||||
(@CGUID+44, 24902, 571, 495, 4226, 0, 507.234375, -3540.390380859375, 17.92135429382324218, 1.151917338371276855, 300, 2, 68887),
|
||||
(@CGUID+45, 24902, 571, 495, 4226, 0, 547.06927490234375, -3542.5791015625, 6.49201059341430664, 6.2657318115234375, 300, 2, 68887),
|
||||
(@CGUID+46, 24902, 571, 495, 4226, 0, 540.0841064453125, -3546.8876953125, 18.93019866943359375, 4.677482128143310546, 300, 2, 68887),
|
||||
(@CGUID+47, 24902, 571, 495, 4226, 0, 544.32098388671875, -3534.352783203125, 26.10087966918945312, 5.689773082733154296, 300, 2, 68887),
|
||||
-- Live Crazed Slavers
|
||||
(@CGUID+48, 24676, 571, 495, 4226, 1, 584.24462890625, -3444.849609375, 15.61687374114990234, 4.455326557159423828, 300, 2, 68887),
|
||||
(@CGUID+49, 24676, 571, 495, 4226, 1, 603.7803955078125, -3474.509521484375, 5.77075958251953125, 2.223934412002563476, 300, 2, 68887),
|
||||
(@CGUID+50, 24676, 571, 495, 4226, 1, 528.7786865234375, -3464.49462890625, 7.305242538452148437, 2.169778823852539062, 300, 2, 68887),
|
||||
(@CGUID+51, 24676, 571, 495, 4226, 1, 542.29071044921875, -3448.540283203125, 12.66628646850585937, 5.86032724380493164, 300, 2, 68887),
|
||||
(@CGUID+52, 24676, 571, 495, 4226, 1, 511.39642333984375, -3439.80419921875, 11.89968109130859375, 4.935037612915039062, 300, 2, 68887),
|
||||
(@CGUID+53, 24676, 571, 495, 4226, 1, 608.0699462890625, -3455.2109375, 13.95431327819824218, 5.57839202880859375, 300, 2, 68887),
|
||||
(@CGUID+54, 24676, 571, 495, 4226, 1, 511.60784912109375, -3464.18994140625, 6.321629524230957031, 4.948744773864746093, 300, 2, 68887),
|
||||
(@CGUID+55, 24676, 571, 495, 4226, 1, 556.938232421875, -3454.048583984375, 11.112030029296875, 2.213882684707641601, 300, 2, 68887),
|
||||
(@CGUID+56, 24676, 571, 495, 4226, 1, 540.74676513671875, -3481.5888671875, 4.12340545654296875, 3.639571905136108398, 300, 2, 68887),
|
||||
(@CGUID+57, 24676, 571, 495, 4226, 1, 536.22503662109375, -3424.553955078125, 15.90343570709228515, 0.815584659576416015, 300, 2, 68887),
|
||||
(@CGUID+58, 24676, 571, 495, 4226, 1, 552.94879150390625, -3432.64306640625, 16.24846076965332031, 6.042760372161865234, 300, 2, 68887),
|
||||
(@CGUID+59, 24676, 571, 495, 4226, 1, 566.82171630859375, -3497.459228515625, 3.745334148406982421, 0.587951838970184326, 300, 2, 68887),
|
||||
(@CGUID+60, 24676, 571, 495, 4226, 1, 563.77935791015625, -3419.53369140625, 17.73925971984863281, 0.82975548505783081, 300, 2, 68887);
|
||||
|
||||
DELETE FROM `creature_addon` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+60;
|
||||
INSERT INTO `creature_addon` (`guid`, `path_id`, `bytes2`, `auras`) VALUES
|
||||
(@CGUID+0 , (@CGUID+0)*10, 1, '42459'),
|
||||
-- (@CGUID+1 , 0, 1, '29266'),
|
||||
-- (@CGUID+2 , 0, 1, '29266'),
|
||||
-- (@CGUID+3 , 0, 1, '29266'),
|
||||
-- (@CGUID+4 , 0, 1, '29266'),
|
||||
-- (@CGUID+5 , 0, 1, '29266'),
|
||||
-- (@CGUID+6 , 0, 1, '29266'),
|
||||
-- (@CGUID+7 , 0, 1, '29266'),
|
||||
(@CGUID+8 , 0, 1, '29266'),
|
||||
(@CGUID+9 , 0, 1, '29266'),
|
||||
(@CGUID+10, 0, 1, '29266'),
|
||||
(@CGUID+11, 0, 1, '29266'),
|
||||
(@CGUID+12, 0, 1, '29266'),
|
||||
(@CGUID+13, 0, 1, '29266'),
|
||||
(@CGUID+14, 0, 1, '29266'),
|
||||
(@CGUID+15, 0, 1, '29266'),
|
||||
(@CGUID+16, 0, 1, '29266'),
|
||||
(@CGUID+17, 0, 1, '29266'),
|
||||
(@CGUID+18, 0, 1, '29266'),
|
||||
(@CGUID+19, 0, 1, '29266'),
|
||||
(@CGUID+20, 0, 1, '29266'),
|
||||
(@CGUID+21, 0, 1, '29266'),
|
||||
(@CGUID+22, 0, 1, '29266'),
|
||||
(@CGUID+23, 0, 1, '29266'),
|
||||
(@CGUID+24, 0, 1, '29266'),
|
||||
(@CGUID+25, 0, 1, '29266'),
|
||||
(@CGUID+26, 0, 1, '29266');
|
||||
|
||||
UPDATE `creature` SET `MovementType` = 2 WHERE `guid` = @CGUID+0 AND `id` = 24900;
|
||||
DELETE FROM `waypoint_data` WHERE `id` = (@CGUID+0)*10;
|
||||
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`) VALUES
|
||||
((@CGUID+0)*10, 1 , 520.78326, -3528.5442, 12.9033985, NULL),
|
||||
((@CGUID+0)*10, 2 , 520.56726, -3528.5063, 12.90191, NULL),
|
||||
((@CGUID+0)*10, 3 , 518.361, -3528.121, 12.875548, NULL),
|
||||
((@CGUID+0)*10, 4 , 515.5044, -3527.6223, 12.961787, NULL),
|
||||
((@CGUID+0)*10, 5 , 515.0117, -3528.3594, 12.976471, NULL),
|
||||
((@CGUID+0)*10, 6 , 511.1382, -3527.1458, 17.459843, NULL),
|
||||
((@CGUID+0)*10, 7 , 508.55902, -3526.4094, 17.707817, NULL),
|
||||
((@CGUID+0)*10, 8 , 493.4898, -3522.895, 19.701223, NULL),
|
||||
((@CGUID+0)*10, 9 , 491.23422, -3526.7734, 19.972063, NULL),
|
||||
((@CGUID+0)*10, 10, 491.6969, -3530.882, 19.567657, NULL),
|
||||
((@CGUID+0)*10, 11, 506.23975, -3536.302, 17.600271, NULL),
|
||||
((@CGUID+0)*10, 12, 508.6644, -3526.426, 17.695713, NULL),
|
||||
((@CGUID+0)*10, 13, 515.59094, -3527.4902, 12.962172, NULL),
|
||||
((@CGUID+0)*10, 14, 516.2962, -3534.7651, 13.047868, NULL),
|
||||
((@CGUID+0)*10, 15, 515.4622, -3539.2668, 12.90454, NULL),
|
||||
((@CGUID+0)*10, 16, 525.41144, -3542.12, 13.014915, NULL),
|
||||
((@CGUID+0)*10, 17, 534.9085, -3545.4343, 13.161723, NULL),
|
||||
((@CGUID+0)*10, 18, 538.82996, -3540.1965, 13.375676, NULL),
|
||||
((@CGUID+0)*10, 19, 536.6614, -3533.3171, 13.121769, NULL),
|
||||
((@CGUID+0)*10, 20, 529.2123, -3530.3767, 12.970497, NULL);
|
||||
|
||||
UPDATE `creature` SET `MovementType` = 1, `wander_distance` = 10 WHERE `guid` BETWEEN @CGUID+48 AND @CGUID+60 AND `id` = 24676;
|
||||
|
||||
-- One Relay casts every 5s
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE (`entry` = 24902);
|
||||
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = -(@CGUID+27));
|
||||
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`, `event_param6`, `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
|
||||
(-(@CGUID+27), 0, 0, 0, 60, 0, 100, 0, 5000, 5000, 5000, 5000, 0, 0, 11, 44886, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Abdul Relay - On Update - Cast \'Storm\'s Fury Staff\'');
|
||||
|
||||
-- Spell only affects other Relays
|
||||
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 13) AND (`SourceGroup` = 1) AND (`SourceEntry` = 44886) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 31) AND (`ConditionTarget` = 0) AND (`ConditionValue1` = 3) AND (`ConditionValue2` = 24902) AND (`ConditionValue3` = 0);
|
||||
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
|
||||
(13, 1, 44886, 0, 0, 31, 0, 3, 24902, 0, 0, 0, 0, '', 'Spell Storm\'s Fury Staff (44886) can only target Abdul Relay (24902)');
|
||||
|
||||
-- Abdul talks every now and then. Around 20s
|
||||
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 24900;
|
||||
DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 24900);
|
||||
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`, `event_param6`, `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
|
||||
(24900, 0, 0, 0, 1, 0, 100, 0, 15000, 30000, 15000, 30000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Abdul the Insane - Out of Combat - Say Line');
|
||||
|
||||
-- Delete old Slavers
|
||||
DELETE FROM `creature` WHERE `guid` IN (104895,104897,104902,104903,104908,104909,104911,104912,104913,104915,104916) AND `id` = 24676;
|
||||
Reference in New Issue
Block a user