diff --git a/data/sql/updates/db_world/2023_03_01_00.sql b/data/sql/updates/db_world/2023_03_01_00.sql new file mode 100644 index 000000000..03dbfd4ac --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_00.sql @@ -0,0 +1,39 @@ +-- DB update 2023_02_28_00 -> 2023_03_01_00 +-- Bonechewer Messenger +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=0 AND `entryorguid`=21244 AND `id`=0; +-- Coilskar Cistern +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=0 AND `entryorguid`=-25065 AND `id`=1002; +-- The Botanica +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=9 AND `entryorguid` IN (1842000, 1842002) AND `id`=3; +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=9 AND `entryorguid` IN (1842001, 1842003) AND `id`=5; +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=0 AND `entryorguid` IN (-147029, -147030, -147031, -147032, -147034) AND `id`=1001; +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=0 AND `entryorguid`=-147058 AND `id`=1002; +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=9 AND `entryorguid`=1842100 AND `id`=5; +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=9 AND `entryorguid` IN (1950501, 1950502, 1950503, 1950504) AND `id`=1; +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=0 AND `entryorguid` IN (-147019, -147021, -147022, -147023, -147020, -147024, -147006, -147018, -147005, -147007) AND `id`=1002; +UPDATE `smart_scripts` SET `action_param6`=2 WHERE `source_type`=0 AND `entryorguid`=-147035 AND `id` IN (1001, 1004); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (-147040, -147025, -147026)); +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 +(-147040, 0, 0, 0, 0, 0, 100, 0, 2500, 3000, 12500, 13000, 0, 11, 34793, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Tempest-Forge Peacekeeper - In Combat - Cast \'Arcane Blast\''), +(-147040, 0, 1, 0, 2, 0, 100, 1, 60, 80, 0, 0, 0, 11, 34791, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Tempest-Forge Peacekeeper - Between 60-80% Health - Cast \'Arcane Explosion\' (No Repeat)'), +(-147040, 0, 2, 0, 2, 0, 100, 1, 20, 40, 0, 0, 0, 11, 34785, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 'Tempest-Forge Peacekeeper - Between 20-40% Health - Cast \'Arcane Volley\' (No Repeat)'), +(-147040, 0, 1001, 1002, 10, 0, 100, 1, 0, 90, 0, 0, 1, 45, 1, 1, 0, 0, 0, 0, 10, 147025, 17993, 0, 0, 0, 0, 0, 0, 'Tempest-Forge Peacekeeper - Within 0-90 Range Out of Combat LoS - Set Data 1 1'), +(-147040, 0, 1002, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 147026, 17993, 0, 0, 0, 0, 0, 0, 'Tempest-Forge Peacekeeper - Within 0-90 Range Out of Combat LoS - Set Data 1 1'), + +(-147026, 0, 0, 0, 0, 0, 100, 1, 2000, 4000, 0, 0, 0, 11, 34784, 0, 0, 0, 0, 0, 26, 20, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - In Combat - Cast \'Intervene\' (No Repeat)'), +(-147026, 0, 1, 0, 0, 0, 100, 0, 4000, 6000, 9000, 11000, 0, 11, 29765, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - In Combat - Cast \'Crystal Strike\''), +(-147026, 0, 2, 0, 0, 0, 100, 0, 8000, 10000, 15000, 20000, 0, 11, 35399, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - In Combat - Cast \'Spell Reflection\''), +(-147026, 0, 1001, 0, 58, 0, 100, 1, 6, 1799308, 0, 0, 0, 80, 1799301, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - On Waypoint Finished - Run Script'), +(-147026, 0, 1002, 0, 38, 0, 100, 1, 1, 1, 0, 0, 0, 53, 0, 1799308, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - On Data Set 1 1 - Start Waypoint'), +(-147026, 0, 1003, 0, 11, 0, 100, 1, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - On Respawn - Set Sheath Unarmed'), + +(-147025, 0, 0, 0, 0, 0, 100, 1, 2000, 4000, 0, 0, 0, 11, 34784, 0, 0, 0, 0, 0, 26, 20, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - In Combat - Cast \'Intervene\' (No Repeat)'), +(-147025, 0, 1, 0, 0, 0, 100, 0, 4000, 6000, 9000, 11000, 0, 11, 29765, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - In Combat - Cast \'Crystal Strike\''), +(-147025, 0, 2, 0, 0, 0, 100, 0, 8000, 10000, 15000, 20000, 0, 11, 35399, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - In Combat - Cast \'Spell Reflection\''), +(-147025, 0, 1001, 0, 58, 0, 100, 1, 7, 1799309, 0, 0, 0, 80, 1799301, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - On Waypoint Finished - Run Script'), +(-147025, 0, 1002, 0, 38, 0, 100, 1, 1, 1, 0, 0, 0, 53, 0, 1799309, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - On Data Set 1 1 - Start Waypoint'), +(-147025, 0, 1003, 0, 11, 0, 100, 1, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Bloodwarder Protector - On Respawn - Set Sheath Unarmed'); + +UPDATE `creature` SET `position_x`=6.90713, `position_y`=230.813, `position_z`=-5.45704, `orientation`=3.45575 WHERE `id1`=17993 AND `guid`=147025; +UPDATE `creature` SET `position_x`=-8.30962, `position_y`=231.934, `position_z`=-5.45701, `orientation`=0.349066 WHERE `id1`=17993 AND `guid`=147026; diff --git a/data/sql/updates/db_world/2023_03_01_01.sql b/data/sql/updates/db_world/2023_03_01_01.sql new file mode 100644 index 000000000..ab8f8401c --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_01.sql @@ -0,0 +1,5 @@ +-- DB update 2023_03_01_00 -> 2023_03_01_01 +-- Delete hack fix +UPDATE `gameobject_template` SET `Data1` = 0 WHERE (`entry` = 182583); + +DELETE FROM `gameobject_loot_template` WHERE `Entry` = 19414; diff --git a/data/sql/updates/db_world/2023_03_01_02.sql b/data/sql/updates/db_world/2023_03_01_02.sql new file mode 100644 index 000000000..4259d1861 --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_02.sql @@ -0,0 +1,193 @@ +-- DB update 2023_03_01_01 -> 2023_03_01_02 +-- +UPDATE `gameobject` SET `spawntimesecs`=180 WHERE `id`=184948; + +DELETE FROM `gameobject` WHERE `id`=184948 AND `map`=530 AND `guid` IN (20041,20329,20330,20331,20363,20366,20370,20372,20374,20376,20401,20444,20453,20466,20474,20475,20476,20477,20497,20511,20577,20593,20594,20595,20596,20597,20598,20599,20600,20601,20602,20603,20604,20605,20606,20607,20608,20609,20610,20611,20612,20613,20614,20615,20653,20724,20734,20742,20751,20753,20754,20755,20817); +INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES +(20041, 184948, 530, 3520, 1, -3177.23, 2372.84, 61.9757, -2.96704, 0, 0, -0.996194, 0.0871655, 180, 100, 1), +(20329, 184948, 530, 3520, 1, -3595.77, 2014.1, 68.6959, -2.25147, 0, 0, -0.902584, 0.430513, 180, 100, 1), +(20330, 184948, 530, 3520, 1, -3436.98, 2072.21, 80.8401, 1.18682, 0, 0, 0.559191, 0.829039, 180, 100, 1), +(20331, 184948, 530, 3520, 1, -3469.44, 1924.83, 91.0128, 0.750491, 0, 0, 0.366501, 0.930418, 180, 100, 1), +(20363, 184948, 530, 3520, 1, -3457.95, 1948.24, 86.7169, 0.715585, 0, 0, 0.350207, 0.936672, 180, 100, 1), +(20366, 184948, 530, 3520, 1, -3585.65, 2028.37, 67.4767, -0.593412, 0, 0, -0.292372, 0.956305, 180, 100, 1), +(20370, 184948, 530, 3520, 1, -3446.31, 1970.54, 83.1735, 2.58308, 0, 0, 0.961261, 0.275641, 180, 100, 1), +(20372, 184948, 530, 3520, 1, -3484.72, 1913.96, 90.9911, 0.139624, 0, 0, 0.0697553, 0.997564, 180, 100, 1), +(20374, 184948, 530, 3520, 1, -3597.36, 2068.67, 69.3172, 0.733038, 0, 0, 0.358368, 0.93358, 180, 100, 1), +(20376, 184948, 530, 3520, 1, -3467.85, 2101.52, 86.6204, -2.93214, 0, 0, -0.994521, 0.104535, 180, 100, 1), +(20401, 184948, 530, 3520, 1, -3445.23, 2089.97, 82.252, 0.872664, 0, 0, 0.422618, 0.906308, 180, 100, 1), +(20444, 184948, 530, 3520, 1, -3452.18, 2118.2, 86.034, -2.14675, 0, 0, -0.878816, 0.477161, 180, 100, 1), +(20453, 184948, 530, 3520, 1, -3488.5, 2111.64, 88.7521, 0.209439, 0, 0, 0.104528, 0.994522, 180, 100, 1), +(20466, 184948, 530, 3520, 1, -3053.35, 2390.32, 62.1312, 0.698131, 0, 0, 0.34202, 0.939693, 180, 100, 1), +(20474, 184948, 530, 3520, 1, -3268.56, 2484.83, 63.7767, 1.32645, 0, 0, 0.615661, 0.788011, 180, 100, 1), +(20475, 184948, 530, 3520, 1, -4045.82, 1988.78, 83.6576, -2.11185, 0, 0, -0.870356, 0.492423, 180, 100, 1), +(20476, 184948, 530, 3520, 1, -3232.92, 2440.37, 62.4803, 2.74016, 0, 0, 0.979924, 0.199371, 180, 100, 1), +(20477, 184948, 530, 3520, 1, -4161.6, 1688.8, 91.149, 2.9845, 0, 0, 0.996917, 0.0784656, 180, 100, 1), +(20497, 184948, 530, 3520, 1, -3336.36, 2577.88, 58.2156, -0.453785, 0, 0, -0.224951, 0.97437, 180, 100, 1), +(20511, 184948, 530, 3520, 1, -4166.13, 1668.65, 91.3104, 0.261798, 0, 0, 0.130525, 0.991445, 180, 100, 1), +(20577, 184948, 530, 3520, 1, -3365.5, 2583.54, 58.8089, -2.53072, 0, 0, -0.953716, 0.300709, 180, 100, 1), +(20593, 184948, 530, 3520, 1, -3443.75, 1923.5, 92.7791, 0.279252, 0, 0, 0.139173, 0.990268, 180, 100, 1), +(20594, 184948, 530, 3520, 1, -3421.82, 1955.19, 83.447, 2.67035, 0, 0, 0.972369, 0.233447, 180, 100, 1), +(20595, 184948, 530, 3520, 1, -3438.19, 2188.66, 76.2026, -1.78023, 0, 0, -0.777144, 0.629323, 180, 100, 1), +(20596, 184948, 530, 3520, 1, -3403.01, 2439.82, 59.7999, -0.890117, 0, 0, -0.430511, 0.902586, 180, 100, 1), +(20597, 184948, 530, 3520, 1, -3464.85, 1907, 94.9282, 3.14159, 0, 0, 1, 0.00000126759, 180, 100, 1), +(20598, 184948, 530, 3520, 1, -3433.8, 2110, 80.1981, 0.872664, 0, 0, 0.422618, 0.906308, 180, 100, 1), +(20599, 184948, 530, 3520, 1, -4149.18, 1901.43, 70.6008, -1.27409, 0, 0, -0.594823, 0.803857, 180, 100, 1), +(20600, 184948, 530, 3520, 1, -3390.48, 2348.3, 64.3622, 0.349065, 0, 0, 0.173648, 0.984808, 180, 100, 1), +(20601, 184948, 530, 3520, 1, -3610.32, 2090.33, 70.4547, 2.54818, 0, 0, 0.956305, 0.292372, 180, 100, 1), +(20602, 184948, 530, 3520, 1, -3454.63, 2382.61, 62.9693, -2.09439, 0, 0, -0.866024, 0.500002, 180, 100, 1), +(20603, 184948, 530, 3520, 1, -4161.62, 1716.38, 92.6141, -2.84488, 0, 0, -0.989015, 0.147813, 180, 100, 1), +(20604, 184948, 530, 3520, 1, -3486.04, 2451.25, 66.7612, -2.77507, 0, 0, -0.983255, 0.182237, 180, 100, 1), +(20605, 184948, 530, 3520, 1, -3256.08, 2546.08, 63.4731, 0.139624, 0, 0, 0.0697553, 0.997564, 180, 100, 1), +(20606, 184948, 530, 3520, 1, -4192.01, 1877.2, 105.001, 1.43117, 0, 0, 0.656059, 0.75471, 180, 100, 1), +(20607, 184948, 530, 3520, 1, -3346.29, 2470.03, 60.5083, -1.18682, 0, 0, -0.559191, 0.829039, 180, 100, 1), +(20608, 184948, 530, 3520, 1, -4162.95, 1878.71, 92.3995, 0.680677, 0, 0, 0.333806, 0.942642, 180, 100, 1), +(20609, 184948, 530, 3520, 1, -4206.43, 1652.69, 90.5876, 1.67551, 0, 0, 0.743143, 0.669133, 180, 100, 1), +(20610, 184948, 530, 3520, 1, -4232.03, 1656.2, 94.187, 2.42601, 0, 0, 0.936673, 0.350206, 180, 100, 1), +(20611, 184948, 530, 3520, 1, -3380.86, 2383.34, 62.0297, 2.72271, 0, 0, 0.978147, 0.207914, 180, 100, 1), +(20612, 184948, 530, 3520, 1, -3419.74, 2536.26, 52.5607, -0.104719, 0, 0, -0.0523356, 0.99863, 180, 100, 1), +(20613, 184948, 530, 3520, 1, -3477.63, 2540.58, 60.9018, 0.610864, 0, 0, 0.300705, 0.953717, 180, 100, 1), +(20614, 184948, 530, 3520, 1, -3250.76, 2549.58, 63.816, 1.98967, 0, 0, 0.838669, 0.544641, 180, 100, 1), +(20615, 184948, 530, 3520, 1, -3357.01, 2617.84, 61.5568, 0.122173, 0, 0, 0.0610485, 0.998135, 180, 100, 1), +(20653, 184948, 530, 3520, 1, -3413.61, 2610.21, 59.8124, 0.523598, 0, 0, 0.258819, 0.965926, 180, 100, 1), +(20724, 184948, 530, 3520, 1, -3443.52, 2543.19, 58.7163, 2.53072, 0, 0, 0.953716, 0.300709, 180, 100, 1), +(20734, 184948, 530, 3520, 1, -3322.32, 2588.94, 59.6109, -1.23918, 0, 0, -0.580701, 0.814117, 180, 100, 1), +(20742, 184948, 530, 3520, 1, -3550.19, 2258.08, 77.5607, 1.43117, 0, 0, 0.656059, 0.75471, 180, 100, 1), +(20751, 184948, 530, 3520, 1, -3567.57, 2204.41, 79.3999, 1.27409, 0, 0, 0.594823, 0.803857, 180, 100, 1), +(20753, 184948, 530, 3520, 1, -3400.29, 2575.96, 59.6093, -1.5708, 0, 0, -0.707108, 0.707106, 180, 100, 1), +(20754, 184948, 530, 3520, 1, -3447.04, 2525.51, 60.1205, 0.069812, 0, 0, 0.0348989, 0.999391, 180, 100, 1), +(20755, 184948, 530, 3520, 1, -3303.98, 2538.64, 58.1634, -0.209439, 0, 0, -0.104528, 0.994522, 180, 100, 1), +(20817, 184948, 530, 3520, 1, -3429.94, 2452.05, 56.4512, -2.04204, 0, 0, -0.852641, 0.522496, 180, 100, 1); + +SET @POOL := 104; + +DELETE FROM `pool_template` WHERE `entry`=@POOL AND `description`='Ever-burning Ash (184948)'; +INSERT INTO `pool_template` (`entry`, `max_limit`, `description`) VALUES (@POOL, 68, 'Ever-burning Ash (184948)'); + +DELETE FROM `pool_gameobject` WHERE `pool_entry`=@POOL AND `description`='Ever-burning Ash (184948)'; +INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `chance`, `description`) VALUES +(20041 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20329 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20330 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20331 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20363 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20366 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20370 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20372 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20374 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20376 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20401 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20444 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20453 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20466 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20474 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20475 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20476 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20477 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20497 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20511 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20577 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20593 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20594 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20595 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20596 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20597 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20598 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20599 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20600 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20601 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20602 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20603 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20604 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20605 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20606 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20607 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20608 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20609 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20610 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20611 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20612 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20613 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20614 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20615 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20653 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20724 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20734 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20742 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20751 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20753 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20754 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20755 , @POOL, 0, 'Ever-burning Ash (184948)'), +(20817 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25834 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25835 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25836 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25837 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25838 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25839 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25840 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25841 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25842 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25843 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25844 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25845 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25846 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25847 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25848 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25849 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25850 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25851 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25852 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25853 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25854 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25855 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25856 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25857 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25858 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25859 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25860 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25861 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25862 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25863 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25864 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25865 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25866 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25867 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25868 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25869 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25870 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25871 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25872 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25873 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25874 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25875 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25876 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25877 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25878 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25879 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25880 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25881 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25882 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25883 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25884 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25885 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25886 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25887 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25888 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25889 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25890 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25891 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25892 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25893 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25894 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25895 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25896 , @POOL, 0, 'Ever-burning Ash (184948)'), +(25897 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28424 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28479 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28480 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28481 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28482 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28483 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28485 , @POOL, 0, 'Ever-burning Ash (184948)'), +(28486 , @POOL, 0, 'Ever-burning Ash (184948)'), +(100374, @POOL, 0, 'Ever-burning Ash (184948)'); diff --git a/data/sql/updates/db_world/2023_03_01_03.sql b/data/sql/updates/db_world/2023_03_01_03.sql new file mode 100644 index 000000000..b94b87043 --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_03.sql @@ -0,0 +1,89 @@ +-- DB update 2023_03_01_02 -> 2023_03_01_03 +-- Karsius (21877) +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21877); +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 +(21877, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 86, 37784, 0, 9, 21876, 0, 100, 19, 21867, 100, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Aggro - Cross Cast \'Enforced Submission\''), +(21877, 0, 1, 0, 38, 0, 100, 512, 2, 2, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Data Set 2 2 - Evade'), +(21877, 0, 2, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 80, 2187700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Respawn - Run Script'), +(21877, 0, 3, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 21872, 200, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Just Died - Set Data 1 1'), +(21877, 0, 4, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 21872, 200, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Evade - Set Data 2 2'); + +-- Karsius On Respawn +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` = 2187700); +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 +(2187700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 17, 333, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Respawn - Set Emote State 333'), +(2187700, 9, 1, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Respawn - Set Unit Flags'), +(2187700, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 19, 21867, 0, 0, 0, 0, 0, 0, 0, 'Karsius the Ancient Watcher - On Respawn - Set Unit Flags'); + +-- Success Event (On Karsius Death) +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` IN (2187200, 2187201, 2187202)); +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 +-- Set Event Phase for success +(2187200, 9, 0, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 21877, 100, 1, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Death - Say Line 1'), +(2187200, 9, 1, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 21876, 0, 200, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Death - Despawn Chain of Shadows'), +(2187200, 9, 2, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 21867, 0, 0, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Death - Set Data 1 1'), +(2187200, 9, 3, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 28, 37782, 0, 0, 0, 0, 0, 17, 0, 200, 0, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Death - Remove Aura \'Serverside - Disembodied Spirit\''), +(2187200, 9, 4, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 28, 37748, 0, 0, 0, 0, 0, 17, 0, 200, 0, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Death - Remove Aura \'Teron Gorefiend\''), +(2187200, 9, 5, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 28, 37748, 0, 0, 0, 0, 0, 9, 21867, 0, 200, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Death - Remove Aura \'Teron Gorefiend\''), +(2187200, 9, 6, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 19, 21877, 100, 1, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Death - Despawn'), + +-- Failure Event 1 (Evade) +-- Set Event Phase +(2187201, 9, 0, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 19, 21877, 100, 0, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Evade - Say Line 2'), +(2187201, 9, 1, 0, 0, 0, 100, 512, 1200, 1200, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 21876, 0, 200, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Evade - Despawn Instant'), +(2187201, 9, 2, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 21797, 0, 1, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Evade - Despawn Instant'), +(2187201, 9, 3, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 21867, 0, 1, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Evade - Despawn Instant'), +(2187201, 9, 4, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 21877, 100, 0, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Karsius Evade - Despawn Instant'); + +-- Teron Gorefiend (21867) +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21867); + +-- Ancient Shadowmoon Spirit (21797) +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21797); +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 +(21797, 0, 0, 1, 19, 0, 100, 512, 10645, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Store Targetlist'), +(21797, 0, 1, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 80, 2179700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Run Script'), +(21797, 0, 2, 3, 19, 0, 100, 512, 10639, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Store Targetlist'), +(21797, 0, 3, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 80, 2179700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Quest \'Teron Gorefiend, I am...\' Taken - Run Script'), +(21797, 0, 4, 0, 38, 0, 100, 512, 1, 1, 0, 0, 0, 80, 2179701, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Data Set - Run Script 2'), +(21797, 0, 5, 0, 40, 0, 100, 512, 3, 21867, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Reached WP7 - Despawn'), +(21797, 0, 6, 7, 6, 0, 100, 512, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 21877, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Death - Set Data 2 2 on Karsius the Ancient Watcher'), +(21797, 0, 7, 8, 61, 0, 100, 512, 0, 0, 0, 0, 0, 28, 37782, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Just Died - Remove Aura Disembodied Spirit'), +(21797, 0, 8, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 28, 37748, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Just Died - Remove Aura Teron Gorefiend'), +(21797, 0, 9, 0, 60, 1, 100, 513, 300000, 300000, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - On Update - Despawn Instant (Phase 1) (No Repeat)'); + +-- The Voice of Gorefiend (21872) +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 21872; +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21872); +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 +(21872, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 2187200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Data Set 1 1 - Run Success Script'), +(21872, 0, 1, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 80, 2187201, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'The Voice of Gorefiend - On Data Set 2 2 - Run Failure Script'); + +-- Script Start +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` = 2179700); +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 +(2179700, 9, 0 , 0, 0, 0, 100, 0, 1400, 1400, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Set Orientation Player (Stored)'), +(2179700, 9, 1 , 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Say Line 0'), +(2179700, 9, 2 , 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 36, 21867, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Update Template To \'Teron Gorefiend\''), +(2179700, 9, 3 , 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Set Flags Immune To Players'), +(2179700, 9, 4 , 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Set Npc Flag '), +(2179700, 9, 5 , 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 75, 37782, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Add Aura \'Serverside - Disembodied Spirit\''), +(2179700, 9, 6 , 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 85, 37769, 2, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Invoker Cast \'Serverside - Teron Gorefiend\''), +(2179700, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Set Event Phase 1'), +(2179700, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 37789, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Cast \'Teron Freed\''), +(2179700, 9, 9, 0, 0, 0, 100, 512, 2000, 2000, 0, 0, 0, 12, 21877, 1, 300000, 0, 0, 0, 8, 0, 0, 0, 0, -4535.79, 1029.28, 8.83636, 3.78736, 'Ancient Shadowmoon Spirit - Actionlist - Summon Creature \'Karsius the Ancient Watcher\''), +(2179700, 9, 10, 0, 0, 0, 100, 512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 21877, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Say Line 0'), +(2179700, 9, 11, 0, 0, 0, 100, 512, 9000, 9000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 21872, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Say Line 0'); + +-- Script End Event +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` = 2179701); +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 +(2179701, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Evade'), +(2179701, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Set Event Phase 0'), +(2179701, 9, 2, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 43, 0, 10720, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Mount To Model 10720'), +(2179701, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Say Line 0'), +(2179701, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Say Line 1'), +(2179701, 9, 5, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 53, 1, 21867, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ancient Shadowmoon Spirit - Actionlist - Start Waypoint'); + +-- Cleanup Chain of Shadows Script +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 21876) AND (`source_type` = 0) AND (`id` IN (3)); diff --git a/data/sql/updates/db_world/2023_03_01_04.sql b/data/sql/updates/db_world/2023_03_01_04.sql new file mode 100644 index 000000000..90658693c --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_04.sql @@ -0,0 +1,281 @@ +-- DB update 2023_03_01_03 -> 2023_03_01_04 +-- Delete old custom creature_template entries +DELETE FROM `creature_template` WHERE `entry` IN ( +61021, -- Adyen the Lightwarden +50004, -- Adyen Trigger +50002, -- Exarch Orelis +50001 -- Anchorite Karja +); + +-- Delete Adyen Trigger +DELETE FROM `creature` WHERE `id1`=50004 AND `guid`=3110359; + +DELETE FROM `creature_equip_template` WHERE (`CreatureID` IN (50001, 50002, 61021)); + +DELETE FROM `creature_template_spell` WHERE (`CreatureID` IN (50001, 50002, 61021)); + +-- Delete old waypoints +DELETE FROM `waypoint_data` WHERE `id` IN ( +610210, -- ADYEN_PATH_ID +500010, -- KARJA_PATH_ID +500020, -- ORELIS_PATH_ID +207940, -- KAYLAAN_PATH_ID1 +207941, -- KAYLAAN_PATH_ID2 +500050 -- ISHANAH_PATH_ID +); + +-- Delete old texts +DELETE FROM `creature_text` WHERE `creatureid`=61021; +DELETE FROM `creature_text` WHERE `creatureid`=18537; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(18537, 0, 0, 'We\'re here for you, lost brother. It is custom to offer you a chance to repent before you are destroyed. We offer you this chance, as the naaru\'s law commands.', 12, 0, 100, 0, 0, 0, 18389, 0, ''), +(18537, 1, 0, 'We may be few, Socrethar, but our faith is strong. Something you will never understand. Now that custom has been served, prepare to meet your end.', 12, 0, 100, 0, 0, 0, 18391, 0, ''), +(18537, 2, 0, 'How... how could you?!', 12, 0, 100, 0, 0, 0, 18393, 0, ''), +(18537, 3, 0, 'Socrethar is clouding your mind, Kaylaan! You do not mean these words! I remember training you when you were but a youngling. Your will was strong even then!', 12, 0, 100, 0, 0, 0, 18397, 0, ''); + +-- Add proper trigger creature +DELETE FROM `creature` WHERE `id1`=23491; +INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `VerifiedBuild`) VALUES +(111111, 23491, 530, 3523, 3742, 4819.2363, 3775.88, 210.25194, 5.515240192413330078, 120, 48069); + +-- Adyen (18537) +UPDATE `creature_template` SET `AIName` = 'SmartAI', `ScriptName` = '' WHERE (`entry` IN ( +18537, -- Adyen the Lightwarden +18538, -- Ishanah +19466, -- Exarch Orelis +19467, -- Anchorite Karja +20132, -- Socrethar +20794, -- Kaylaan the Lost +23491 -- Socrethar Event Trigger +)); + +-- Orelis (19466) +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = -69725); +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 +(-69725, 0, 0, 0, 1, 0, 100, 512, 0, 30000, 180000, 240000, 0, 80, 1946600, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - OOC - Run Script'); + +-- Karja (19467) +UPDATE `creature_template_addon` SET `bytes1` = 0, `bytes2` = 1 WHERE (`entry` = 19467); +DELETE FROM `creature_addon` WHERE (`guid` = 69727); +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES +(69727, 0, 0, 6, 4097, 0, 0, NULL); + +UPDATE `creature` SET `position_x`=4946.936, `position_y`=3849.2083, `position_z`=211.5767, `orientation`=3.892084121704101562, `VerifiedBuild`=48069 WHERE `id1`=20132; + +-- Waypoints +DELETE FROM `waypoints` WHERE `entry` IN (1853700, 2079400, 2079401, 2079402, 1853800, 1853801); +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `orientation`, `point_comment`) VALUES +-- Adyen +(1853700,1,4819.1963,3769.3455,210.50163,NULL,'Adyen the Lightwarden'), +(1853700,2,4842.374,3776.3086,206.5136,NULL,'Adyen the Lightwarden'), +(1853700,3,4860.4517,3791.8281,199.58647,NULL,'Adyen the Lightwarden'), +(1853700,4,4883.19,3808.0283,198.98213,NULL,'Adyen the Lightwarden'), +(1853700,5,4898.159,3817.5452,208.13782,NULL,'Adyen the Lightwarden'), +(1853700,6,4912.548,3827.1858,211.50491,NULL,'Adyen the Lightwarden'), +(1853700,7,4925.748,3835.356,211.49062,NULL,'Adyen the Lightwarden'), +-- Kaylaan +(2079400,1,4950.1494,3887.8508,212.33162,NULL,'Kaylaan the Lost'), +(2079400,2,4946.882,3872.5073,211.48543,NULL,'Kaylaan the Lost'), +(2079400,3,4939.2324,3853.8499,211.48567,NULL,'Kaylaan the Lost'), +(2079400,4,4941.726,3852.1892,211.46687,NULL,'Kaylaan the Lost'), -- Kneel +(2079401,1,4940.221,3847.4336,211.49857,NULL,'Kaylaan the Lost'), -- Stand by Socrethar +(2079402,1,4938.0044,3834.3682,211.35002,NULL,'Kaylaan the Lost'), -- Stand by Ishanah +-- Ishanah - The Decomposed Waypoints are to avoid floating/flying. If in the future movement is changed then they could be safely removed +(1853800,1 ,4881.5283,3806.9114,199.50269,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,2 ,4883.5283,3808.6614,199.50269,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,3 ,4885.7783,3810.4114,199.50269,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,4 ,4889.5283,3812.4114,202.75269,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,5 ,4894.203,3814.9324,205.52324,NULL,'Ishanah'), +(1853800,6 ,4898.7446,3817.81,208.48784,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,7 ,4907.2446,3822.81,211.73784,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,8 ,4909.8877,3824.375,211.50648,NULL,'Ishanah'), +(1853800,9 ,4910.0957,3824.607,211.6725,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,10,4919.0957,3826.607,211.6725,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,11,4919.5957,3826.607,211.6725,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,12,4922.5957,3827.357,211.6725,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,13,4923.284,3827.5364,211.48683,NULL,'Ishanah'), +(1853800,14,4926.301,3828.2864,211.71806,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,15,4932.801,3829.7864,211.71806,NULL,'Ishanah - Decomposed Waypoint'), +(1853800,16,4933.633,3830.1167,211.43718,NULL,'Ishanah'), +(1853800,17,4935.647,3831.1455,211.39305,NULL,'Ishanah'), +(1853800,18,4937.065,3832.6042,211.42769,NULL,'Ishanah'); + +-- Spawning Event +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 23491); +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 +(23491, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 107, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar Event Trigger - On Data Set 1 1 - Summon Creature Group 0'); + +DELETE FROM `creature_summon_groups` WHERE `summonerId`=23491 AND `summonerType`=0 AND `Comment` LIKE 'Deathblow to the Legion%'; +INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`, `summonTime`, `Comment`) VALUES +(23491, 0, 0, 18537, 4805.796, 3774.1116, 210.61717, 5.550147056579589843, 6, 60000, 'Deathblow to the Legion - Adyen'), +(23491, 0, 0, 19466, 4804.807, 3775.562, 210.6171, 5.532693862915039062, 6, 60000, 'Deathblow to the Legion - Orelis'), +(23491, 0, 0, 19467, 4803.6367, 3773.8438, 210.61761, 5.602506637573242187, 6, 60000, 'Deathblow to the Legion - Karja'); + +-- Gossips +DELETE FROM `gossip_menu` WHERE (`MenuID` = 8117); +INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES +(8117, 10051), +(8117, 10210); + +DELETE FROM `gossip_menu_option` WHERE (`MenuID` = 8117); +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES +(8117, 0, 0, 'I\'m ready, Adyen.', 18591, 1, 1, 0, 0, 0, 0, '', 0, 0); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` IN (14, 15)) AND (`SourceGroup` IN (7735, 8117)); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +-- Adyen Gossip +(14, 8117, 10051, 0, 0, 23, 1, 3742, 0, 0, 1, 0, 0, '', 'Show text when outside Socrethar\'s Seat'), +(14, 8117, 10210, 0, 0, 23, 1, 3742, 0, 0, 0, 0, 0, '', 'Show text when inside Socrethar\'s Seat'), +(15, 8117, 0, 0, 0, 23, 1, 3742, 0, 0, 0, 0, 0, '', 'Show gossip option only when inside Socrethar\'s Seat'), +(15, 8117, 0, 0, 0, 29, 1, 20132, 200, 0, 0, 0, 0, '', 'Show gossip option only when Socrethar is alive'), +(15, 8117, 0, 0, 0, 29, 1, 20794, 200, 0, 1, 0, 0, '', 'Show gossip option only when Kaylaan hasn\'t spawned'), +(15, 8117, 0, 0, 0, 9, 0, 10409, 0, 0, 0, 0, 0, '', 'Show gossip option only if player has quest \'Deathblow to the Legion\''), +-- Ishanah Gossip +(14, 7735, 9457, 0, 0, 23, 1, 3703, 0, 0, 0, 0, 0, '', 'Show text only when inside Shattrath'), +(15, 7735, 0, 0, 0, 23, 1, 3703, 0, 0, 0, 0, 0, '', 'Show gossip option only when inside Shattrath'), +(15, 7735, 1, 0, 0, 23, 1, 3703, 0, 0, 0, 0, 0, '', 'Show gossip option only when inside Shattrath'); + +-- SAI Conditions +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 22) AND (`SourceEntry` = 23491); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(22, 1, 23491, 0, 0, 29, 1, 18537, 200, 0, 1, 0, 0, '', 'Do not spawn Socrethar Event group if there is already one spawned within 200y'), +(22, 1, 23491, 0, 0, 29, 1, 20794, 200, 0, 1, 0, 0, '', 'Do not spawn Socrethar Event group if Kaylaan has already spawned within 200y'); + +-- Spell Conditions +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 13) AND (`SourceEntry` IN (35598, 35599, 35600)); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(13, 1, 35598, 0, 0, 31, 0, 3, 18538, 0, 0, 0, 0, '', 'Wrath of Socrethar (35598) targets Ishanah'), +(13, 1, 35599, 0, 0, 31, 0, 3, 18538, 0, 0, 0, 0, '', 'Resurrection (35599) targets Ishanah'), +(13, 1, 35600, 0, 0, 31, 0, 3, 20794, 0, 0, 0, 0, '', 'Wrath of Socrethar (35600) targets Kaylaan the Lost'); + +UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = 184604; +DELETE FROM `smart_scripts` WHERE (`source_type` = 1 AND `entryorguid` = 184604); +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 +(184604, 1, 0, 0, 63, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 111111, 23491, 0, 0, 0, 0, 0, 0, 'Portal to Socrethar\'s Seat - On Just Created - Set Data 1 1'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (18537, 18538, 19466, 19467, 20132, 20794)); +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 +(18537, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - On Just Summoned - Set Npc Flags Gossip'), +(18537, 0, 1, 2, 62, 0, 100, 0, 8117, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - On Gossip Option 0 Selected - Store Targetlist'), +(18537, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - On Gossip Option 0 Selected - Close Gossip'), +(18537, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 80, 1853700, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - On Gossip Option 0 Selected - Run Script'), +(18537, 0, 4, 5, 58, 0, 100, 0, 7, 1853700, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - On Waypoint Finished - Set Data 1 1 on Socrethar (Request Event Start)'), +(18537, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - On Waypoint Finished - Send Target List to Socrethar'), +(18537, 0, 6, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 39, 30, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - On Aggro - Call For Help'), +(18537, 0, 7, 0, 0, 0, 100, 0, 0, 3500, 2000, 7500, 0, 11, 14518, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - In Combat - Cast \'Crusader Strike\''), +(18537, 0, 8, 0, 0, 0, 100, 0, 15000, 40000, 20000, 60000, 0, 11, 13005, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - In Combat - Cast \'Hammer of Justice\''), +(18538, 0, 0, 1, 38, 0, 100, 0, 1, 1, 0, 0, 0, 53, 1, 1853800, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - On Data Set 1 1 - Start Waypoint'), +(18538, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 83, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - On Data Set 1 1 - Remove Npc Flags Gossip & Questgiver'), +(18538, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 2, 250, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - On Data Set 1 1 - Set Faction 250'), +(18538, 0, 3, 0, 40, 0, 100, 0, 18, 1853800, 0, 0, 0, 80, 1853800, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - On Waypoint 18 Reached - Run Script'), +(18538, 0, 4, 0, 8, 0, 100, 0, 35598, 0, 0, 0, 0, 11, 29266, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - On Spellhit \'Wrath of Socrethar\' - Cast \'Permanent Feign Death\''), -- Yes, these are sniffed +(18538, 0, 5, 0, 8, 0, 100, 0, 35599, 0, 0, 0, 0, 28, 29266, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - On Spellhit \'Resurrection\' - Remove Aura \'Permanent Feign Death\''), +(18538, 0, 6, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 39, 50, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - On Aggro - Call For Help'), +(18538, 0, 7, 0, 0, 0, 100, 0, 0, 3500, 2500, 7500, 0, 11, 15238, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - In Combat - Cast \'Holy Smite\''), +(18538, 0, 8, 0, 14, 0, 100, 0, 5000, 40, 30000, 60000, 0, 11, 35096, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - Friendly At 5000 Health - Cast \'Greater Heal\''), +(18538, 0, 9, 0, 14, 0, 100, 0, 3000, 40, 45000, 75000, 0, 11, 22187, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - Friendly At 3000 Health - Cast \'Power Word: Shield\''), +(19466, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - On Just Summoned - Set Npc Flag '), +(19466, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1946601, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - On Data Set 1 1 - Run Script'), +(19466, 0, 2, 0, 0, 0, 100, 0, 0, 3500, 15000, 21000, 0, 11, 29426, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - In Combat - Cast \'Heroic Strike\''), +(19466, 0, 3, 0, 0, 0, 100, 0, 10000, 15000, 30000, 30000, 0, 11, 16509, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - In Combat - Cast \'Rend\''), +(19466, 0, 4, 0, 0, 0, 100, 0, 7500, 21000, 20000, 45000, 0, 11, 13730, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - In Combat - Cast \'Demoralizing Shout\''), +(19467, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Anchorite Karja - On Just Summoned - Set Npc Flag '), +(19467, 0, 1, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1946701, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Anchorite Karja - On Data Set 1 1 - Run Script'), +(19467, 0, 2, 0, 0, 0, 100, 0, 3500, 10000, 7500, 15000, 0, 11, 9734, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Anchorite Karja - In Combat - Cast \'Holy Smite\''), +(19467, 0, 3, 0, 14, 0, 100, 0, 4000, 40, 15000, 30000, 0, 11, 35096, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Anchorite Karja - Friendly At 4000 Health - Cast \'Greater Heal\''), +(20132, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 2013200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - On Data Set 1 1 - Run Script'), +(20132, 0, 1, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 11, 35596, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - On Data Set 2 2 - Cast \'Power of the Legion\''), +(20132, 0, 2, 0, 38, 0, 100, 0, 3, 3, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 18538, 50, 0, 0, 0, 0, 0, 0, 'Socrethar - On Data Set 3 3 - Set Orientation Closest Creature \'Ishanah\''), +(20132, 0, 3, 0, 38, 0, 100, 0, 4, 4, 0, 0, 0, 80, 2013201, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - On Data Set 4 4 - Run Script'), +(20132, 0, 4, 0, 38, 0, 100, 0, 5, 5, 0, 0, 0, 80, 2013202, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - On Data Set 5 5 - Run Script'), +(20132, 0, 5, 6, 6, 0, 100, 0, 0, 0, 0, 0, 0, 11, 35762, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - On Just Died - Cast \'Serverside - Socrethar Quest Credit\''), +(20132, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 0, 82, 3, 0, 0, 0, 0, 0, 19, 18538, 100, 0, 0, 0, 0, 0, 0, 'Socrethar - On Just Died - Add Npc Flags Gossip & Questgiver to Ishanah'), +(20132, 0, 7, 8, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 19, 20794, 100, 0, 0, 0, 0, 0, 0, 'Socrethar - On Just Died - Cleanup Event'), +(20132, 0, 8, 9, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 19, 18537, 100, 0, 0, 0, 0, 0, 0, 'Socrethar - On Just Died - Cleanup Event'), +(20132, 0, 9, 10, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 150000, 0, 0, 0, 0, 0, 19, 18538, 100, 0, 0, 0, 0, 0, 0, 'Socrethar - On Just Died - Cleanup Event'), +(20132, 0, 10, 11, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 19, 19466, 100, 0, 0, 0, 0, 0, 0, 'Socrethar - On Just Died - Cleanup Event'), +(20132, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 60000, 0, 0, 0, 0, 0, 19, 19467, 100, 0, 0, 0, 0, 0, 0, 'Socrethar - On Just Died - Cleanup Event'), +(20132, 0, 12, 0, 23, 0, 100, 0, 37539, 0, 3600, 3600, 0, 11, 37539, 32, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - On Missing Aura \'Nether Protection\' - Cast \'Nether Protection\''), +(20132, 0, 13, 0, 0, 0, 100, 0, 2500, 7500, 15000, 25000, 0, 11, 15496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - In Combat - Cast \'Cleave\''), +(20132, 0, 14, 0, 0, 0, 100, 0, 10000, 15000, 40000, 60000, 0, 11, 37538, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - In Combat - Cast \'Anti-Magic Shield\''), +(20132, 0, 15, 0, 0, 0, 100, 0, 17000, 24000, 10000, 35000, 0, 11, 28448, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - In Combat - Cast \'Shadow Bolt Volley\''), +(20132, 0, 16, 0, 0, 0, 100, 0, 30000, 40000, 30000, 40000, 0, 11, 37540, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - In Combat - Cast \'Fireball Barrage\''), +(20132, 0, 17, 0, 0, 0, 100, 0, 30000, 45000, 35000, 50000, 0, 11, 37537, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - In Combat - Cast \'Backlash\''), +(20794, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 53, 0, 2079400, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - On Data Set 1 1 - Start Waypoint'), +(20794, 0, 1, 0, 58, 0, 100, 0, 4, 2079400, 0, 0, 0, 80, 2079400, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - On Waypoint Finished - Run Script'), +(20794, 0, 2, 0, 2, 0, 100, 1, 0, 25, 0, 0, 0, 80, 2079401, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Between 0-25% Health - Run Script (No Repeat)'), +(20794, 0, 3, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 18538, 50, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - On Data Set 2 2 - Set Orientation Closest Creature \'Ishanah\''), +(20794, 0, 4, 0, 38, 0, 100, 0, 3, 3, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - On Data Set 3 3 - Set Flag Standstate Kneel'), +(20794, 0, 5, 0, 38, 0, 100, 0, 4, 4, 0, 0, 0, 80, 2079402, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - On Data Set 4 4 - Run Script'), +(20794, 0, 6, 0, 8, 0, 100, 0, 35600, 0, 0, 0, 0, 11, 29266, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - On Spellhit \'Wrath of Socrethar\' - Cast \'Permanent Feign Death\''), +(20794, 0, 7, 0, 0, 0, 100, 0, 2500, 7500, 3500, 8500, 0, 11, 37552, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - In Combat - Cast \'Burning Light\''), +(20794, 0, 8, 0, 0, 0, 100, 0, 8000, 12000, 12000, 21000, 0, 11, 37553, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - In Combat - Cast \'Consecration\''); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` IN (1853700, 1946601, 1946701, 2013200, 2079400, 2079401, 1853800, 2013201, 2079402, 2013202)); +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 +(1853700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 19466, 15, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - Actionlist - Set Data 1 1 on Exarch Orelis (Start Follow, Set Faction)'), +(1853700, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 19467, 15, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - Actionlist - Set Data 1 1 on Anchorite Karja (Start Follow, Set Faction)'), +(1853700, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - Actionlist - Remove Npc Flags Gossip'), +(1853700, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 2, 495, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - Actionlist - Set Faction 495'), +(1853700, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 18, 33600, 0, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - Actionlist - Set Socrethar Flags Immune To Players & Immune To NPC\'s'), +(1853700, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 53, 0, 1853700, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Adyen the Lightwarden - Actionlist - Start Waypoint'), +(1946601, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 2, 495, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - Actionlist - Set Faction 495'), +(1946601, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 29, 2, 120, 0, 0, 0, 0, 19, 18537, 15, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - Actionlist - Start Follow Closest Creature \'Adyen the Lightwarden\''), +(1946601, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 19, 512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Exarch Orelis - Actionlist - Remove Flags Immune To NPC\'s'), +(1946701, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 2, 495, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Anchorite Karja - Actionlist - Set Faction 495'), +(1946701, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 29, 2, 240, 0, 0, 0, 0, 19, 18537, 15, 0, 0, 0, 0, 0, 0, 'Anchorite Karja - Actionlist - Start Follow Closest Creature \'Adyen the Lightwarden\''), +(1946701, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 19, 512, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Anchorite Karja - Actionlist - Remove Flags Immune To NPC\'s'), +(2013200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 18537, 40, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Say Line 0 (Adyen the Lightwarden)'), +(2013200, 9, 1, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Say Line 0 (Socrethar)'), +(2013200, 9, 2, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 19, 18537, 40, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Say Line 1 (Adyen the Lightwarden)'), +(2013200, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 20794, 6, 180000, 0, 0, 0, 8, 0, 0, 0, 0, 4955.0845, 3921.3977, 209.04483, 4.570129871368408, 'Socrethar - Actionlist - Summon Creature \'Kaylaan the Lost\''), +(2013200, 9, 5, 0, 0, 0, 100, 0, 6600, 6600, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Say Line 1 (Socrethar)'), +(2013200, 9, 6, 0, 0, 0, 100, 0, 800, 800, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 20794, 100, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Set Data 1 1'), +(2079400, 9, 0, 0, 0, 0, 100, 0, 600, 600, 0, 0, 0, 90, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Flag Standstate Kneel'), +(2079400, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 19, 18537, 40, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 2 (Adyen the Lightwarden)'), +(2079400, 9, 2, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Flag Standstate Stand Up'), +(2079400, 9, 3, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 53, 0, 2079401, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Start Waypoint'), +(2079400, 9, 4, 0, 0, 0, 100, 0, 2200, 2200, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 19, 18537, 40, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Orientation Closest Creature \'Adyen the Lightwarden\''), +(2079400, 9, 5, 0, 0, 0, 100, 0, 3800, 3800, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 0 (Self)'), +(2079400, 9, 6, 0, 0, 0, 100, 0, 8500, 8500, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 1 (Self)'), +(2079400, 9, 7, 0, 0, 0, 100, 0, 8500, 8500, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 2 (Self)'), +(2079400, 9, 8, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 19, 18537, 40, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 3 (Adyen the Lightwarden)'), +(2079400, 9, 9, 0, 0, 0, 100, 0, 6400, 6400, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 3 (Self)'), +(2079400, 9, 10, 0, 0, 0, 100, 0, 6400, 6400, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Data 2 2 on Socrethar - Cast \'Power of the Legion\''), +(2079400, 9, 11, 0, 0, 0, 100, 0, 3600, 3600, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Faction 14'), +(2079400, 9, 12, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 2 (Socrethar)'), +(2079400, 9, 13, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Invincibility Hp 1'), +(2079400, 9, 14, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 18537, 40, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Start Attacking'), +(2079401, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 18, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Flags Immune To Players & Immune To NPC\'s'), +(2079401, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Evade'), +(2079401, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 3 (Socrethar)'), +(2079401, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 18538, 6, 180000, 0, 0, 0, 8, 0, 0, 0, 0, 4866.1997, 3799.0156, 199.14102, 0.46805843710899353, 'Kaylaan the Lost - Actionlist - Summon Creature \'Ishanah\''), +(2079401, 9, 4, 0, 0, 0, 100, 0, 1200, 1200, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 18538, 100, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Data 1 1 on Ishanah - Start WP'), +(2079401, 9, 5, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 4 (Self)'), +(2079401, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 18, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Flags Immune To Players'), +(1853800, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 19, 20794, 50, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Set Data 2 2 on Kaylaan - Set Facing'), +(1853800, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Set Data 3 3 on Socrethar - Set Facing'), +(1853800, 9, 2, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 19, 20794, 50, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Say Line 5 (Kaylaan)'), +(1853800, 9, 3, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 45, 3, 3, 0, 0, 0, 0, 19, 20794, 50, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Set Data 3 3 on Kaylaan - Set Standstate'), +(1853800, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Say Line 0 (Self)'), +(1853800, 9, 5, 0, 0, 0, 100, 0, 6200, 6200, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Say Line 1 (Self)'), +(1853800, 9, 6, 0, 0, 0, 100, 0, 7000, 7000, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Say Line 4 (Socrethar)'), +(1853800, 9, 7, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 45, 4, 4, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Ishanah - Actionlist - Set Data 4 4 on Socrethar - Start Script'), +(2013201, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 35598, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Cast \'Wrath of Socrethar\''), +(2013201, 9, 1, 0, 0, 0, 100, 0, 7300, 7300, 0, 0, 0, 45, 4, 4, 0, 0, 0, 0, 19, 20794, 50, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Set Data 4 4 on Kaylaan - Start Script'), +(2079402, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 6'), +(2079402, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 91, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Remove FlagStandstate Kneel'), +(2079402, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 35597, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Cast \'Cancel Power of the Legion\''), +(2079402, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 53, 0, 2079402, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Start Waypoint'), +(2079402, 9, 4, 0, 0, 0, 100, 0, 5600, 5600, 0, 0, 0, 2, 290, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Faction 290'), +(2079402, 9, 5, 0, 0, 0, 100, 0, 4000, 4000, 0, 0, 0, 1, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Say Line 7'), +(2079402, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 13874, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Cast \'Divine Shield\''), +(2079402, 9, 7, 0, 0, 0, 100, 0, 1200, 1200, 0, 0, 0, 11, 35599, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Cast \'Resurrection\''), +(2079402, 9, 8, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 45, 5, 5, 0, 0, 0, 0, 10, 71631, 20132, 0, 0, 0, 0, 0, 0, 'Kaylaan the Lost - Actionlist - Set Data 5 5 on Socrethar - Start Last Script'), +(2013202, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Say Line 5'), +(2013202, 9, 1, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 11, 35600, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Cast \'Wrath of Socrethar\''), +(2013202, 9, 2, 0, 0, 0, 100, 0, 3600, 3600, 0, 0, 0, 19, 768, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Remove Flags Immune To Players & Immune To NPC\'s'), +(2013202, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 19, 18538, 50, 0, 0, 0, 0, 0, 0, 'Socrethar - Actionlist - Start Attacking'); + +-- Remove Civilian flag, Add IMMUNE_TO_PLAYERS instead +UPDATE `creature_template` SET `flags_extra`=`flags_extra`&~2, `unit_flags`=`unit_flags`|256 WHERE (`entry` IN (19466, 19467, 18538, 18537)); diff --git a/data/sql/updates/db_world/2023_03_01_05.sql b/data/sql/updates/db_world/2023_03_01_05.sql new file mode 100644 index 000000000..b9f9425c2 --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_05.sql @@ -0,0 +1,52 @@ +-- DB update 2023_03_01_04 -> 2023_03_01_05 +-- +DELETE FROM `creature` WHERE `id1`=19823 AND `guid` IN (1007, 10994, 25745, 25746); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`) VALUES +(1007 , 19823, 530, 1, -4486.58, 1998.88, 112.765, 0.113942, 300, 20, 1), +(10994, 19823, 530, 1, -4527.13, 2106.33, 38.1019, 0.221064, 300, 20, 1), +(25745, 19823, 530, 1, -4561.13, 2024.76, 92.2968, 5.31829, 300, 20, 1), +(25746, 19823, 530, 1, -4399.99, 2334.17, 28.1067, 0.071826, 300, 20, 1); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 19823); +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 +(19823, 0, 0, 0, 6, 0, 100, 512, 0, 0, 0, 0, 0, 11, 38223, 3, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Crazed Colossus - On Just Died - Cast \'Quest Credit: Crazed Colossus\''), +(19823, 0, 1, 0, 2, 0, 100, 1, 0, 75, 0, 0, 0, 11, 37947, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Crazed Colossus - Between 0-75% Health - Cast \'Serverside - Summon Crazed Shardling\' (No Repeat)'), +(19823, 0, 2, 0, 2, 0, 100, 1, 0, 50, 0, 0, 0, 11, 37948, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Crazed Colossus - Between 0-50% Health - Cast \'Serverside - Summon Crazed Shardling\' (No Repeat)'), +(19823, 0, 3, 0, 2, 0, 100, 1, 0, 25, 0, 0, 0, 11, 37949, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Crazed Colossus - Between 0-25% Health - Cast \'Serverside - Summon Crazed Shardling\' (No Repeat)'); + +UPDATE `spell_dbc` SET `Effect_1` = 28, `EffectMiscValueB_1` = 64, `EffectBasePoints_1` = 0 WHERE `ID` IN (37947, 37948, 37949); + +DELETE FROM `creature_text` WHERE `CreatureID`=22054; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(22054, 0, 0, 'Brashly you have attacked my children, Illidan! The pact is broken. Giant will never side with elf! NEVER!', 14, 0, 100, 0, 0, 0, 19737, 2, 'Behemothon, King of the Colossi'), +(22054, 1, 0, '%s roars in defiance.', 16, 0, 100, 0, 0, 3685, 19739, 2, 'Behemothon, King of the Colossi'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` = 2205400); +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 +(2205400, 9, 0, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Behemothon, King of the Colossi - Actionlist - Say Line 0'), +(2205400, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Behemothon, King of the Colossi - Actionlist - Say Line 1'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 22054; +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 22054); +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 +(22054, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 3, 0, 20577, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Behemothon, King of the Colossi - On Respawn - Hack: Change modelid to correct one by script'), +(22054, 0, 1, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Behemothon, King of the Colossi - On Respawn - Set Active On'), +(22054, 0, 2, 0, 38, 0, 100, 0, 1, 1, 60000, 60000, 0, 80, 2205400, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Behemothon, King of the Colossi - On Data Set 1 1 - Run Script'); + +UPDATE `creature_template_addon` SET `visibilityDistanceType` = 5 WHERE (`entry` = 22054); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21769); +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 +(21769, 0, 0, 1, 62, 0, 100, 512, 30008, 1, 0, 0, 0, 56, 31108, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Overlord Or\'barokh - On Gossip Option 1 Selected - Add Item \'Kor\'kron Flare Gun\' 1 Time'), +(21769, 0, 1, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Overlord Or\'barokh - On Gossip Option 1 Selected - Close Gossip'), +(21769, 0, 2, 0, 1, 0, 100, 0, 120000, 120000, 300000, 300000, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Overlord Or\'barokh - Out of Combat - Say Line 0'), +(21769, 0, 3, 4, 62, 0, 100, 512, 8443, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Overlord Or\'barokh - On Gossip Option 0 Selected - Close Gossip'), +(21769, 0, 4, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 85, 38172, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Overlord Or\'barokh - On Gossip Option 0 Selected - Invoker Cast \'Serverside - Create Kor`kron Flare Gun\''), +(21769, 0, 5, 0, 20, 0, 100, 0, 10769, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 77278, 22054, 0, 0, 0, 0, 0, 0, 'Overlord Or\'barokh - On Quest \'Dissension Amongst the Ranks...\' Finished - Set Data 1 1'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 21773); +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 +(21773, 0, 0, 0, 1, 0, 100, 0, 120000, 120000, 200000, 260000, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Thane Yoregar - Out of Combat - Say Line 0'), +(21773, 0, 1, 2, 62, 0, 100, 512, 8457, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Thane Yoregar - On Gossip Option 0 Selected - Close Gossip'), +(21773, 0, 2, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 85, 38251, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Thane Yoregar - On Gossip Option 0 Selected - Invoker Cast \'Serverside - Create Wildhammer Flare Gun\''), +(21773, 0, 3, 0, 20, 0, 100, 0, 10776, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 77278, 22054, 0, 0, 0, 0, 0, 0, 'Thane Yoregar - On Quest \'Dissension Amongst the Ranks...\' Finished - Set Data 1 1'); diff --git a/data/sql/updates/db_world/2023_03_01_06.sql b/data/sql/updates/db_world/2023_03_01_06.sql new file mode 100644 index 000000000..b8b0c94db --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_06.sql @@ -0,0 +1,183 @@ +-- DB update 2023_03_01_05 -> 2023_03_01_06 +-- +DELETE FROM `creature` WHERE `id1` IN (20561, 20340); +INSERT INTO `creature` (`guid`, `id1`, `map`, `ZoneId`, `AreaId`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `MovementType`, `wander_distance`) VALUES +(25747, 20561, 530, 3523, 3880, 1, 3835.91, 2045.9, 145.151, 0.942478, 180, 0, 0), +(25748, 20561, 530, 3523, 3880, 1, 3870.96, 2103.97, 133.353, 1.58825, 180, 0, 0), +(25749, 20561, 530, 3523, 3880, 1, 3987.21, 2132.56, 162.681, 3.40339, 180, 0, 0), +(25750, 20561, 530, 3523, 3880, 1, 3935.88, 2138.8, 160.69, 1.23918, 180, 0, 0), +(25751, 20561, 530, 3523, 3880, 1, 3968.76, 2112.71, 162.382, 6.19592, 180, 0, 0), +(25752, 20561, 530, 3523, 3880, 1, 3926.43, 2105.75, 159.264, 3.61283, 180, 0, 0), +(25753, 20561, 530, 3523, 3880, 1, 3912.87, 2079.35, 153.77, 1.37881, 180, 0, 0), +(25754, 20561, 530, 3523, 3880, 1, 3902.53, 2052.92, 150.162, 3.21141, 180, 0, 0), +(25755, 20561, 530, 3523, 3880, 1, 3908.28, 2081.01, 133.479, 4.18879, 180, 0, 0), +(25756, 20561, 530, 3523, 3880, 1, 3839.54, 2137.05, 145.967, 3.54302, 180, 0, 0), +(25757, 20561, 530, 3523, 3880, 1, 3815.1, 2102.61, 148.003, 1.72788, 180, 0, 0), +(25758, 20561, 530, 3523, 3880, 1, 3890.49, 2102.26, 153.708, 4.62512, 180, 0, 0), +(25759, 20561, 530, 3523, 3880, 1, 3881.19, 2078.43, 131.736, 3.66519, 180, 0, 0), +(25760, 20561, 530, 3523, 3880, 1, 3867.95, 2023.28, 144.585, 5.65487, 180, 0, 0), +(25761, 20561, 530, 3523, 3880, 1, 3823.88, 2064.43, 147.579, 6.21337, 180, 0, 0), +(25762, 20561, 530, 3523, 3880, 1, 3790.07, 2073.02, 153.16, 4.60767, 180, 0, 0), +(25763, 20561, 530, 3523, 3880, 1, 3711.35, 2096.57, 151.984, 1.18682, 180, 0, 0), +(25764, 20561, 530, 3523, 3880, 1, 3737.86, 2082.16, 148.9, 0.837758, 180, 0, 0), +(25765, 20561, 530, 3523, 3880, 1, 3750.9, 2055.32, 148.853, 5.44543, 180, 0, 0), +(25766, 20561, 530, 3523, 3880, 1, 3760.86, 2082.87, 152.837, 2.40855, 180, 0, 0), +(25767, 20561, 530, 3523, 3880, 1, 3840.47, 2122.01, 146.953, 1.71989, 180, 0, 0), +(25769, 20561, 530, 3523, 3880, 1, 3863.25, 2120.24, 146.842, 5.46288, 180, 0, 0), +(25770, 20561, 530, 3523, 3880, 1, 3848.73, 2147.21, 140.23, 1.94765, 180, 0, 0), +(25771, 20561, 530, 3523, 3880, 1, 3852.86, 2153.85, 140.535, 1.10727, 180, 0, 0), +(25772, 20561, 530, 3523, 3880, 1, 3875.74, 2150.16, 139.272, 3.61283, 180, 0, 0), +(25773, 20561, 530, 3523, 3880, 1, 3903.43, 2124.28, 137.706, 0.244346, 180, 0, 0), +(25774, 20340, 530, 3523, 3880, 0, 3838.25, 2043.45, 144.456, 2.28582, 300, 2, 0), +(25775, 20340, 530, 3523, 3880, 0, 3845.78, 2111.57, 148.651, 5.05916, 300, 1, 5), +(25776, 20340, 530, 3523, 3880, 0, 3970.96, 2131.35, 161.178, 0.563203, 300, 1, 5), +(25777, 20340, 530, 3523, 3880, 0, 3700.07, 2104.38, 154.187, 1.05376, 300, 2, 0), +(25778, 20340, 530, 3523, 3880, 0, 3802, 2077.1, 149.618, 2.7682, 300, 1, 5), +(25779, 20340, 530, 3523, 3880, 0, 3757.67, 2080.25, 151.914, 3.0616, 300, 1, 2), +(25780, 20340, 530, 3523, 3880, 0, 3830.72, 2152.55, 145.842, 4.57919, 300, 1, 5), +(25781, 20340, 530, 3523, 3880, 0, 3845.32, 2111.13, 148.712, 3.38892, 300, 2, 0), +(25782, 20340, 530, 3523, 3880, 0, 3864.73, 2158.55, 139.53, 5.98851, 300, 1, 5), +(25783, 20340, 530, 3523, 3880, 0, 3883.87, 2131.02, 133.884, 5.14029, 300, 1, 5), +(25784, 20340, 530, 3523, 3880, 0, 3873.85, 2104.63, 133.388, 4.74834, 300, 2, 0), +(25785, 20340, 530, 3523, 3880, 0, 3919.83, 2087.85, 133.488, 2.46537, 300, 1, 5), +(25786, 20340, 530, 3523, 3880, 0, 3895.68, 2034.48, 148.256, 3.45105, 300, 1, 5), +(25787, 20340, 530, 3523, 3880, 0, 3909.46, 2090.17, 155.839, 2.58317, 300, 1, 5), +(25788, 20340, 530, 3523, 3880, 0, 3927.87, 2118.67, 159.924, 4.58354, 300, 2, 0); + +DELETE FROM `creature_addon` WHERE (`guid` IN (25774, 25777, 25781, 25784, 25788)); +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES +(25774, 257740, 0, 0, 0, 0, 0, NULL), +(25777, 257770, 0, 0, 0, 0, 0, NULL), +(25781, 257810, 0, 0, 0, 0, 0, NULL), +(25784, 257840, 0, 0, 0, 0, 0, NULL), +(25788, 257880, 0, 0, 0, 0, 0, NULL); + +DELETE FROM `waypoint_data` WHERE `id` IN (257740, 257770, 257810, 257840, 257880); +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`) VALUES +(257740, 1, 3828.6, 2052.43, 146.299), +(257740, 2, 3814.57, 2068.55, 148.037), +(257740, 3, 3803.64, 2075.73, 148.999), +(257740, 4, 3793.57, 2076.63, 152.807), +(257740, 5, 3772.9, 2078.11, 154.741), +(257740, 6, 3793.79, 2077.36, 152.872), +(257740, 7, 3806.68, 2075.38, 148.988), +(257740, 8, 3817.08, 2066.81, 147.837), +(257740, 9, 3829.58, 2051.22, 145.945), +(257740, 10, 3837.99, 2045.38, 144.981), +(257740, 11, 3844.06, 2036.32, 143.92), +(257740, 12, 3853.07, 2030.52, 142.777), +(257740, 13, 3865.79, 2024.48, 144.208), +(257740, 14, 3851.93, 2030.9, 142.805), +(257740, 15, 3844.37, 2036.31, 143.849), +(257740, 16, 3838.85, 2044.04, 144.628), +(257770, 1, 3708.42, 2110.91, 152.714), +(257770, 2, 3718.47, 2112.17, 150.762), +(257770, 3, 3738.52, 2109.59, 148.183), +(257770, 4, 3711.96, 2112.24, 152.367), +(257770, 5, 3702.12, 2107.95, 153.659), +(257770, 6, 3692.42, 2098.89, 155.214), +(257770, 7, 3686.26, 2093.03, 149.364), +(257770, 8, 3683.91, 2089.67, 152.259), +(257770, 9, 3688.53, 2083.23, 152.775), +(257770, 10, 3698.57, 2069.71, 150.483), +(257770, 11, 3715.1, 2062.27, 147.368), +(257770, 12, 3728.18, 2056.63, 144.842), +(257770, 13, 3740.76, 2052.12, 146.617), +(257770, 14, 3756.8, 2056.43, 150.487), +(257770, 15, 3741.21, 2052.22, 146.648), +(257770, 16, 3727.44, 2056.94, 144.813), +(257770, 17, 3698.21, 2070.22, 150.638), +(257770, 18, 3689.34, 2085.61, 152.047), +(257770, 19, 3687.46, 2092.86, 149.402), +(257770, 20, 3690.78, 2097.36, 154.156), +(257770, 21, 3700.04, 2104.35, 154.194), +(257810, 1, 3832.22, 2107.48, 149.717), +(257810, 2, 3825.75, 2105.58, 151.003), +(257810, 3, 3820.36, 2104.75, 148.444), +(257810, 4, 3811.88, 2098.79, 147.848), +(257810, 5, 3804.56, 2091.55, 149.842), +(257810, 6, 3813.68, 2099.89, 147.724), +(257810, 7, 3820.93, 2105.03, 148.563), +(257810, 8, 3825.93, 2106.17, 151.103), +(257810, 9, 3832.41, 2107.12, 149.743), +(257810, 10, 3843.08, 2112.63, 148.908), +(257810, 11, 3843.73, 2122.31, 147.232), +(257810, 12, 3839.65, 2131.35, 146.628), +(257810, 13, 3837.69, 2138.62, 145.446), +(257810, 14, 3832.25, 2154.89, 145.916), +(257810, 15, 3838.13, 2137.13, 145.727), +(257810, 16, 3842.26, 2122.59, 147.082), +(257810, 17, 3846.68, 2115.09, 148.459), +(257810, 18, 3855.48, 2114.4, 147.42), +(257810, 19, 3870.42, 2114.12, 147.612), +(257810, 20, 3885.1, 2109.86, 149.593), +(257810, 21, 3893.09, 2104.7, 152.478), +(257810, 22, 3903.74, 2097.1, 154.744), +(257810, 23, 3895.22, 2104.42, 153.216), +(257810, 24, 3883.14, 2110.8, 149.206), +(257810, 25, 3867.52, 2114.77, 147.194), +(257810, 26, 3852.24, 2113.81, 147.649), +(257810, 27, 3846.62, 2115.55, 148.453), +(257810, 28, 3840.54, 2128.64, 146.783), +(257810, 29, 3837.58, 2140.16, 145.256), +(257810, 30, 3832.01, 2155.39, 145.949), +(257810, 31, 3837.48, 2140.4, 145.27), +(257840, 1, 3874.85, 2092.38, 131.986), +(257840, 2, 3881.79, 2076.72, 132.069), +(257840, 3, 3876.13, 2088.46, 131.757), +(257840, 4, 3873.89, 2102.41, 132.905), +(257840, 5, 3875.56, 2109.94, 135.03), +(257840, 6, 3879.99, 2120.42, 133.436), +(257840, 7, 3882.52, 2130.11, 133.948), +(257840, 8, 3877.94, 2139.1, 135.257), +(257840, 9, 3876.27, 2145.36, 139.053), +(257840, 10, 3874.56, 2152.62, 138.963), +(257840, 11, 3867.19, 2159.01, 139.152), +(257840, 12, 3857.43, 2157.18, 140.557), +(257840, 13, 3846.26, 2156.16, 141.191), +(257840, 14, 3842.13, 2158.58, 141.856), +(257840, 15, 3848.25, 2155.62, 140.979), +(257840, 16, 3858.78, 2157.24, 140.533), +(257840, 17, 3872.4, 2155.03, 138.92), +(257840, 18, 3875.87, 2150.28, 139.98), +(257840, 19, 3876.41, 2145.97, 139.209), +(257840, 20, 3878.13, 2140.38, 135.46), +(257840, 21, 3882.97, 2129.62, 133.867), +(257840, 22, 3880.17, 2118.79, 133.545), +(257840, 23, 3875.72, 2110.03, 134.98), +(257840, 24, 3874.23, 2103.02, 132.96), +(257880, 1, 3923.03, 2102, 158.719), +(257880, 2, 3918.22, 2094.92, 157.148), +(257880, 3, 3909.27, 2086.84, 156.194), +(257880, 4, 3908.21, 2079.6, 153.654), +(257880, 5, 3907.09, 2069.95, 152.617), +(257880, 6, 3906.22, 2058.27, 150.862), +(257880, 7, 3901.95, 2047.35, 149.152), +(257880, 8, 3907.01, 2060.82, 151.077), +(257880, 9, 3907.93, 2080.42, 153.756), +(257880, 10, 3909.4, 2086.92, 156.191), +(257880, 11, 3913.55, 2091.18, 155.927), +(257880, 12, 3920.32, 2096.83, 157.939), +(257880, 13, 3926.47, 2109.47, 159.1), +(257880, 14, 3927.97, 2121.86, 160.375), +(257880, 15, 3930.43, 2129, 160.119), +(257880, 16, 3940.05, 2136.96, 160.067), +(257880, 17, 3952.66, 2135.78, 161.632), +(257880, 18, 3957.72, 2133.09, 162.299), +(257880, 19, 3946.18, 2137.7, 160.791), +(257880, 20, 3936.69, 2136.25, 160.133), +(257880, 21, 3928.27, 2125.16, 160.584), +(257880, 22, 3927.47, 2118.3, 159.805); + +UPDATE `creature_template_addon` SET `auras` = '31261' WHERE (`entry` = 20561); + +DELETE FROM `smart_scripts` WHERE `entryorguid`=20561 AND `source_type`=0; +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 +(20561, 0, 0, 1, 8, 0, 100, 0, 35372, 0, 0, 0, 0, 33, 20561, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Withered Corpse - On Spellhit \'Protectorate Igniter\' - Quest Credit \'The Flesh Lies...\'\''), +(20561, 0, 1, 2, 61, 0, 100, 0, 0, 0, 0, 0, 0, 11, 35374, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Withered Corpse - On Spellhit \'Protectorate Igniter\' - Summon Gameobject \'Charred Remains\''), +(20561, 0, 2, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Withered Corpse - On Spellhit \'Protectorate Igniter\' - Kill Target'), +(20561, 0, 3, 4, 10, 0, 100, 1, 0, 4, 0, 0, 1, 11, 35309, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Withered Corpse - Within 0-4 Range Out of Combat LoS - Cast \'Bloody Explosion\''), +(20561, 0, 4, 5, 61, 0, 100, 0, 0, 0, 0, 0, 0, 36, 20335, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Withered Corpse - Within 0-4 Range Out of Combat LoS - Update Template To \'Parasitic Fleshbeast\''), +(20561, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 28, 31261, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Withered Corpse - Within 0-4 Range Out of Combat LoS - Remove Aura \'Permanent Feign Death (Root)\' (No Repeat)'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` = 2056100); diff --git a/data/sql/updates/db_world/2023_03_01_07.sql b/data/sql/updates/db_world/2023_03_01_07.sql new file mode 100644 index 000000000..e1c07bb47 --- /dev/null +++ b/data/sql/updates/db_world/2023_03_01_07.sql @@ -0,0 +1,131 @@ +-- DB update 2023_03_01_06 -> 2023_03_01_07 +-- +SET @GUID := 105196; +SET @POOL := 13398; + +DELETE FROM `gameobject` WHERE `id` IN (184795, 184796); +INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `ScriptName`, `VerifiedBuild`) VALUES +-- Trapped Eggs +(@GUID+0 , 184796, 530, 3520, 3932, 1, 1, -4082.12, 1765.66, 99.3064, 6.02139, 0, 0, -0.130526, 0.991445, 180, 255, 1, '', 15595), +(@GUID+2 , 184796, 530, 3520, 3932, 1, 1, -4127.22, 1788.2, 110.085, 1.18682, 0, 0, 0.559193, 0.829038, 180, 255, 1, '', 15595), +(@GUID+4 , 184796, 530, 3520, 3932, 1, 1, -4068.59, 1933.35, 76.9559, 1.85005, 0, 0, 0.798635, 0.601815, 180, 255, 1, '', 15595), +(@GUID+6 , 184796, 530, 3520, 3932, 1, 1, -4071.22, 1931.08, 76.9124, 5.95157, 0, 0, -0.165047, 0.986286, 180, 255, 1, '', 15595), +(@GUID+8 , 184796, 530, 3520, 3932, 1, 1, -4120.26, 1693.84, 101.657, 4.90438, 0, 0, -0.636078, 0.771625, 180, 255, 1, '', 15595), +(@GUID+10, 184796, 530, 3520, 3932, 1, 1, -4199.02, 1828.67, 119.586, 1.69297, 0, 0, 0.748956, 0.66262, 180, 255, 1, '', 15595), +(@GUID+12, 184796, 530, 3520, 3932, 1, 1, -4059.63, 1748.61, 99.8074, 3.31614, 0, 0, -0.996194, 0.087165, 180, 255, 1, '', 15595), +(@GUID+14, 184796, 530, 3520, 3932, 1, 1, -4083.81, 1757.47, 99.3434, 0.104721, 0, 0, 0.0523361, 0.99863, 180, 255, 1, '', 15595), +(@GUID+16, 184796, 530, 3520, 3932, 1, 1, -4056.73, 1796.72, 94.6073, 2.98451, 0, 0, 0.996917, 0.0784656, 180, 255, 1, '', 15595), +(@GUID+18, 184796, 530, 3520, 3932, 1, 1, -4050.61, 1818.76, 86.4054, -0.73303, 0, 0, -0.358368, 0.93358, 180, 255, 1, '', 15595), +(@GUID+20, 184796, 530, 3520, 3932, 1, 1, -4032.65, 1821.49, 86.1867, -2.39111, 0, 0, -0.930417, 0.366502, 180, 255, 1, '', 15595), +(@GUID+22, 184796, 530, 3520, 3932, 1, 1, -4008.57, 1765.89, 97.1208, -0.95993, 0, 0, -0.461749, 0.887011, 180, 255, 1, '', 15595), +(@GUID+24, 184796, 530, 3520, 3932, 1, 1, -4002.44, 1844.23, 81.5785, 0.226893, 0, 0, 0.113203, 0.993572, 180, 255, 1, '', 15595), +(@GUID+26, 184796, 530, 3520, 3932, 1, 1, -3972.18, 1767.47, 99.7536, -0.22689, 0, 0, -0.113203, 0.993572, 180, 255, 1, '', 15595), +(@GUID+28, 184796, 530, 3520, 3932, 1, 1, -3951.12, 1842.48, 91.3865, -2.56563, 0, 0, -0.958819, 0.284017, 180, 255, 1, '', 15595), +(@GUID+30, 184796, 530, 3520, 3932, 1, 1, -3965.86, 1861.5, 82.6874, -0.10472, 0, 0, -0.0523361, 0.99863, 180, 255, 1, '', 15595), +(@GUID+32, 184796, 530, 3520, 3932, 1, 1, -4176.82, 1821.99, 111.444, -1.23918, 0, 0, -0.580701, 0.814117, 180, 255, 1, '', 15595), +(@GUID+34, 184796, 530, 3520, 3932, 1, 1, -4011.48, 1762.5, 97.2144, -0.959931, 0, 0, -0.461749, 0.887011, 180, 255, 1, '', 15595), +(@GUID+36, 184796, 530, 3520, 3932, 1, 1, -4016, 1792.08, 93.6583, 2.56563, 0, 0, 0.958819, 0.284017, 180, 255, 1, '', 15595), +(@GUID+38, 184796, 530, 3520, 3932, 1, 1, -4020.93, 1784.86, 95.3865, -2.04204, 0, 0, -0.852641, 0.522496, 180, 255, 1, '', 15595), +(@GUID+40, 184796, 530, 3520, 3932, 1, 1, -4029.34, 1783.06, 95.5917, -2.1293, 0, 0, -0.874619, 0.48481, 180, 255, 1, '', 15595), +(@GUID+42, 184796, 530, 3520, 3932, 1, 1, -4091.62, 1897.92, 75.4492, 1.90241, 0, 0, 0.814116, 0.580702, 180, 255, 1, '', 15595), +(@GUID+44, 184796, 530, 3520, 3932, 1, 1, -4091.07, 1892.19, 75.4612, -2.60054, 0, 0, -0.96363, 0.267239, 180, 255, 1, '', 15595), +-- Real Eggs +(@GUID+1 , 184795, 530, 3520, 3932, 1, 1, -4082.12, 1765.66, 99.3064, 6.02139, 0, 0, -0.130526, 0.991445, 180, 255, 1, '', 15595), +(@GUID+3 , 184795, 530, 3520, 3932, 1, 1, -4127.22, 1788.2, 110.085, 1.18682, 0, 0, 0.559193, 0.829038, 180, 255, 1, '', 15595), +(@GUID+5 , 184795, 530, 3520, 3932, 1, 1, -4068.59, 1933.35, 76.9559, 1.85005, 0, 0, 0.798635, 0.601815, 180, 255, 1, '', 15595), +(@GUID+7 , 184795, 530, 3520, 3932, 1, 1, -4071.22, 1931.08, 76.9124, 5.95157, 0, 0, -0.165047, 0.986286, 180, 255, 1, '', 15595), +(@GUID+9 , 184795, 530, 3520, 3932, 1, 1, -4120.26, 1693.84, 101.657, 4.90438, 0, 0, -0.636078, 0.771625, 180, 255, 1, '', 15595), +(@GUID+11, 184795, 530, 3520, 3932, 1, 1, -4199.02, 1828.67, 119.586, 1.69297, 0, 0, 0.748956, 0.66262, 180, 255, 1, '', 15595), +(@GUID+13, 184795, 530, 3520, 3932, 1, 1, -4059.63, 1748.61, 99.8074, 3.31614, 0, 0, -0.996194, 0.087165, 180, 255, 1, '', 15595), +(@GUID+15, 184795, 530, 3520, 3932, 1, 1, -4083.81, 1757.47, 99.3434, 0.104721, 0, 0, 0.0523361, 0.99863, 180, 255, 1, '', 15595), +(@GUID+17, 184795, 530, 3520, 3932, 1, 1, -4056.73, 1796.72, 94.6073, 2.98451, 0, 0, 0.996917, 0.0784656, 180, 255, 1, '', 15595), +(@GUID+19, 184795, 530, 3520, 3932, 1, 1, -4050.61, 1818.76, 86.4054, -0.73303, 0, 0, -0.358368, 0.93358, 180, 255, 1, '', 15595), +(@GUID+21, 184795, 530, 3520, 3932, 1, 1, -4032.65, 1821.49, 86.1867, -2.39111, 0, 0, -0.930417, 0.366502, 180, 255, 1, '', 15595), +(@GUID+23, 184795, 530, 3520, 3932, 1, 1, -4008.57, 1765.89, 97.1208, -0.95993, 0, 0, -0.461749, 0.887011, 180, 255, 1, '', 15595), +(@GUID+25, 184795, 530, 3520, 3932, 1, 1, -4002.44, 1844.23, 81.5785, 0.226893, 0, 0, 0.113203, 0.993572, 180, 255, 1, '', 15595), +(@GUID+27, 184795, 530, 3520, 3932, 1, 1, -3972.18, 1767.47, 99.7536, -0.22689, 0, 0, -0.113203, 0.993572, 180, 255, 1, '', 15595), +(@GUID+29, 184795, 530, 3520, 3932, 1, 1, -3951.12, 1842.48, 91.3865, -2.56563, 0, 0, -0.958819, 0.284017, 180, 255, 1, '', 15595), +(@GUID+31, 184795, 530, 3520, 3932, 1, 1, -3965.86, 1861.5, 82.6874, -0.10472, 0, 0, -0.0523361, 0.99863, 180, 255, 1, '', 15595), +(@GUID+33, 184795, 530, 3520, 3932, 1, 1, -4176.82, 1821.99, 111.444, -1.23918, 0, 0, -0.580701, 0.814117, 180, 255, 1, '', 15595), +(@GUID+35, 184795, 530, 3520, 3932, 1, 1, -4011.48, 1762.5, 97.2144, -0.959931, 0, 0, -0.461749, 0.887011, 180, 255, 1, '', 15595), +(@GUID+37, 184795, 530, 3520, 3932, 1, 1, -4016, 1792.08, 93.6583, 2.56563, 0, 0, 0.958819, 0.284017, 180, 255, 1, '', 15595), +(@GUID+39, 184795, 530, 3520, 3932, 1, 1, -4020.93, 1784.86, 95.3865, -2.04204, 0, 0, -0.852641, 0.522496, 180, 255, 1, '', 15595), +(@GUID+41, 184795, 530, 3520, 3932, 1, 1, -4029.34, 1783.06, 95.5917, -2.1293, 0, 0, -0.874619, 0.48481, 180, 255, 1, '', 15595), +(@GUID+43, 184795, 530, 3520, 3932, 1, 1, -4091.62, 1897.92, 75.4492, 1.90241, 0, 0, 0.814116, 0.580702, 180, 255, 1, '', 15595), +(@GUID+45, 184795, 530, 3520, 3932, 1, 1, -4091.07, 1892.19, 75.4612, -2.60054, 0, 0, -0.96363, 0.267239, 180, 255, 1, '', 15595); + +DELETE FROM `pool_template` WHERE `description`='Rotten Arakkoa Egg (184795/184796)' AND `entry` BETWEEN @POOL+0 AND @POOL+22; +INSERT INTO `pool_template` (`entry`, `max_limit`, `description`) VALUES +(@POOL+0 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+1 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+2 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+3 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+4 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+5 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+6 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+7 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+8 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+9 , 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+10, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+11, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+12, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+13, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+14, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+15, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+16, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+17, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+18, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+19, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+20, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+21, 1, 'Rotten Arakkoa Egg (184795/184796)'), +(@POOL+22, 1, 'Rotten Arakkoa Egg (184795/184796)'); + +DELETE FROM `pool_gameobject` WHERE `description` LIKE 'Rotten Arakkoa Egg (18479%' AND `pool_entry` BETWEEN @POOL+0 AND @POOL+22; +INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `chance`, `description`) VALUES +(@GUID+0 , @POOL+0 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+2 , @POOL+1 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+4 , @POOL+2 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+6 , @POOL+3 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+8 , @POOL+4 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+10, @POOL+5 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+12, @POOL+6 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+14, @POOL+7 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+16, @POOL+8 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+18, @POOL+9 , 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+20, @POOL+10, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+22, @POOL+11, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+24, @POOL+12, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+26, @POOL+13, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+28, @POOL+14, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+30, @POOL+15, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+32, @POOL+16, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+34, @POOL+17, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+36, @POOL+18, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+38, @POOL+19, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+40, @POOL+20, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+42, @POOL+21, 0, 'Rotten Arakkoa Egg (184796)'), +(@GUID+44, @POOL+22, 0, 'Rotten Arakkoa Egg (184796)'), +-- Real Eggs +(@GUID+1 , @POOL+0 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+3 , @POOL+1 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+5 , @POOL+2 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+7 , @POOL+3 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+9 , @POOL+4 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+11, @POOL+5 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+13, @POOL+6 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+15, @POOL+7 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+17, @POOL+8 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+19, @POOL+9 , 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+21, @POOL+10, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+23, @POOL+11, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+25, @POOL+12, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+27, @POOL+13, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+29, @POOL+14, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+31, @POOL+15, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+33, @POOL+16, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+35, @POOL+17, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+37, @POOL+18, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+39, @POOL+19, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+41, @POOL+20, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+43, @POOL+21, 10, 'Rotten Arakkoa Egg (184795)'), +(@GUID+45, @POOL+22, 10, 'Rotten Arakkoa Egg (184795)'); diff --git a/data/sql/updates/db_world/2023_03_02_00.sql b/data/sql/updates/db_world/2023_03_02_00.sql new file mode 100644 index 000000000..ea96d5be7 --- /dev/null +++ b/data/sql/updates/db_world/2023_03_02_00.sql @@ -0,0 +1,342 @@ +-- DB update 2023_03_01_07 -> 2023_03_02_00 +-- Gurthock Gossip +DELETE FROM `gossip_menu` WHERE (`MenuID` = 7699); +INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES +(7699, 9394), +(7699, 9403); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 14) AND (`SourceGroup` = 7699) AND (`SourceEntry` IN (9394, 9403)); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(14, 7699, 9394, 0, 0, 8, 0, 9977, 0, 0, 1, 0, 0, '', 'Show text if player does not have quest \'The Ring of Blood: The Final Challenge\' rewarded'), +(14, 7699, 9403, 0, 0, 8, 0, 9977, 0, 0, 0, 0, 0, '', 'Show text if player has quest \'The Ring of Blood: The Final Challenge\' rewarded'); + +-- Minor Adjustments +DELETE FROM `creature_template_addon` WHERE (`entry` IN (18400, 18402)); +INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES +(18400, 0, 0, 0, 0, 0, 0, '21911'), +(18402, 0, 0, 0, 1, 0, 0, ''); + +UPDATE `creature_template_addon` SET `bytes2` = 1 WHERE (`entry` = 18399); + +UPDATE `creature_text` SET `Emote`=15 WHERE `CreatureID`=18399 AND `GroupID`=0 AND `ID`=0; +UPDATE `creature_text` SET `Type`=12, `Emote`=15 WHERE `CreatureID`=18402 AND `GroupID`=0 AND `ID`=0; + +UPDATE `creature` SET `spawntimesecs`=1 WHERE `guid`=48191 AND `id1`=18069; + +-- Add Boss immunities to challengers +UPDATE `creature_template` SET `mechanic_immune_mask` = 650854271 WHERE (`entry` IN (18398, 18399, 18400, 18401, 18402)); + +-- Skra'gath Text +DELETE FROM `creature_text` WHERE `CreatureID`=18401; +INSERT INTO `creature_text` (`CreatureID`, `BroadcastTextId`, `GroupID`, `ID`, `Text`, `Type`, `comment`) VALUES +(18401, 15472, 0, 0, 'Closer... Come closer... See what the void brings!', 14, 'Skra\'gath'), +(18401, 17110, 1, 0, '%s absorbs the holy energy of the attack.', 16, 'Skra\'gath'), +(18401, 17105, 2, 0, '%s absorbs the fire energy of the attack.', 16, 'Skra\'gath'), +(18401, 17107, 3, 0, '%s absorbs the nature energy of the attack.', 16, 'Skra\'gath'), +(18401, 17106, 4, 0, '%s absorbs the frost energy of the attack.', 16, 'Skra\'gath'), +(18401, 17108, 5, 0, '%s absorbs the shadow energy of the attack.', 16, 'Skra\'gath'), +(18401, 17109, 6, 0, '%s absorbs the arcane energy of the attack.', 16, 'Skra\'gath'); + +-- Text for Mogor and Gurgthock +DELETE FROM `creature_text` WHERE `CreatureID` IN (18069, 18398, 18471); +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(18398, 0, 0, 'Brokentoe prepares to charge.', 41, 0, 100, 0, 0, 0, 15438, 0, 'Brokentoe'), +(18069, 0, 0, '%s goes into a frenzy!', 16, 0, 100, 0, 0, 0, 38630, 0, 'Mogor'), +(18069, 1, 0, 'Dat was poop! Mogor could put up much better fight den dat!', 14, 0, 100, 15, 0, 0, 15470, 0, 'Mogor'), +(18069, 2, 0, 'Mogor not impressed! Skra\'gath wuz made of da air and shadow! Soft like da squishy orcies!', 14, 0, 100, 15, 0, 0, 15474, 0, 'Mogor'), +(18069, 3, 0, 'WUT!? UNPOSSIBLE!! You fight Mogor now! Mogor destroy!', 14, 0, 100, 15, 0, 0, 15477, 0, 'Mogor'), +(18069, 4, 0, 'Now you face da true champion! I give you chance to run away little one. Run away now before Mogor decim... destyor... Run away before Mogor KILL!', 14, 0, 100, 0, 0, 0, 15478, 0, 'Mogor'), +(18069, 5, 0, 'No more chances! Now you pay da ogre!', 14, 0, 100, 15, 0, 0, 15479, 0, 'Mogor'), +(18069, 6, 0, 'No more nice ogre! You hurt Mogor!!', 14, 0, 100, 0, 0, 0, 15483, 0, 'Mogor'), +(18471, 0 , 0, 'Get in the Ring of Blood, $n. The fight is about to start!', 12, 0, 100, 1, 0, 0, 15441, 0, 'Gurgthock'), +(18471, 1 , 0, 'The battle is about to begin! $n versus the ferocious clefthoof, Brokentoe!', 14, 0, 100, 15, 0, 0, 15439, 0, 'Gurgthock'), +(18471, 2 , 0, '$n has defeated Brokentoe!', 14, 0, 100, 15, 0, 0, 15442, 0, 'Gurgthock'), +(18471, 3 , 0, 'The battle is about to begin! The unmerciful Murkblood twins versus $n!', 14, 0, 100, 15, 0, 0, 15461, 0, 'Gurgthock'), +(18471, 4 , 0, 'Unbelievable! $n has defeated the Murkblood twins!', 14, 0, 100, 15, 0, 0, 15462, 0, 'Gurgthock'), +(18471, 5 , 0, 'Hailing from the mountains of Blade\'s Edge comes Rokdar the Sundered Lord! $n is in for the fight of $g his:her, life.', 14, 0, 100, 15, 0, 0, 15467, 0, 'Gurgthock'), +(18471, 6 , 0, 'From parts unknown: Skra\'gath! Can $n possibly survive the onslaught of void energies?', 14, 0, 100, 15, 0, 0, 15473, 0, 'Gurgthock'), +(18471, 7 , 0, 'This is the moment we\'ve all been waiting for! The Warmaul champion is about to make his first showing at the Ring of Blood in weeks! Will $n go down in defeat as easily as the champion\'s other opponents? We shall see...', 14, 0, 100, 15, 0, 0, 15475, 0, 'Gurgthock'), +(18471, 8 , 0, '$n is victorious once more!', 14, 0, 100, 15, 0, 0, 15469, 0, 'Gurgthock'), +(18471, 9 , 1, 'All that\'s left of $n is a red stain on the floor!', 14, 0, 100, 15, 0, 0, 15485, 0, 'Gurgthock'), +(18471, 9, 0, '$n went down like a sack of orc skulls!', 14, 0, 100, 15, 0, 0, 15484, 0, 'Gurgthock'), +(18471, 10, 0, 'Mogor has challenged you. You have to accept! Get in the ring if you are ready to fight.', 12, 0, 100, 1, 0, 0, 15480, 0, 'Gurgthock'), +(18471, 11, 0, 'For the first time in the Ring of Blood\'s history, Mogor has chosen to exercise his right of battle! On this wartorn ground, $n will face Mogor, hero of the Warmaul!', 14, 0, 100, 15, 0, 0, 15481, 0, 'Gurgthock'), +(18471, 12, 0, '$n has defeated the hero of the Warmaul, Mogor! All hail $n!', 14, 0, 100, 15, 0, 0, 15482, 2, 'Gurgthock'), +(18471, 13, 0, '$n has been defeated!', 14, 0, 100, 15, 0, 0, 15443, 2, 'Gurgthock'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 18471); +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 +(18471, 0, 0 , 0, 19, 0, 100, 0, 9962, 0, 0, 0, 0, 80, 1847100, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Quest \'The Ring of Blood: Brokentoe\' Taken - Run Script'), +(18471, 0, 1 , 0, 19, 0, 100, 0, 9967, 0, 0, 0, 0, 80, 1847103, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Quest \'The Ring of Blood: The Blue Brothers\' Taken - Run Script'), +(18471, 0, 2 , 0, 19, 0, 100, 0, 9970, 0, 0, 0, 0, 80, 1847106, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Quest \'The Ring of Blood: Rokdar the Sundered Lord\' Taken - Run Script'), +(18471, 0, 3 , 0, 19, 0, 100, 0, 9972, 0, 0, 0, 0, 80, 1847109, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Quest \'The Ring of Blood: Skra\'gath\' Taken - Run Script'), +(18471, 0, 4 , 0, 19, 0, 100, 0, 9973, 0, 0, 0, 0, 80, 1847112, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Quest \'The Ring of Blood: The Warmaul Champion\' Taken - Run Script'), +(18471, 0, 5 , 0, 19, 0, 100, 0, 9977, 0, 0, 0, 0, 80, 1847115, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Quest \'The Ring of Blood: The Final Challenge\' Taken - Run Script'), +(18471, 0, 6 , 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1847101, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 1 1 - Run Brokentoe Success Script'), +(18471, 0, 7 , 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 80, 1847102, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 2 2 - Run Brokentoe Failure Script'), +(18471, 0, 8 , 9, 77, 0, 100, 0, 1, 2, 0, 0, 0, 80, 1847104, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On 2 Twins Killed - Run Murkblood Twins Success Script'), +(18471, 0, 9 , 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 63, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On 2 Twins Killed - Reset Counter'), +(18471, 0, 10, 0, 38, 0, 100, 0, 5, 5, 0, 0, 0, 80, 1847105, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 5 5 - Run Murkblood Twins Failure Script'), +(18471, 0, 11, 0, 38, 0, 100, 0, 7, 7, 0, 0, 0, 80, 1847107, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 7 7 - Run Rokdar Success Script'), +(18471, 0, 12, 0, 38, 0, 100, 0, 8, 8, 0, 0, 0, 80, 1847108, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 8 8 - Run Rokdar Failure Script'), +(18471, 0, 13, 0, 38, 0, 100, 0, 10, 10, 0, 0, 0, 80, 1847110, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 10 10 - Run Skra\'gath Success Script'), +(18471, 0, 14, 0, 38, 0, 100, 0, 11, 11, 0, 0, 0, 80, 1847111, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 11 11 - Run Skra\'gath Failure Script'), +(18471, 0, 15, 0, 38, 0, 100, 0, 13, 13, 0, 0, 0, 80, 1847113, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 13 13 - Run Champion Success Script'), +(18471, 0, 16, 0, 38, 0, 100, 0, 14, 14, 0, 0, 0, 80, 1847114, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 14 14 - Run Champion Failure Script'), +(18471, 0, 17, 0, 38, 0, 100, 0, 16, 16, 0, 0, 0, 80, 1847116, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 16 16 - Run Mogor Success Script'), +(18471, 0, 18, 0, 38, 0, 100, 0, 17, 17, 0, 0, 0, 80, 1847117, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - On Data Set 17 17 - Run Mogor Failure Script'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` BETWEEN 1847100 AND 1847117); +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 +-- Brokentoe Spawn +(1847100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Spawn Script - Store Targetlist Invoker'), +(1847100, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Spawn Script - Store Targetlist Invoker Party'), +(1847100, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Spawn Script - Remove Npc Flags Questgiver'), +(1847100, 9, 3, 0, 0, 0, 100, 0, 3200, 3200, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Spawn Script - Say Line 0'), +(1847100, 9, 4, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Spawn Script - Say Line 1'), +(1847100, 9, 5, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 12, 18398, 6, 5000, 0, 0, 0, 8, 0, 0, 0, 0, -709.046, 7882.44, 46.0542, 1.98968, 'Gurgthock - Brokentoe Spawn Script - Summon Creature \'Brokentoe\''), +-- Brokentoe Success +(1847101, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Success Script - Say Line 2'), +(1847101, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Success Script - Add Npc Flags Questgiver'), +(1847101, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 15, 9962, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Success Script - Quest Credit \'The Ring of Blood: Brokentoe\''), +-- Brokentoe Failure +(1847102, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 9, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Failure Script - Say Line 9'), +(1847102, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Failure Script - Add Npc Flags Questgiver'), +(1847102, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 6, 9962, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Brokentoe Failure Script - Fail Quest \'The Ring of Blood: Brokentoe\''), +-- Murkblood Twins Spawn +(1847103, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Store Targetlist Invoker'), +(1847103, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Store Targetlist Invoker Party for Quest Credit'), +(1847103, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Remove Npc Flags Questgiver'), +(1847103, 9, 3, 0, 0, 0, 100, 0, 3200, 3200, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Say Line 0'), +(1847103, 9, 4, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 0, 1, 3, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Say Line 3'), +(1847103, 9, 5, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 12, 18399, 6, 5000, 0, 0, 0, 8, 0, 0, 0, 0, -718.036, 7871.62, 45.2835, 1.5708, 'Gurgthock - Murkblood Twins Spawn Script - Summon Creature \'Murkblood Twin\''), +(1847103, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 12, 18399, 6, 5000, 0, 0, 0, 8, 0, 0, 0, 0, -696.431, 7883.26, 47.4277, 2.47837, 'Gurgthock - Murkblood Twins Spawn Script - Summon Creature \'Murkblood Twin\''), +-- (1847103, 9, 7, 0, 0, 0, 100, 0, 200, 200, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 18399, 100, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Set Data 1 1 on Left Twin'), +-- (1847103, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 9, 18399, 0, 100, 1, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Set Data 2 2 on Right Twin'), +(1847103, 9, 7, 0, 0, 0, 100, 0, 1200, 1200, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 9, 18399, 0, 100, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Spawn Script - Send Target 1 to both Twins'), -- Attack Start on Stored Target within 1200ms if not already in combat +-- Murkblood Twins Success +(1847104, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 4, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Success Script - Say Line 4'), +(1847104, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Success Script - Add Npc Flags Questgiver'), +(1847104, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 15, 9967, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Success Script - Quest Credit \'The Ring of Blood: The Blue Brothers\''), +-- Murkblood Twins Failure +(1847105, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 18399, 0, 200, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Failure Script - Despawn Twins for Safety'), +(1847105, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 9, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Failure Script - Say Line 9'), +(1847105, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Failure Script - Add Npc Flags Questgiver'), +(1847105, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 6, 9967, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Failure Script - Fail Quest \'The Ring of Blood: The Blue Brothers\''), +(1847105, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 63, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Murkblood Twins Failure Script - Reset Counter'), +-- Rokdar Spawn +(1847106, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Spawn Script - Store Targetlist Invoker'), +(1847106, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Spawn Script - Store Targetlist Invoker Party'), +(1847106, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Spawn Script - Remove Npc Flags Questgiver'), +(1847106, 9, 3, 0, 0, 0, 100, 0, 3200, 3200, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Spawn Script - Say Line 0'), +(1847106, 9, 4, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 0, 1, 5, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Spawn Script - Say Line 5'), +(1847106, 9, 5, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 12, 18400, 6, 5000, 0, 0, 0, 8, 0, 0, 0, 0, -709.567, 7882.856, 46.109646, 1.9024088382720947, 'Gurgthock - Rokdar Spawn Script - Summon Creature \'Rokdar the Sundered Lord\''), +(1847106, 9, 6, 0, 0, 0, 100, 0, 200, 200, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 18400, 100, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Spawn Script - Send Stored Target to Rokdar'), +(1847106, 9, 7, 0, 0, 0, 100, 0, 200, 200, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 18400, 100, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Spawn Script - Set Data 1 1 on Rokdar'), -- Talk and Attack Stored Target within 2000ms if not already in combat +-- Rokdar Success +(1847107, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 8, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Success Script - Say Line 8'), +(1847107, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Success Script - Add Npc Flags Questgiver'), +(1847107, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 15, 9970, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Success Script - Quest Credit \'The Ring of Blood: Rokdar the Sundered Lord\''), +(1847107, 9, 3, 0, 0, 0, 100, 0, 5200, 5200, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 10, 48191, 18069, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Success Script - Mogor Say Line 1'), +-- Rokdar Failure +(1847108, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 9, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Failure Script - Say Line 9'), +(1847108, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Failure Script - Add Npc Flags Questgiver'), +(1847108, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 6, 9970, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Rokdar Failure Script - Fail Quest \'The Ring of Blood: Rokdar the Sundered Lord\''), +-- Skra'gath Spawn +(1847109, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Spawn Script - Store Targetlist Invoker'), +(1847109, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Spawn Script - Store Targetlist Invoker Party'), +(1847109, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Spawn Script - Remove Npc Flags Questgiver'), +(1847109, 9, 3, 0, 0, 0, 100, 0, 3200, 3200, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Spawn Script - Say Line 0'), +(1847109, 9, 4, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 0, 1, 6, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Spawn Script - Say Line 6'), +(1847109, 9, 5, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 12, 18401, 6, 5000, 0, 0, 0, 8, 0, 0, 0, 0, -708.91364, 7883.2563, 46.199944, 1.832595705986023, 'Gurgthock - Skra\'gath Spawn Script - Summon Creature \'Skra\'gath\''), +(1847109, 9, 6, 0, 0, 0, 100, 0, 400, 400, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 18401, 100, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Spawn Script - Send Target 1'), +(1847109, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 18401, 100, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Spawn Script - Set Data 1 1 on Skra\'gath'), +-- Skra'gath Success +(1847110, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 8, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Success Script - Say Line 8'), +(1847110, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Success Script - Add Npc Flags Questgiver'), +(1847110, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 15, 9972, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Success Script - Quest Credit \'The Ring of Blood: Skra\'gath\''), +(1847110, 9, 3, 0, 0, 0, 100, 0, 5200, 5200, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 10, 48191, 18069, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Success Script - Mogor Say Line 2'), +-- Skra'gath Failure +(1847111, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 9, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Failure Script - Say Line 9'), +(1847111, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Failure Script - Add Npc Flags Questgiver'), +(1847111, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 6, 9972, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Skra\'gath Failure Script - Fail Quest \'The Ring of Blood: Skra\'gath\''), +-- Champion Spawn +(1847112, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Spawn Script - Store Targetlist Invoker'), +(1847112, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Spawn Script - Store Targetlist Invoker Party'), +(1847112, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Spawn Script - Remove Npc Flags Questgiver'), +(1847112, 9, 3, 0, 0, 0, 100, 0, 3200, 3200, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Spawn Script - Say Line 0'), +(1847112, 9, 4, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 0, 1, 7, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Spawn Script - Say Line 7'), +(1847112, 9, 5, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 12, 18402, 6, 5000, 0, 0, 0, 8, 0, 0, 0, 0, -705.97473, 7866.7163, 45.06112, 1.5707963705062866, 'Gurgthock - Champion Spawn Script - Summon Creature \'Warmaul Champion\''), +(1847112, 9, 6, 0, 0, 0, 100, 0, 400, 400, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 18402, 100, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Spawn Script - Send Target 1'), +(1847112, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 19, 18402, 100, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Spawn Script - Set Data 1 1 on Champion'), +-- Champion Success +(1847113, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 8, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Success Script - Say Line 8'), +(1847113, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Success Script - Add Npc Flags Questgiver'), +(1847113, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 15, 9973, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Success Script - Quest Credit \'The Ring of Blood: The Warmaul Champion\''), +(1847113, 9, 3, 0, 0, 0, 100, 0, 5200, 5200, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 10, 48191, 18069, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Success Script - Mogor Say Line 3'), +-- Champion Failure +(1847114, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 9, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Failure Script - Say Line 9'), +(1847114, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Failure Script - Add Npc Flags Questgiver'), +(1847114, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 6, 9973, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Champion Failure Script - Fail Quest \'The Ring of Blood: The Warmaul Champion\''), +-- Mogor Start +(1847115, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Start Script - Store Targetlist Invoker'), +(1847115, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Start Script - Store Targetlist Invoker Party'), +(1847115, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Start Script - Remove Npc Flags Questgiver'), +(1847115, 9, 3, 0, 0, 0, 100, 0, 3200, 3200, 0, 0, 0, 1, 10, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Start Script - Say Line 10'), +(1847115, 9, 4, 0, 0, 0, 100, 0, 11000, 11000, 0, 0, 0, 1, 11, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Start Script - Say Line 11'), +(1847115, 9, 5, 0, 0, 0, 100, 0, 3400, 3400, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 48191, 18069, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Start Script - Set Data 1 1'), +(1847115, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 10, 48191, 18069, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Start Script - Send Target 1'), +-- Mogor Success +(1847116, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 12, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Success Script - Say Line 12'), +(1847116, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 15, 9977, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Success Script - Quest Credit \'The Ring of Blood: The Final Challenge\''), +(1847116, 9, 2, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Success Script - Add Npc Flags Questgiver'), +-- Mogor Failure +(1847117, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 13, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Failure Script - Say Line 13'), +(1847117, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Failure Script - Add Npc Flags Questgiver'), +(1847117, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 6, 9977, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Gurgthock - Mogor Failure Script - Fail Quest \'The Ring of Blood: The Final Challenge\''); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` IN (18398, 18399, 18400, 18401, 18402)); +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 +(18398, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 9000, 11000, 0, 11, 32023, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Brokentoe - In Combat - Cast \'Hoof Stomp\''), +(18398, 0, 1, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 1, 1, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Brokentoe - On Just Died - Set Data 1 1 on Gurgthock'), +(18398, 0, 2, 3, 1, 0, 100, 1, 30000, 30000, 0, 0, 0, 45, 2, 2, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Brokentoe - Out of Combat - Set Data 2 2 on Gurgthock (No Repeat)'), +(18398, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Brokentoe - Out of Combat - Despawn Instant (No Repeat)'), +(18398, 0, 4, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 'Brokentoe - On Aggro - Say Line 0'), + +(18399, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 2000, 2000, 0, 11, 14873, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - In Combat - Cast \'Sinister Strike\''), +(18399, 0, 1, 0, 0, 0, 100, 0, 5000, 6000, 11000, 12000, 0, 11, 15692, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - In Combat - Cast \'Eviscerate\''), +(18399, 0, 2, 0, 0, 0, 100, 0, 8000, 9000, 15000, 16000, 0, 11, 32319, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - In Combat - Cast \'Mutilate\''), +(18399, 0, 3, 0, 6, 0, 100, 1, 0, 0, 0, 0, 0, 63, 1, 1, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - On Just Died - Add to Counter for Victory Event'), +(18399, 0, 4, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 39, 25, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - On Aggro - Call For Help'), +(18399, 0, 5, 6, 1, 0, 100, 1, 30000, 30000, 0, 0, 0, 45, 5, 5, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - Out of Combat - Set Data 5 5 (No Repeat)'), +(18399, 0, 6, 7, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 19, 18399, 100, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - Out of Combat - Despawn Instant (No Repeat)'), +(18399, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - Out of Combat - Despawn Instant (No Repeat)'), +(18399, 0, 8, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 87, 1839900, 1839901, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - On Respawn - Run Random Script'), +-- (18399, 0, 8, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1839900, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - On Data Set 1 1 - Run Left Script'), +-- (18399, 0, 9, 0, 38, 0, 100, 0, 2, 2, 0, 0, 0, 80, 1839901, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Murkblood Twin - On Data Set 2 2 - Run Right Script'), + +(18400, 0, 0, 0, 0, 0, 100, 0, 23000, 27000, 34000, 37000, 0, 11, 16727, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - In Combat - Cast \'War Stomp\''), +(18400, 0, 1, 0, 31, 0, 100, 0, 31389, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - On Target Spellhit \'Knock Away\' - Say Line 0'), +(18400, 0, 2, 0, 0, 0, 100, 0, 6000, 6000, 12000, 12000, 0, 11, 31389, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - In Combat - Cast \'Knock Away\''), +(18400, 0, 3, 0, 0, 0, 100, 0, 20000, 20000, 25000, 25000, 0, 11, 15976, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - In Combat - Cast \'Puncture\''), +(18400, 0, 4, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 7, 7, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - On Just Died - Set Data 7 7'), +(18400, 0, 5, 6, 1, 0, 100, 1, 30000, 30000, 0, 0, 0, 45, 8, 8, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - Out of Combat - Set Data 8 8 (No Repeat)'), +(18400, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - Out of Combat - Despawn Instant (No Repeat)'), +(18400, 0, 7, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1840000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - On Data Set 1 1 - Run Script'), + +(18401, 0, 0, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 11, 29299, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Respawn - Cast \'Draining Touch\''), +(18401, 0, 1, 0, 0, 0, 100, 0, 6000, 9000, 24000, 27000, 0, 11, 16429, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - In Combat - Cast \'Piercing Shadow\''), +(18401, 0, 2, 8, 9, 0, 100, 0, 0, 5, 16000, 19000, 0, 11, 32324, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - Within 0-5 Range - Cast \'Shadow Burst\''), +(18401, 0, 3, 0, 0, 0, 100, 0, 12000, 15000, 33000, 37000, 0, 11, 32322, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - In Combat - Cast \'Dark Shriek\''), +(18401, 0, 4, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 10, 10, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Just Died - Set Data 10 10'), +(18401, 0, 5, 6, 1, 0, 100, 1, 30000, 30000, 0, 0, 0, 45, 11, 11, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Skra\'gath - Out of Combat - Set Data 11 11 (No Repeat)'), +(18401, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - Out of Combat - Despawn Instant (No Repeat)'), +(18401, 0, 7, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1840100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Data Set 1 1 - Run Script'), +(18401, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 14, 0, 100, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - After Shadow Burst - Wipe All Threat'), +(18401, 0, 9 , 10, 8, 1, 100, 0, 0, 2, 0, 0, 0, 11, 34336, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Cast \'Damage Reduction: Holy\' (Phase 1)'), +(18401, 0, 10, 11, 61, 1, 100, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Say Line 1 (Phase 1)'), +(18401, 0, 11, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Set Event Phase 0 (Phase 1)'), +(18401, 0, 12, 13, 8, 1, 100, 0, 0, 4, 0, 0, 0, 11, 34333, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Fire\' - Cast \'Damage Reduction: Fire\' (Phase 1)'), +(18401, 0, 13, 14, 61, 1, 100, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Fire\' - Say Line 2 (Phase 1)'), +(18401, 0, 14, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Set Event Phase 0 (Phase 1)'), +(18401, 0, 15, 16, 8, 1, 100, 0, 0, 8, 0, 0, 0, 11, 34335, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Nature\' - Cast \'Damage Reduction: Nature\' (Phase 1)'), +(18401, 0, 16, 17, 61, 1, 100, 0, 0, 0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Nature\' - Say Line 3 (Phase 1)'), +(18401, 0, 17, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Set Event Phase 0 (Phase 1)'), +(18401, 0, 18, 19, 8, 1, 100, 0, 0, 16, 0, 0, 0, 11, 34334, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Frost\' - Cast \'Damage Reduction: Frost\' (Phase 1)'), +(18401, 0, 19, 20, 61, 1, 100, 0, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Frost\' - Say Line 4 (Phase 1)'), +(18401, 0, 20, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Set Event Phase 0 (Phase 1)'), +(18401, 0, 21, 22, 8, 1, 100, 0, 0, 32, 0, 0, 0, 11, 34338, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Shadow\' - Cast \'Damage Reduction: Shadow\' (Phase 1)'), +(18401, 0, 22, 23, 61, 1, 100, 0, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Shadow\' - Say Line 5 (Phase 1)'), +(18401, 0, 23, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Set Event Phase 0 (Phase 1)'), +(18401, 0, 24, 25, 8, 1, 100, 0, 0, 64, 0, 0, 0, 11, 34331, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Arcane\' - Cast \'Damage Reduction: Arcane\' (Phase 1)'), +(18401, 0, 25, 26, 61, 1, 100, 0, 0, 0, 0, 0, 0, 1, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Arcane\' - Say Line 6 (Phase 1)'), +(18401, 0, 26, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Spellhit \'Holy\' - Set Event Phase 0 (Phase 1)'), +(18401, 0, 27, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - On Aggro - Set Event Phase 1'), + +(18402, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 11, 31403, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - On Aggro - Cast \'Battle Shout\''), +(18402, 0, 1, 0, 9, 0, 100, 0, 8, 25, 23000, 25000, 0, 11, 32323, 1, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - Within 8-25 Range - Cast \'Charge\''), +(18402, 0, 2, 0, 0, 0, 100, 0, 3000, 4000, 14000, 17000, 0, 11, 15708, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - In Combat - Cast \'Mortal Strike\''), +(18402, 0, 3, 0, 9, 0, 100, 0, 0, 5, 9000, 13000, 0, 11, 17963, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - Within 0-5 Range - Cast \'Sundering Cleave\''), +(18402, 0, 4, 0, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 13, 13, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - On Just Died - Set Data 13 13'), +(18402, 0, 5, 6, 1, 0, 100, 1, 30000, 30000, 0, 0, 0, 45, 14, 14, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - Out of Combat - Set Data 14 14 (No Repeat)'), +(18402, 0, 6, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - Out of Combat - Despawn Instant (No Repeat)'), +(18402, 0, 7, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1840200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - On Data Set 1 1 - Run Script'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` IN (1839900, 1839901, 1840000, 1840100, 1840200)); +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 +(1839900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 5, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Right Murkblood Twin - Actionlist - Play Emote 71'), +(1839900, 9, 1, 0, 0, 0, 100, 0, 2200, 2200, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Right Murkblood Twin - Actionlist - Start Attacking'), + +(1839901, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Left Murkblood Twin - Actionlist - Say Line 0'), +(1839901, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Left Murkblood Twin - Actionlist - Start Attacking'), + +(1840000, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - Actionlist - Say Line 0'), +(1840000, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Rokdar the Sundered Lord - Actionlist - Start Attacking'), + +(1840100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - Actionlist - Say Line 0'), +(1840100, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Skra\'gath - Actionlist - Start Attacking'), + +(1840200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - Actionlist - Say Line 0'), +(1840200, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Warmaul Champion - Actionlist - Start Attacking'); + +-- Adjustments to Mogor script +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 18069); +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 +(18069, 0, 0, 0, 9, 0, 100, 0, 0, 30, 6000, 8000, 0, 11, 16033, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Within 0-30 Range - Cast \'Chain Lightning\''), +(18069, 0, 1, 0, 9, 0, 100, 0, 0, 20, 8000, 18000, 0, 11, 39529, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Within 0-20 Range - Cast \'Flame Shock\''), +(18069, 0, 2, 0, 2, 0, 100, 0, 0, 50, 15000, 15000, 0, 11, 15982, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Between 0-50% Health - Cast \'Healing Wave\''), +(18069, 0, 3, 0, 0, 0, 100, 0, 3400, 6400, 13200, 26400, 0, 11, 18975, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - In Combat - Cast \'Summon Ice Totem\''), +(18069, 0, 5, 0, 2, 0, 100, 1, 0, 1, 1200, 1200, 0, 80, 1806902, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Between 0-1% Health - Run Script (No Repeat)'), +(18069, 0, 4, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 80, 1806900, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - On Data Set 1 1 - Run Script'), +-- (18069, 0, 6, 7, 1, 0, 100, 0, 45000, 45000, 45000, 45000, 0, 45, 17, 17, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Mogor - Out of Combat - Set Data 17 17 - Failure Event'), -- Does not work. Event seems to be queued until the condition (near Gurgthock) is passed +-- (18069, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Out of Combat - Despawn Instant - Failure Event'), +(18069, 0, 6, 7, 7, 0, 100, 0, 0, 0, 0, 0, 0, 45, 17, 17, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Mogor - On Evade - Set Data 17 17 - Failure Event'), -- This is where I gave up. Should be a timer but it did not work with OOC timers or event phases in cases of reset +(18069, 0, 7, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - On Evade - Despawn Instant - Failure Event'), +(18069, 0, 8, 9, 6, 0, 100, 0, 0, 0, 0, 0, 0, 45, 16, 16, 0, 0, 0, 0, 10, 66480, 18471, 0, 0, 0, 0, 0, 0, 'Mogor - On Just Died - Set Data 16 16 - Success Event'), +(18069, 0, 9, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 41, 5000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - On Just Died - Despawn In 5000 ms'), +(18069, 0, 10, 0, 58, 0, 100, 0, 17, 1806900, 0, 0, 0, 80, 1806901, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - On Waypoint Finished - Run Script'); + +DELETE FROM `smart_scripts` WHERE (`source_type` = 9 AND `entryorguid` IN (1806900, 1806901, 1806902)); +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 +(1806900, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Say Line 4'), +(1806900, 9, 1, 0, 0, 0, 100, 0, 5000, 5000, 0, 0, 0, 53, 0, 1806900, 0, 0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Start Waypoint'), + +(1806901, 9, 0, 0, 0, 0, 100, 0, 500, 500, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Set Orientation Stored Target'), +(1806901, 9, 1, 0, 0, 0, 100, 0, 3200, 3200, 0, 0, 0, 1, 5, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Say Line 5'), +(1806901, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 42, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Set Invincibility Hp 1'), +(1806901, 9, 3, 0, 0, 0, 100, 0, 3600, 3600, 0, 0, 0, 2, 14, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Set Faction 14'), +(1806901, 9, 4, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Set Event Phase 1'), +(1806901, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Set Reactstate Aggressive'), +(1806901, 9, 6, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Start Attacking Stored Target'), + +(1806902, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 11, 12141, 50, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Despawn Instant'), +(1806902, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Missing comment for action_type 27'), +(1806902, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Remove All Auras'), +(1806902, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 11, 31261, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Cast \'Permanent Feign Death (Root)\''), +(1806902, 9, 4, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 11, 32343, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Cast \'Revive Self\''), +(1806902, 9, 5, 0, 0, 0, 100, 0, 2400, 2400, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Remove All Auras'), +(1806902, 9, 6, 0, 0, 0, 100, 0, 1200, 1200, 0, 0, 0, 11, 28747, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Cast \'Frenzy\''), +(1806902, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Start Attacking'), +(1806902, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 1, 6, 0, 1, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Say Line 6'), +(1806902, 9, 9, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Mogor - Actionlist - Reset Invincibility Hp'); + +DELETE FROM `waypoints` WHERE `entry`=18069; -- Delete old one +DELETE FROM `waypoints` WHERE `entry`=1806900 AND `point_comment`='Mogor'; +INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `orientation`, `point_comment`) VALUES +(1806900,1 ,-714.55914,7927.985,58.98062,NULL,'Mogor'), +(1806900,2 ,-715.80914,7925.235,59.23062,NULL,'Mogor'), +(1806900,3 ,-716.05914,7924.235,59.48062,NULL,'Mogor'), +(1806900,4 ,-717.30914,7920.735,58.98062,NULL,'Mogor'), +(1806900,5 ,-718.05914,7918.985,58.23062,NULL,'Mogor'), +(1806900,6 ,-718.80914,7916.985,57.98062,NULL,'Mogor'), +(1806900,7 ,-719.30914,7916.235,57.23062,NULL,'Mogor'), +(1806900,8 ,-719.55914,7915.235,56.48062,NULL,'Mogor'), +(1806900,9 ,-720.21796,7914.135,55.32333,NULL,'Mogor'), +(1806900,10,-720.4691,7905.346,50.524868,NULL,'Mogor'), +(1806900,11,-720.1519,7905.2637,50.770866,NULL,'Mogor'), +(1806900,12,-719.6519,7904.5137,50.520866,NULL,'Mogor'), +(1806900,13,-719.4019,7903.5137,50.020866,NULL,'Mogor'), +(1806900,14,-718.4019,7902.0137,49.770866,NULL,'Mogor'), +(1806900,15,-717.6519,7900.2637,49.520866,NULL,'Mogor'), +(1806900,16,-716.9019,7898.5137,49.270866,NULL,'Mogor'), +(1806900,17,-715.9375,7896.4297,48.333324,NULL,'Mogor'); diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 9236fc594..43262a38d 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -1344,7 +1344,7 @@ bool GameObject::ActivateToQuest(Player* target) const case GAMEOBJECT_TYPE_CHEST: { // scan GO chest with loot including quest items - if (LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), target)) + if (target->GetQuestStatus(GetGOInfo()->chest.questId) == QUEST_STATUS_INCOMPLETE || LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), target)) { //TODO: fix this hack //look for battlegroundAV for some objects which are only activated after mine gots captured by own team diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp index 1fa5d63ad..57b90967d 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_lord_marrowgar.cpp @@ -408,27 +408,29 @@ public: { if (!summoner) return; - - if (summoner->GetTypeId() != TYPEID_UNIT) + if (Unit* summonerUnit = summoner->ToUnit()) { - return; + if (Vehicle* v = summonerUnit->GetVehicle()) + { + if (Unit* u = v->GetBase()) + { + if (u->GetEntry() == NPC_BONE_SPIKE && u->GetTypeId() == TYPEID_UNIT) + { + u->ToCreature()->AI()->DoAction(-1337); + } + } + } + ObjectGuid petGUID = summonerUnit->GetPetGUID(); + summonerUnit->SetPetGUID(ObjectGuid::Empty); + me->CastSpell(summonerUnit, SPELL_IMPALED, true); + summonerUnit->CastSpell(me, SPELL_RIDE_VEHICLE, true); + //summoner->ClearUnitState(UNIT_STATE_ONVEHICLE); + summonerUnit->SetPetGUID(petGUID); + summonerUnit->GetMotionMaster()->Clear(); + summonerUnit->StopMoving(); + events.ScheduleEvent(1, 8000); + hasTrappedUnit = true; } - - if (Vehicle* v = summoner->ToUnit()->GetVehicle()) - if (Unit* u = v->GetBase()) - if (u->GetEntry() == NPC_BONE_SPIKE && u->GetTypeId() == TYPEID_UNIT) - u->ToCreature()->AI()->DoAction(-1337); - - ObjectGuid petGUID = summoner->ToUnit()->GetPetGUID(); - summoner->ToUnit()->SetPetGUID(ObjectGuid::Empty); - me->CastSpell(summoner->ToUnit(), SPELL_IMPALED, true); - summoner->ToUnit()->CastSpell(me, SPELL_RIDE_VEHICLE, true); - //summoner->ClearUnitState(UNIT_STATE_ONVEHICLE); - summoner->ToUnit()->SetPetGUID(petGUID); - summoner->ToUnit()->GetMotionMaster()->Clear(); - summoner->ToUnit()->StopMoving(); - events.ScheduleEvent(1, 8000); - hasTrappedUnit = true; } void UpdateAI(uint32 diff) override diff --git a/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp b/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp index 38b8f8f78..b638c1926 100644 --- a/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp +++ b/src/server/scripts/Outland/BlackTemple/boss_reliquary_of_souls.cpp @@ -250,6 +250,9 @@ public: me->CastCustomSpell(SPELL_SUMMON_ENSLAVED_SOUL, SPELLVALUE_MAX_TARGETS, 1, me, false); break; } + + if (!UpdateVictim()) + return; } bool CheckEvadeIfOutOfCombatArea() const override diff --git a/src/server/scripts/Outland/zone_netherstorm.cpp b/src/server/scripts/Outland/zone_netherstorm.cpp index 8936a0598..06526c199 100644 --- a/src/server/scripts/Outland/zone_netherstorm.cpp +++ b/src/server/scripts/Outland/zone_netherstorm.cpp @@ -37,1023 +37,6 @@ EndContentData */ #include "ScriptedGossip.h" #include "SpellInfo.h" -/* ################################### - # QUEST: Deathblow to the legion # - ################################### -*/ - -enum DeathblowToTheLegion -{ - ADYEN_THE_LIGHTBRINGER = 61021, - ANCHORITE_KARJA = 50001, - EXARCH_ORELIS = 50002, - SOCRETHAR = 20132, - KAYLAAN_THE_LOST = 20794, - ISHANAH_HIGH_PRIESTESS = 18538, - - DEATHBLOW_TO_THE_LEGION = 10409, // Quest ID - TURNING_POINT = 10507, // Quest ID - SOCRETHAR_QUEST_CREDIT = 35762, // Quest spell - SOCRETHAR_TP_STONE = 29796 -}; - -enum RoleplayActions -{ - // ADYEN TEXTS - EVENT_ADYEN_SAY_1 = 1, - EVENT_ADYEN_SAY_2 = 2, - EVENT_ADYEN_SAY_3 = 3, - EVENT_ADYEN_SAY_4 = 4, - - // SOCRETHAR TEXT - EVENT_SOCRETHAR_SAY_1 = 5, - EVENT_SOCRETHAR_SAY_2 = 6, - EVENT_SOCRETHAR_SAY_3 = 7, - EVENT_SOCRETHAR_SAY_4 = 8, - EVENT_SOCRETHAR_SAY_5 = 9, - EVENT_SOCRETHAR_SAY_6 = 10, - - // KAYLAAN TEXT - EVENT_KAYLAAN_SAY_1 = 11, - EVENT_KAYLAAN_SAY_2 = 12, - EVENT_KAYLAAN_SAY_3 = 13, - EVENT_KAYLAAN_SAY_4 = 14, - EVENT_KAYLAAN_SAY_5 = 15, // Spawn Ishanah at this point - EVENT_KAYLAAN_SAY_6 = 16, - EVENT_KAYLAAN_SAY_7 = 17, - - // ISHANAH TEXT - EVENT_ISHANAH_SAY_1 = 18, // Make kaylaan bow - EVENT_ISHANAH_SAY_2 = 19, - - // SOCRETHAR ROLEPLAY EVENTS - EVENT_KILL_ISHANAH = 20, - EVENT_KILL_KAYLAAN = 21, - EVENT_FINAL_FIGHT = 22, // On death grant credit to all players on threat list - - // KAYLAAN ROLEPLAY EVENTS - EVENT_KAYLAAN_WALK_TO_ADYEN = 23, // Adyen talks and 3s later he triggers next event - EVENT_KAYLAAN_RESSURECTION = 24, // Ress Ishanah - EVENT_FIGHT_ALDOR = 25, - EVENT_END_ALDOR_FIGHT = 26, - RESET_DEATHBLOW_EVENT = 27 -}; - -enum Adyen -{ - // ADYEN SPELL EVENTS - EVENT_CRUSADER_STRIKE = 1, - EVENT_HAMMER_OF_JUSTICE = 2, - EVENT_HOLY_LIGHT = 3, - - // ADYEN ROLEPLAY EVENTS - EVENT_START_PLAYER_READY = 4, - - // ADYEN SPELLS - CRUSADER_STRIKE = 14518, - HAMMER_OF_JUSTICE = 13005, - HOLY_LIGHT = 13952, - REDEMPTION = 7328, - DIVINE_SHIELD = 40733, - - ADYEN_PATH_ID = 610210 -}; - -enum Karja -{ - // KARJA SPELL EVENTS - EVENT_SPELL_HOLY_SMITE = 1, - - // KARJA ROLEPLAY EVENTS - EVENT_KARJA_WALK = 2, - - // KARJA SPELLS - HOLY_SMITE_KARJA = 9734, - - KARJA_PATH_ID = 500010 -}; - -enum Orelis -{ - // ORELIS SPELL EVENTS - EVENT_SPELL_DEMORALIZING_SHOUT = 1, - EVENT_SPELL_HEROIC_STRIKE = 2, - EVENT_SPELL_REND = 3, - - // ORELIS ROLEPLAY EVENTS - EVENT_ORELIS_WALK = 4, - - // ORELIS SPELLS - DEMORALIZING_SHOUT = 13730, - HEROIC_STRIKE = 29426, - REND = 16509, - - ORELIS_PATH_ID = 500020 -}; - -enum Kaylaan -{ - // KAYLAAN SPELL EVENTS - EVENT_SPELL_BURNING_LIGHT = 6, - EVENT_SPELL_CONSECRATION = 7, - - // KAYLAAN SPELLS - BURNING_LIGHT = 37552, - CONSECRATION = 37553, - - KAYLAAN_PATH_ID1 = 207940, - KAYLAAN_PATH_ID2 = 207941 -}; - -enum Socrethar -{ - // SOCRETHAR SPELL EVENTS # start high to avoid issues with RP enum - EVENT_SPELL_ANTI_MAGIC_SHIELD = 40, - EVENT_SPELL_BACKLASH = 41, - EVENT_SPELL_CLEAVE = 42, - EVENT_SPELL_FIREBALL_BARRAGE = 43, - EVENT_SPELL_NETHER_PROTECTION = 44, - EVENT_SPELL_POWER_OF_THE_LEGION = 45, - EVENT_SPELL_SHADOW_BOLT_VOLLEY = 46, - EVENT_ISHANAH_DIES = 47, - EVENT_KAYLAAN_DIES = 48, - EVENT_ISHANAH_IS_BACK_AGAIN = 49, - - // SOCRETHAR SPELLS - ANTI_MAGIC_SHIELD = 37538, - BACKLASH = 37537, - CLEAVE = 15496, - FIREBALL_BARRAGE = 37540, - NETHER_PROTECTION = 37539, - POWER_OF_THE_LEGION = 35596, - SHADOW_BOLT_VOLLEY = 28448, - WRATH_OF_SOCRETHAR = 35600 -}; - -enum Ishanah -{ - ISHANAH_PATH_ID = 500050 -}; - -// Ishanah script part is in zone shattrath city . cpp - -const Position AdyenSpawnPosition { 4804.839355f, 3773.218750f, 210.530884f, 5.517495f }; -const Position OrelisSpawnPosition { 4805.345215f, 3774.829346f, 210.535095f, 5.517495f }; -const Position KarjaSpawnPosition { 4803.249512f, 3772.649170f, 210.535095f, 5.517495f }; -const Position KaylaanSpawnPosition { 4955.089355f, 3916.570557f, 209.577209f, 4.603052f }; -const Position IshanahSpawnPosition { 4926.066895f, 3825.549072f, 211.494125f, 0.510522f }; - -class deathblow_to_the_legion_trigger : public CreatureScript -{ -public: - deathblow_to_the_legion_trigger() : CreatureScript("deathblow_to_the_legion_trigger") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return new deathblow_to_the_legion_triggerAI(creature); - } - - struct deathblow_to_the_legion_triggerAI : public ScriptedAI - { - deathblow_to_the_legion_triggerAI(Creature* creature) : ScriptedAI(creature), _summons(me) { } - - EventMap _events; - SummonList _summons; - - void JustSummoned(Creature* cr) override { _summons.Summon(cr); } - - void MoveInLineOfSight(Unit* who) override - { - if (who->GetTypeId() == TYPEID_PLAYER && who->IsAlive()) - { - if (who->ToPlayer()->GetQuestStatus(DEATHBLOW_TO_THE_LEGION) == QUEST_STATUS_INCOMPLETE && me->FindNearestCreature(SOCRETHAR, 500.0f, true)) - { - if (!_summons.HasEntry(ADYEN_THE_LIGHTBRINGER)) - { - _summons.RemoveNotExisting(); - me->SummonCreature(ADYEN_THE_LIGHTBRINGER, AdyenSpawnPosition, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000); - if (!_summons.HasEntry(EXARCH_ORELIS)) - me->SummonCreature(EXARCH_ORELIS, OrelisSpawnPosition, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000); - if (!_summons.HasEntry(ANCHORITE_KARJA)) - me->SummonCreature(ANCHORITE_KARJA, KarjaSpawnPosition, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000); - } - } - } - } - }; -}; - -class adyen_the_lightbringer : public CreatureScript -{ -public: - adyen_the_lightbringer(): CreatureScript("adyen_the_lightbringer") { } - - bool OnGossipHello(Player* player, Creature* creature) override - { - if (player->GetQuestStatus(DEATHBLOW_TO_THE_LEGION) == QUEST_STATUS_INCOMPLETE) - AddGossipItemFor(player, ADYEN_THE_LIGHTBRINGER, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); - - SendGossipMenuFor(player, player->GetGossipTextId(creature), creature->GetGUID()); - - return true; - } - - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override - { - ClearGossipMenuFor(player); - - if (action == GOSSIP_ACTION_INFO_DEF + 1) - { - CloseGossipMenuFor(player); - creature->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); - creature->AI()->DoAction(EVENT_START_PLAYER_READY); - if (Creature* orelis = creature->FindNearestCreature(EXARCH_ORELIS, 15.0f, true)) - orelis->AI()->DoAction(EVENT_ORELIS_WALK); - if (Creature* karja = creature->FindNearestCreature(ANCHORITE_KARJA, 15.0f, true)) - karja->AI()->DoAction(EVENT_KARJA_WALK); - if (Creature* socrethar = creature->FindNearestCreature(SOCRETHAR, 500.0f, true)) - socrethar->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE); - } - - return true; - } - - struct adyen_the_lightbringerAI : public ScriptedAI - { - adyen_the_lightbringerAI(Creature* creature) : ScriptedAI(creature), event_started(false) { } - - EventMap _events; - uint32 eventTimer, eventPhase; - bool event_started = false; - - void DoAction(int32 param) override - { - if (param == EVENT_START_PLAYER_READY) - { - me->GetMotionMaster()->MovePath(ADYEN_PATH_ID, false); - event_started = true; - } - else if (param == RESET_DEATHBLOW_EVENT) - { - me->ClearInCombat(); - me->AttackStop(); - me->GetMotionMaster()->MoveTargetedHome(); - me->DespawnOrUnsummon(15000); - } - } - - void MovementInform(uint32 type, uint32 point) override - { - if (type != POINT_MOTION_TYPE) - if (point == 9) - { - if (Creature* socrethar = me->FindNearestCreature(SOCRETHAR, 50.0f, true)) - socrethar->AI()->DoAction(EVENT_ADYEN_SAY_1); - me->SetHomePosition(me->GetPosition()); - } - } - - void JustEngagedWith(Unit* /*who*/) override - { - _events.ScheduleEvent(EVENT_CRUSADER_STRIKE, 3000); - _events.ScheduleEvent(EVENT_HAMMER_OF_JUSTICE, 6000); - _events.ScheduleEvent(EVENT_HOLY_LIGHT, 1000); - } - - void UpdateAI(uint32 diff) override - { - if (!UpdateVictim()) - return; - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; - - _events.Update(diff); - - while (uint32 eventId = _events.ExecuteEvent()) - { - switch (eventId) - { - case EVENT_CRUSADER_STRIKE: - me->CastSpell(me->GetVictim(), CRUSADER_STRIKE, false); - _events.RepeatEvent(3500); - break; - case EVENT_HAMMER_OF_JUSTICE: - me->CastSpell(me->GetVictim(), HAMMER_OF_JUSTICE, false); - _events.RepeatEvent(urand(10000, 14000)); - break; - case EVENT_HOLY_LIGHT: - // if low enough will heal and trigger again in 18s. - if (me->GetHealthPct() <= 45) - { - me->CastSpell(me, HOLY_LIGHT, false); - _events.RepeatEvent(urand(18000, 22000)); - } - else if (Unit* who = me->FindNearestCreature(ANCHORITE_KARJA, 30.0f, true)) - { - if (who->GetHealthPct() <= 45) - { - me->CastSpell(who, HOLY_LIGHT, false); - _events.RepeatEvent(urand(18000, 22000)); - } - } - else if (Unit* who = me->FindNearestCreature(EXARCH_ORELIS, 30.0f, true)) - { - if (who->GetHealthPct() <= 45) - { - me->CastSpell(who, HOLY_LIGHT, false); - _events.RepeatEvent(urand(18000, 22000)); - } - } - else - _events.RepeatEvent(1000); - break; - } - } - - DoMeleeAttackIfReady(); - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new adyen_the_lightbringerAI(creature); - } -}; - -class anchorite_karja : public CreatureScript -{ -public: - anchorite_karja() : CreatureScript("anchorite_karja") { } - - struct anchorite_karjaAI : public ScriptedAI - { - anchorite_karjaAI(Creature* creature) : ScriptedAI(creature) { } - - EventMap _events; - - void DoAction(int32 param) override - { - if (param == EVENT_KARJA_WALK) - { - me->GetMotionMaster()->MovePath(KARJA_PATH_ID, false); - me->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); - } - else if (param == RESET_DEATHBLOW_EVENT) - { - me->ClearInCombat(); - me->AttackStop(); - me->GetMotionMaster()->MoveTargetedHome(); - me->DespawnOrUnsummon(15000); - } - } - - void MovementInform(uint32 type, uint32 point) override - { - if (type != POINT_MOTION_TYPE) - if (point == 11) - me->SetHomePosition(me->GetPosition()); - } - - void JustEngagedWith(Unit* who) override - { - AttackStart(who); - _events.ScheduleEvent(EVENT_SPELL_HOLY_SMITE, 1000); - } - - void UpdateAI(uint32 diff) override - { - _events.Update(diff); - - if (!UpdateVictim()) - return; - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; - - switch ( _events.ExecuteEvent()) - { - case EVENT_SPELL_HOLY_SMITE: - me->CastSpell(me->GetVictim(), HOLY_SMITE_KARJA, false); - _events.ScheduleEvent(EVENT_SPELL_HOLY_SMITE, 2500); - break; - } - - DoMeleeAttackIfReady(); - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new anchorite_karjaAI(creature); - } -}; - -class exarch_orelis : public CreatureScript -{ -public: - exarch_orelis() : CreatureScript("exarch_orelis") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return new exarch_orelisAI(creature); - } - - struct exarch_orelisAI : public ScriptedAI - { - exarch_orelisAI(Creature* creature) : ScriptedAI(creature) { } - - EventMap _events; - - void DoAction(int32 param) override - { - if (param == EVENT_ORELIS_WALK) - { - me->GetMotionMaster()->MovePath(ORELIS_PATH_ID, false); - me->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); - } - else if (param == RESET_DEATHBLOW_EVENT) - { - me->ClearInCombat(); - me->AttackStop(); - me->GetMotionMaster()->MoveTargetedHome(); - me->DespawnOrUnsummon(15000); - } - } - - void JustSummoned(Creature*) override - { - me->SetHomePosition(me->GetPosition()); - } - - void AttackStart(Unit* who) override - { - ScriptedAI::AttackStart(who); - } - - void MovementInform(uint32 type, uint32 point) override - { - if (type != POINT_MOTION_TYPE) - if (point == 11) - me->SetHomePosition(me->GetPosition()); - } - - void JustEngagedWith(Unit* /*who*/) override - { - _events.ScheduleEvent(EVENT_SPELL_DEMORALIZING_SHOUT, 1000); - _events.ScheduleEvent(EVENT_SPELL_HEROIC_STRIKE, urand(2500, 4000)); - _events.ScheduleEvent(EVENT_SPELL_REND, urand(1500, 6000)); - } - - void UpdateAI(uint32 diff) override - { - _events.Update(diff); - - if (!UpdateVictim()) - return; - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; - - switch (_events.ExecuteEvent()) - { - case EVENT_SPELL_DEMORALIZING_SHOUT: - if (me->FindNearestCreature(me->GetVictim()->GetEntry(), 10.0f, true)) - { - me->CastSpell(me->GetVictim(), DEMORALIZING_SHOUT, false); - _events.ScheduleEvent(EVENT_SPELL_DEMORALIZING_SHOUT, urand(10000, 12000)); - } - else - _events.ScheduleEvent(EVENT_SPELL_DEMORALIZING_SHOUT, 1000); - break; - case EVENT_SPELL_HEROIC_STRIKE: - me->CastSpell(me->GetVictim(), HEROIC_STRIKE, false); - _events.ScheduleEvent(EVENT_SPELL_HEROIC_STRIKE, urand(3000, 4000)); - break; - case EVENT_SPELL_REND: - me->CastSpell(me->GetVictim(), REND, false); - _events.ScheduleEvent(EVENT_SPELL_REND, urand(5000, 8000)); - break; - } - - DoMeleeAttackIfReady(); - } - }; -}; - -class socrethar : public CreatureScript -{ -public: - socrethar() : CreatureScript("socrethar") { } - - struct socretharAI : public ScriptedAI - { - socretharAI(Creature* creature) : ScriptedAI(creature), - adyen(nullptr), orelis(nullptr), karja(nullptr), kaylaan(nullptr), ishanah(nullptr) { } - - EventMap _actionEvents, combatEvents; - bool DeathblowToTheLegionRunning = false; - Creature* adyen, *orelis, *karja, *kaylaan, *ishanah; - - bool GetCreature(uint32 CreatureID) - { - switch (CreatureID) - { - case ADYEN_THE_LIGHTBRINGER: - adyen = me->FindNearestCreature(ADYEN_THE_LIGHTBRINGER, 100.0f, true); - if (adyen) - return true; - break; - case EXARCH_ORELIS: - orelis = me->FindNearestCreature(EXARCH_ORELIS, 100.0f, true); - if (orelis) - return true; - break; - case ANCHORITE_KARJA: - karja = me->FindNearestCreature(ANCHORITE_KARJA, 100.0f, true); - if (karja) - return true; - break; - case KAYLAAN_THE_LOST: - kaylaan = me->FindNearestCreature(KAYLAAN_THE_LOST, 100.0f, true); - if (kaylaan) - return true; - break; - case ISHANAH_HIGH_PRIESTESS: - ishanah = me->FindNearestCreature(ISHANAH_HIGH_PRIESTESS, 100.0f, true); - if (!ishanah) - { - // Ishanah may be dead; in this case we also need a reference to the creature for the respawn - ishanah = me->FindNearestCreature(ISHANAH_HIGH_PRIESTESS, 100.0f, false); - if (ishanah) - return true; - } - else - return true; - break; - } - return false; // When he doesn't find anyone - } - - void Reset() override - { - me->SetReactState(REACT_PASSIVE); - me->SetFaction(FACTION_DEMON); - } - - void DoAction(int32 param) override - { - switch (param) - { - case EVENT_ADYEN_SAY_1: - DeathblowToTheLegionRunning = true; - _actionEvents.ScheduleEvent(EVENT_ADYEN_SAY_1, 1000); - break; - case EVENT_ADYEN_SAY_3: - _actionEvents.ScheduleEvent(EVENT_ADYEN_SAY_3, 2000); - break; - case EVENT_KAYLAAN_SAY_1: - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_SAY_1, 4000); - break; - case EVENT_END_ALDOR_FIGHT: - _actionEvents.ScheduleEvent(EVENT_END_ALDOR_FIGHT, 1); - break; - case EVENT_ISHANAH_SAY_1: - _actionEvents.ScheduleEvent(EVENT_ISHANAH_SAY_1, 2000); - break; - case RESET_DEATHBLOW_EVENT: - DeathblowToTheLegionRunning = false; - Reset(); - break; - } - } - - void JustDied(Unit* /*killer*/) override - { - DoCast(me, SOCRETHAR_QUEST_CREDIT); - - if (GetCreature(ISHANAH_HIGH_PRIESTESS)) - { - ishanah->SetNpcFlag(UNIT_NPC_FLAG_GOSSIP | UNIT_NPC_FLAG_QUESTGIVER); - ishanah->DespawnOrUnsummon(60000); - } - - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - adyen->GetAI()->DoAction(RESET_DEATHBLOW_EVENT); - - if (GetCreature(EXARCH_ORELIS)) - orelis->GetAI()->DoAction(RESET_DEATHBLOW_EVENT); - - if (GetCreature(ANCHORITE_KARJA)) - karja->GetAI()->DoAction(RESET_DEATHBLOW_EVENT); - } - - void JustEngagedWith(Unit* /*who*/) override - { - combatEvents.ScheduleEvent(EVENT_SPELL_ANTI_MAGIC_SHIELD, 20000); - combatEvents.ScheduleEvent(EVENT_SPELL_BACKLASH, 4000); - combatEvents.ScheduleEvent(EVENT_SPELL_CLEAVE, 2000); - combatEvents.ScheduleEvent(EVENT_SPELL_FIREBALL_BARRAGE, 9000); - combatEvents.ScheduleEvent(EVENT_SPELL_SHADOW_BOLT_VOLLEY, 5000); - combatEvents.ScheduleEvent(EVENT_SPELL_NETHER_PROTECTION, 1); - } - - void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/, DamageEffectType /*damagetype*/, SpellSchoolMask /*damageSchoolMask*/) override - { - me->SetReactState(REACT_AGGRESSIVE); - } - - void UpdateAI(uint32 diff) override - { - if (DeathblowToTheLegionRunning) - { - _actionEvents.Update(diff); - - switch (_actionEvents.ExecuteEvent()) - { - case EVENT_ADYEN_SAY_1: - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - adyen->AI()->Talk(0); - _actionEvents.ScheduleEvent(EVENT_SOCRETHAR_SAY_1, 11000); - break; - case EVENT_SOCRETHAR_SAY_1: - Talk(0); - _actionEvents.ScheduleEvent(EVENT_ADYEN_SAY_2, 7000); - break; - case EVENT_ADYEN_SAY_2: - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - adyen->AI()->Talk(1); - _actionEvents.ScheduleEvent(EVENT_SOCRETHAR_SAY_2, 11000); - break; - case EVENT_SOCRETHAR_SAY_2: - Talk(1); - if (Creature* summonKaylaan = me->SummonCreature(KAYLAAN_THE_LOST, KaylaanSpawnPosition, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 240000)) - summonKaylaan->GetMotionMaster()->MovePath(KAYLAAN_PATH_ID1, false); - break; - case EVENT_ADYEN_SAY_3: - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - adyen->AI()->Talk(2); - if (GetCreature(KAYLAAN_THE_LOST)) - kaylaan->SetStandState(UNIT_STAND_STATE_STAND); - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_WALK_TO_ADYEN, 3500); - break; - case EVENT_KAYLAAN_WALK_TO_ADYEN: - if (GetCreature(KAYLAAN_THE_LOST)) - kaylaan->GetMotionMaster()->MovePath(KAYLAAN_PATH_ID2, false); - break; - case EVENT_KAYLAAN_SAY_1: - if (GetCreature(KAYLAAN_THE_LOST)) - { - kaylaan->AI()->Talk(0); - kaylaan->SetHomePosition(kaylaan->GetPosition()); - } - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_SAY_2, 9000); - break; - case EVENT_KAYLAAN_SAY_2: - if (GetCreature(KAYLAAN_THE_LOST)) - kaylaan->AI()->Talk(1); - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_SAY_3, 8000); - break; - case EVENT_KAYLAAN_SAY_3: - if (GetCreature(KAYLAAN_THE_LOST)) - kaylaan->AI()->Talk(2); - _actionEvents.ScheduleEvent(EVENT_ADYEN_SAY_4, 8000); - break; - case EVENT_ADYEN_SAY_4: - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - adyen->AI()->Talk(3); - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_SAY_4, 11000); - break; - case EVENT_KAYLAAN_SAY_4: - if (GetCreature(KAYLAAN_THE_LOST)) - kaylaan->AI()->Talk(3); - _actionEvents.ScheduleEvent(EVENT_SPELL_POWER_OF_THE_LEGION, 5000); - break; - case EVENT_SPELL_POWER_OF_THE_LEGION: - if (GetCreature(KAYLAAN_THE_LOST)) - me->CastSpell(kaylaan, POWER_OF_THE_LEGION, false); - Talk(2); - _actionEvents.ScheduleEvent(EVENT_FIGHT_ALDOR, 3000); - break; - case EVENT_FIGHT_ALDOR: - if (GetCreature(KAYLAAN_THE_LOST)) - { - kaylaan->SetFaction(FACTION_DEMON); - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - kaylaan->AI()->AttackStart(adyen); - } - break; - case EVENT_END_ALDOR_FIGHT: - if (GetCreature(KAYLAAN_THE_LOST)) - { - kaylaan->SetFaction(FACTION_DEMON); - kaylaan->GetMotionMaster()->MoveTargetedHome(); - kaylaan->CombatStop(); - kaylaan->ClearInCombat(); - } - - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - { - adyen->GetMotionMaster()->MoveTargetedHome(); - adyen->CombatStop(); - adyen->ClearInCombat(); - } - - if (GetCreature(EXARCH_ORELIS)) - { - orelis->GetMotionMaster()->MoveTargetedHome(); - orelis->CombatStop(); - orelis->ClearInCombat(); - } - - if (GetCreature(ANCHORITE_KARJA)) - { - karja->GetMotionMaster()->MoveTargetedHome(); - karja->CombatStop(); - karja->ClearInCombat(); - } - _actionEvents.ScheduleEvent(EVENT_SOCRETHAR_SAY_4, 2000); - break; - case EVENT_SOCRETHAR_SAY_4: - Talk(3); - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_SAY_5, 8000); - break; - case EVENT_KAYLAAN_SAY_5: - if (GetCreature(KAYLAAN_THE_LOST)) - kaylaan->AI()->Talk(4); - if (Creature* summonIshanah = me->SummonCreature(ISHANAH_HIGH_PRIESTESS, IshanahSpawnPosition, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 180000)) - { - summonIshanah->GetMotionMaster()->MovePath(ISHANAH_PATH_ID, false); - summonIshanah->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP | UNIT_NPC_FLAG_QUESTGIVER); - } - break; - case EVENT_ISHANAH_SAY_1: - if (GetCreature(ISHANAH_HIGH_PRIESTESS)) - ishanah->AI()->Talk(0); - if (GetCreature(KAYLAAN_THE_LOST)) - { - kaylaan->RemoveAurasDueToSpell(POWER_OF_THE_LEGION); - kaylaan->SetStandState(UNIT_STAND_STATE_KNEEL); - } - _actionEvents.ScheduleEvent(EVENT_ISHANAH_SAY_2, 6000); - break; - case EVENT_ISHANAH_SAY_2: - if (GetCreature(ISHANAH_HIGH_PRIESTESS)) - ishanah->AI()->Talk(1); - _actionEvents.ScheduleEvent(EVENT_SOCRETHAR_SAY_5, 8000); - break; - case EVENT_SOCRETHAR_SAY_5: - Talk(4); - _actionEvents.ScheduleEvent(EVENT_KILL_ISHANAH, 4000); - break; - case EVENT_KILL_ISHANAH: - if (GetCreature(ISHANAH_HIGH_PRIESTESS)) - me->CastSpell(ishanah, WRATH_OF_SOCRETHAR); - _actionEvents.ScheduleEvent(EVENT_ISHANAH_DIES, 1500); - break; - case EVENT_ISHANAH_DIES: - if (GetCreature(ISHANAH_HIGH_PRIESTESS)) - me->Kill(me, ishanah); - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_SAY_6, 4000); - break; - case EVENT_KAYLAAN_SAY_6: - if (GetCreature(KAYLAAN_THE_LOST)) - { - kaylaan->AI()->Talk(6); - kaylaan->SetStandState(UNIT_STAND_STATE_STAND); - kaylaan->GetMotionMaster()->MovePath(207942, false); - } - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_SAY_7, 9000); - break; - case EVENT_KAYLAAN_SAY_7: - if (GetCreature(KAYLAAN_THE_LOST)) - { - kaylaan->AI()->Talk(7); - kaylaan->CastSpell(kaylaan, DIVINE_SHIELD); - } - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_RESSURECTION, 1000); - break; - case EVENT_KAYLAAN_RESSURECTION: - if (GetCreature(KAYLAAN_THE_LOST) && GetCreature(ISHANAH_HIGH_PRIESTESS)) - kaylaan->CastSpell(ishanah, REDEMPTION); - _actionEvents.ScheduleEvent(EVENT_ISHANAH_IS_BACK_AGAIN, 11000); - break; - case EVENT_ISHANAH_IS_BACK_AGAIN: - if (GetCreature(ISHANAH_HIGH_PRIESTESS)) - { - ishanah->Respawn(); - ishanah->setActive(true); // ensure that Ishanah disappears, even when no player is near - ishanah->DespawnOrUnsummon(600000); // ensure that Ishanah disappears after 10 minutes - ishanah->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP | UNIT_NPC_FLAG_QUESTGIVER); - } - _actionEvents.ScheduleEvent(EVENT_SOCRETHAR_SAY_6, 3000); - break; - case EVENT_SOCRETHAR_SAY_6: - Talk(5); - _actionEvents.ScheduleEvent(EVENT_KILL_KAYLAAN, 4000); - break; - case EVENT_KILL_KAYLAAN: - if (GetCreature(KAYLAAN_THE_LOST)) - me->CastSpell(kaylaan, WRATH_OF_SOCRETHAR); - _actionEvents.ScheduleEvent(EVENT_KAYLAAN_DIES, 1500); - break; - case EVENT_KAYLAAN_DIES: - if (GetCreature(KAYLAAN_THE_LOST)) - me->Kill(me, kaylaan); - _actionEvents.ScheduleEvent(EVENT_FINAL_FIGHT, 3000); - break; - case EVENT_FINAL_FIGHT: - // Prepare Socrethar for encounter - me->SetFaction(FACTION_DEMON); - me->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_DISABLE_MOVE); - me->SetReactState(REACT_AGGRESSIVE); - - // Engage combat with Socrethar - if (GetCreature(ADYEN_THE_LIGHTBRINGER)) - adyen->AI()->JustEngagedWith(me); - if (GetCreature(EXARCH_ORELIS)) - orelis->AI()->JustEngagedWith(me); - if (GetCreature(ANCHORITE_KARJA)) - karja->AI()->JustEngagedWith(me); - if (GetCreature(ISHANAH_HIGH_PRIESTESS)) - ishanah->AI()->JustEngagedWith(me); - break; - } - } - - if (!UpdateVictim()) - return; - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; - - combatEvents.Update(diff); - - switch (combatEvents.ExecuteEvent()) - { - case EVENT_SPELL_NETHER_PROTECTION: - if (!me->HasAura(NETHER_PROTECTION)) - me->CastSpell(me, NETHER_PROTECTION, false); - break; - case EVENT_SPELL_ANTI_MAGIC_SHIELD: - me->CastSpell(me, ANTI_MAGIC_SHIELD, false); - combatEvents.ScheduleEvent(EVENT_SPELL_ANTI_MAGIC_SHIELD, 20000); - break; - case EVENT_SPELL_BACKLASH: - DoCastVictim(BACKLASH); - combatEvents.ScheduleEvent(EVENT_SPELL_BACKLASH, 7000); - break; - case EVENT_SPELL_CLEAVE: - me->CastSpell(me->GetVictim(), CLEAVE, false); - combatEvents.ScheduleEvent(EVENT_SPELL_CLEAVE, 3000); - break; - case EVENT_SPELL_FIREBALL_BARRAGE: - me->CastSpell(me->GetVictim(), FIREBALL_BARRAGE, false); - combatEvents.ScheduleEvent(EVENT_SPELL_FIREBALL_BARRAGE, 15000); - break; - case EVENT_SPELL_SHADOW_BOLT_VOLLEY: - me->CastSpell(me->GetVictim(), SHADOW_BOLT_VOLLEY, false); - combatEvents.ScheduleEvent(EVENT_SPELL_SHADOW_BOLT_VOLLEY, 10000); - break; - } - - DoMeleeAttackIfReady(); - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new socretharAI(creature); - } -}; - -class kaylaan_the_lost : public CreatureScript -{ -public: - kaylaan_the_lost() : CreatureScript("kaylaan_the_lost") { } - - struct kaylaan_the_lostAI : public ScriptedAI - { - kaylaan_the_lostAI(Creature* creature) : ScriptedAI(creature) { } - - EventMap _events; - bool first_waypath_done = false; - bool second_waypath_done = false; - bool adyen_dead = false, karja_dead = false, orelis_dead = false; - - void JustEngagedWith(Unit* /*who*/) override - { - _events.ScheduleEvent(EVENT_SPELL_BURNING_LIGHT, 2000); - _events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 3000); - } - - void ResetDeathblowEvent(bool event_over /* If true then reset the event*/) - { - me->RemoveAurasDueToSpell(POWER_OF_THE_LEGION); - me->GetMotionMaster()->MoveTargetedHome(); - - // Get socrethar AI so we can reset the event - if (event_over) - { - if (Unit* socrethar = me->FindNearestCreature(SOCRETHAR, 100.0f, true)) - socrethar->GetAI()->DoAction(RESET_DEATHBLOW_EVENT); - - karja_dead = false; - orelis_dead = false; - adyen_dead = false; - - me->DespawnOrUnsummon(5000); // Despawn in 5 seconds to reset event - } - } - - void KilledUnit(Unit* victim) override - { - switch (victim->GetEntry()) - { - case ADYEN_THE_LIGHTBRINGER: - adyen_dead = true; - break; - case ANCHORITE_KARJA: - karja_dead = true; - break; - case EXARCH_ORELIS: - orelis_dead = true; - break; - } - - if (adyen_dead && karja_dead && orelis_dead) - ResetDeathblowEvent(true); - } - - void MovementInform(uint32 type, uint32 point) override - { - if (type != POINT_MOTION_TYPE) - { - if (point == 4) - { - // First waypath complete - me->SetStandState(UNIT_STAND_STATE_KNEEL); - if (Creature* socrethar = me->FindNearestCreature(SOCRETHAR, 30.0f, true)) - socrethar->AI()->DoAction(EVENT_ADYEN_SAY_3); - first_waypath_done = true; - } - else if (point == 0) - { - if (first_waypath_done) - { - if (!second_waypath_done) - { - // Second waypath complete - me->SetHomePosition(me->GetPosition()); - if (Creature* adyen = me->FindNearestCreature(ADYEN_THE_LIGHTBRINGER, 30.0f, true)) - me->SetOrientation(adyen->GetPositionX()); - if (Creature* socrethar = me->FindNearestCreature(SOCRETHAR, 30.0f, true)) - { - socrethar->AI()->DoAction(EVENT_KAYLAAN_SAY_1); - second_waypath_done = true; - } - } - } - } - } - } - - void UpdateAI(uint32 diff) override - { - if (!UpdateVictim()) - return; - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; - - _events.Update(diff); - - if (me->GetHealthPct() <= 30) - if (Creature* socrethar = me->FindNearestCreature(SOCRETHAR, 200.0f, true)) - socrethar->AI()->DoAction(EVENT_END_ALDOR_FIGHT); - - switch (_events.ExecuteEvent()) - { - case EVENT_SPELL_BURNING_LIGHT: - me->CastSpell(me->GetVictim(), BURNING_LIGHT, false); - _events.ScheduleEvent(EVENT_SPELL_BURNING_LIGHT, 4000); - break; - case EVENT_SPELL_CONSECRATION: - me->CastSpell(me->GetVictim(), CONSECRATION, false); - _events.ScheduleEvent(EVENT_SPELL_CONSECRATION, 14000); - break; - } - - DoMeleeAttackIfReady(); - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new kaylaan_the_lostAI(creature); - } -}; - // Ours enum saeed { @@ -2001,11 +984,4 @@ void AddSC_netherstorm() new npc_bessy(); new npc_maxx_a_million_escort(); - // Deathblow to the legion - new deathblow_to_the_legion_trigger(); - new adyen_the_lightbringer(); - new anchorite_karja(); - new exarch_orelis(); - new kaylaan_the_lost(); - new socrethar(); } diff --git a/src/server/scripts/Outland/zone_shattrath_city.cpp b/src/server/scripts/Outland/zone_shattrath_city.cpp index 35b7234c4..477d6b999 100644 --- a/src/server/scripts/Outland/zone_shattrath_city.cpp +++ b/src/server/scripts/Outland/zone_shattrath_city.cpp @@ -28,7 +28,6 @@ npc_salsalabim npc_shattrathflaskvendors npc_zephyr npc_kservant -npc_ishanah EndContentData */ #include "Player.h" @@ -421,121 +420,6 @@ public: }; }; -/*###### -# npc_ishanah -######*/ - -enum Ishanah -{ - // ISHANAH SPELL EVENTS - EVENT_SPELL_ISHANAH_HOLY_SMITE = 3, - EVENT_SPELL_POWER_WORD_SHIELD = 4, - EVENT_ISHANAH_SAY_1 = 18, // Make kaylaan bow - SOCRETHAR = 20132, - KAYLAAN_THE_LOST = 20794, - - // ISHANAH SPELLS - HOLY_SMITE_ISHANAH = 15238, - POWER_WORLD_SHIELD = 22187 -}; - -#define ISANAH_GOSSIP_1 "Who are the Sha'tar?" -#define ISANAH_GOSSIP_2 "Isn't Shattrath a draenei city? Why do you allow others here?" - -class npc_ishanah : public CreatureScript -{ -public: - npc_ishanah() : CreatureScript("npc_ishanah") { } - - bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override - { - ClearGossipMenuFor(player); - if (action == GOSSIP_ACTION_INFO_DEF + 1) - SendGossipMenuFor(player, 9458, creature->GetGUID()); - else if (action == GOSSIP_ACTION_INFO_DEF + 2) - SendGossipMenuFor(player, 9459, creature->GetGUID()); - - return true; - } - - bool OnGossipHello(Player* player, Creature* creature) override - { - if (creature->IsQuestGiver()) - player->PrepareQuestMenu(creature->GetGUID()); - - AddGossipItemFor(player, GOSSIP_ICON_CHAT, ISANAH_GOSSIP_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1); - AddGossipItemFor(player, GOSSIP_ICON_CHAT, ISANAH_GOSSIP_2, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 2); - - SendGossipMenuFor(player, player->GetGossipTextId(creature), creature->GetGUID()); - - return true; - } - - struct ishanahAI : public ScriptedAI - { - ishanahAI(Creature* creature) : ScriptedAI(creature) { } - - EventMap _events; - - void JustEngagedWith(Unit* who) override - { - AttackStart(who); - _events.ScheduleEvent(EVENT_SPELL_ISHANAH_HOLY_SMITE, 2000); - _events.ScheduleEvent(EVENT_SPELL_POWER_WORD_SHIELD, 1000); - } - - void MovementInform(uint32 type, uint32 point) override - { - if (type != POINT_MOTION_TYPE) - { - if (point == 2) - { - if (Creature* kaylaan = me->FindNearestCreature(KAYLAAN_THE_LOST, 30.0f, true)) - { - kaylaan->AI()->Talk(5); - kaylaan->SetOrientation(me->GetPositionX()); - if (Creature* socrethar = me->FindNearestCreature(SOCRETHAR, 30.0f, true)) - { - socrethar->AI()->DoAction(EVENT_ISHANAH_SAY_1); - socrethar->SetOrientation(me->GetPositionX()); - } - } - } - } - } - - void UpdateAI(uint32 diff) override - { - if (!me->GetVictim()) - return; - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; - - _events.Update(diff); - - switch (_events.ExecuteEvent()) - { - case EVENT_SPELL_ISHANAH_HOLY_SMITE: - me->CastSpell(me->GetVictim(), HOLY_SMITE_ISHANAH, false); - _events.ScheduleEvent(EVENT_SPELL_ISHANAH_HOLY_SMITE, 2500); - break; - case EVENT_SPELL_POWER_WORD_SHIELD: - me->CastSpell(me, POWER_WORLD_SHIELD, false); - _events.ScheduleEvent(EVENT_SPELL_POWER_WORD_SHIELD, 30000); - break; - } - - DoMeleeAttackIfReady(); - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new ishanahAI(creature); - } -}; - void AddSC_shattrath_city() { new npc_raliq_the_drunk(); @@ -543,5 +427,4 @@ void AddSC_shattrath_city() new npc_shattrathflaskvendors(); new npc_zephyr(); new npc_kservant(); - new npc_ishanah(); }