fix(DB/Creature): Add Warden Treelos path and SAI (#27963)

Co-authored-by: Rushor <[email protected]>
This commit is contained in:
Pierre-Eric Tessa
2026-10-04 21:45:41 -03:00
committed by GitHub
co-authored by Rushor
parent 102c26d971
commit 8fccf1f41c
@@ -0,0 +1,147 @@
--
SET @NPC := 65811;
SET @PATH := @NPC * 10;
SET @ID := 18424;
UPDATE `creature` SET `position_x` = -1803.511, `position_y` = 4646.977, `position_z` = 19.73334, `orientation` = 2.782069, `wander_distance` = 0, `currentwaypoint` = 1, `MovementType` = 2 WHERE `id` = @ID AND `guid` = @NPC;
DELETE FROM `creature_addon` WHERE `guid` = @NPC;
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
(@NPC, @PATH, 0, 0, 1, 0, 0, '32423');
DELETE FROM `waypoint_data` WHERE `id` = @PATH;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES
(@PATH, 1, -1803.511, 4646.977, 19.73334, NULL, 0),
(@PATH, 2, -1806.302, 4648.026, 19.7354, NULL, 0),
(@PATH, 3, -1811.729, 4650.576, 19.73712, NULL, 0),
(@PATH, 4, -1820.917, 4652.651, 19.65766, NULL, 20000),
(@PATH, 5, -1806.76, 4647.632, 19.73359, NULL, 0),
(@PATH, 6, -1802.30, 4646.59, 19.73, NULL, 0),
(@PATH, 7, -1798.204, 4645.634, 18.52957, NULL, 0),
(@PATH, 8, -1792.864, 4644.762, 15.93469, NULL, 0),
(@PATH, 9, -1790.345, 4644.342, 14.63413, NULL, 0),
(@PATH, 10, -1786.262, 4640.202, 14.629, NULL, 0),
(@PATH, 11, -1783.267, 4635.107, 14.61708, NULL, 0),
(@PATH, 12, -1778.932, 4631.083, 14.60766, NULL, 0),
(@PATH, 13, -1767.724, 4630.207, 12.65584, NULL, 0),
(@PATH, 14, -1759.315, 4630.365, 12.36348, NULL, 0),
(@PATH, 15, -1752.533, 4635.927, 11.64559, NULL, 0),
(@PATH, 16, -1749.859, 4641.148, 11.4896, NULL, 0),
(@PATH, 17, -1749.342, 4646.9, 11.58107, NULL, 0),
(@PATH, 18, -1749.807, 4649.842, 11.68124, NULL, 0),
(@PATH, 19, -1752.798, 4654.813, 12.00678, NULL, 0),
(@PATH, 20, -1760.015, 4659.648, 12.52498, NULL, 0),
(@PATH, 21, -1765.655, 4661.11, 13.2111, NULL, 0),
(@PATH, 22, -1767.77, 4661.48, 14.26, NULL, 0),
(@PATH, 23, -1769.89, 4661.85, 14.81, NULL, 0),
(@PATH, 24, -1774.116, 4662.596, 14.87321, NULL, 0),
(@PATH, 25, -1779.585, 4664.445, 14.62318, NULL, 0),
(@PATH, 26, -1782.483, 4669.484, 14.63375, NULL, 0),
(@PATH, 27, -1783.937, 4675.277, 14.38006, NULL, 0),
(@PATH, 28, -1786.943, 4689.771, 12.19901, NULL, 0),
(@PATH, 29, -1795.366, 4697.75, 12.24373, NULL, 0),
(@PATH, 30, -1795.366, 4697.75, 12.24373, NULL, 0),
(@PATH, 31, -1795.366, 4697.75, 12.24373, NULL, 0),
(@PATH, 32, -1796.568, 4698.823, 12.21809, NULL, 0),
(@PATH, 33, -1804.996, 4704.168, 11.23805, NULL, 0),
(@PATH, 34, -1812.376, 4709.268, 10.39271, NULL, 0),
(@PATH, 35, -1817.23, 4712.79, 9.89, NULL, 0),
(@PATH, 36, -1822.081, 4716.316, 9.892865, NULL, 0),
(@PATH, 37, -1829.052, 4722.574, 10.48604, NULL, 0),
(@PATH, 38, -1831.33, 4727.8, 11.54623, NULL, 0),
(@PATH, 39, -1831.766, 4736.22, 13.99709, NULL, 0),
(@PATH, 40, -1830.739, 4741.621, 16.24664, NULL, 0),
(@PATH, 41, -1829.747, 4744.304, 17.09319, NULL, 0),
(@PATH, 42, -1827.362, 4745.648, 18.20882, NULL, 0),
(@PATH, 43, -1822.167, 4746.989, 20.64674, NULL, 0),
(@PATH, 44, -1816.996, 4746.004, 23.22047, NULL, 0),
(@PATH, 45, -1814.754, 4744.821, 24.12455, NULL, 0),
(@PATH, 46, -1811.222, 4740.513, 25.53274, NULL, 0),
(@PATH, 47, -1805.106, 4737.365, 27.42546, NULL, 0),
(@PATH, 48, -1807.47, 4739.047, 26.76365, NULL, 20000),
(@PATH, 49, -1812.203, 4742.384, 25.24649, NULL, 0),
(@PATH, 50, -1816.665, 4745.775, 23.24314, NULL, 0),
(@PATH, 51, -1821.645, 4747.158, 20.51319, NULL, 0),
(@PATH, 52, -1826.934, 4746.034, 18.35211, NULL, 0),
(@PATH, 53, -1830.59, 4742.182, 16.41434, NULL, 0),
(@PATH, 54, -1832.227, 4736.953, 14.33177, NULL, 0),
(@PATH, 55, -1832.385, 4731.309, 12.38629, NULL, 0),
(@PATH, 56, -1832.348, 4725.553, 10.82265, NULL, 0),
(@PATH, 57, -1833.194, 4719.703, 9.931902, NULL, 0),
(@PATH, 58, -1835.196, 4714.126, 9.617038, NULL, 0),
(@PATH, 59, -1838.714, 4705.847, 9.487278, NULL, 0),
(@PATH, 60, -1841.619, 4700.646, 9.248943, NULL, 0),
(@PATH, 61, -1847.862, 4694.373, 8.671054, NULL, 0),
(@PATH, 62, -1853.649, 4692.015, 8.139262, NULL, 0),
(@PATH, 63, -1862.4, 4691.255, 7.052509, NULL, 0),
(@PATH, 64, -1874.147, 4691.15, 4.642838, NULL, 0),
(@PATH, 65, -1888.559, 4688.214, 2.286811, NULL, 0),
(@PATH, 66, -1899.335, 4683.292, 0.7844561, NULL, 0),
(@PATH, 67, -1900.897, 4682.444, 0.5538373, NULL, 0),
(@PATH, 68, -1913.776, 4680.642, -0.7968805, NULL, 0),
(@PATH, 69, -1925.123, 4682.271, -1.525997, NULL, 7000),
(@PATH, 70, -1919.664, 4679.85, -1.22198, NULL, 0),
(@PATH, 71, -1902.362, 4681.39, 0.3635311, NULL, 0),
(@PATH, 72, -1888.539, 4686.894, 2.282935, NULL, 0),
(@PATH, 73, -1877.202, 4690.228, 4.16307, NULL, 0),
(@PATH, 74, -1868.424, 4691.286, 5.862486, NULL, 0),
(@PATH, 75, -1859.586, 4691.212, 7.495709, NULL, 0),
(@PATH, 76, -1850.668, 4690.899, 8.439217, NULL, 0),
(@PATH, 77, -1839.003, 4688.62, 9.683162, NULL, 0),
(@PATH, 78, -1832.957, 4687.138, 10.25435, NULL, 0),
(@PATH, 79, -1830.047, 4686.461, 10.43636, NULL, 0),
(@PATH, 80, -1824.278, 4687.304, 10.65615, NULL, 0),
(@PATH, 81, -1808.639, 4696.039, 11.07814, NULL, 0),
(@PATH, 82, -1803.177, 4698.232, 11.68287, NULL, 0),
(@PATH, 83, -1787.036, 4687.587, 12.24434, NULL, 0),
(@PATH, 84, -1784.982, 4682.22, 12.63027, NULL, 0),
(@PATH, 85, -1785.735, 4673.635, 14.5907, NULL, 0),
(@PATH, 86, -1785.375, 4667.628, 14.64867, NULL, 0),
(@PATH, 87, -1785.108, 4664.653, 14.64001, NULL, 0),
(@PATH, 88, -1785.058, 4655.656, 14.63397, NULL, 0),
(@PATH, 89, -1787.074, 4647.078, 14.63508, NULL, 0),
(@PATH, 90, -1788.819, 4645.085, 14.63521, NULL, 0),
(@PATH, 91, -1794.038, 4644.671, 16.67877, NULL, 0),
(@PATH, 92, -1796.648, 4645.14, 17.99133, NULL, 0),
(@PATH, 93, -1802.30, 4646.653, 19.73, NULL, 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` = 32373;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 1, 32373, 0, 0, 31, 0, 3, 18437, 0, 0, 0, 0, '', 'Spell \'Moonfire\' (Effect 0) targets creature \'Vicious Teromoth\'');
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = @ID;
DELETE FROM `smart_scripts` WHERE `entryorguid` = @ID AND `source_type` = 0;
DELETE FROM `smart_scripts` WHERE `entryorguid` BETWEEN @ID*100+0 AND @ID*100+2 AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(@ID, 0, 0, 0, 1, 0, 100, 0, 10000, 10000, 60000, 60000, 0, 0, 87, @ID*100+0, @ID*100+1, @ID*100+2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - Out of Combat - Run Random Script'),
(@ID, 0, 1, 0, 1, 0, 100, 0, 30000, 35000, 30000, 35000, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - Out of Combat - Say Line 0'),
(@ID, 0, 2, 0, 10, 0, 100, 0, 0, 25, 15000, 15000, 0, 0, 11, 32373, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - Within 0-25 Range Out of Combat LoS - Cast \'Moonfire\''),
(@ID, 0, 3, 0, 5, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Killed Unit - Say Line 1'),
(@ID*100+0, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 28, 32356, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Remove Aura \'Cat Form\''),
(@ID*100+0, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 28, 32357, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Remove Aura \'Bear Form\''),
(@ID*100+0, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 32356, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Cast \'Cat Form\''),
(@ID*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 28, 32356, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Remove Aura \'Cat Form\''),
(@ID*100+1, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 28, 32357, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Remove Aura \'Bear Form\''),
(@ID*100+1, 9, 2, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 11, 32357, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Cast \'Bear Form\''),
(@ID*100+2, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 28, 32356, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Remove Aura \'Cat Form\''),
(@ID*100+2, 9, 1, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0, 28, 32357, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Warden Treelos - On Script - Remove Aura \'Bear Form\'');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = @ID AND `SourceId` = 0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(22, 3, @ID, 0, 0, 31, 0, 3, 18437, 0, 0, 0, 0, '', 'Warden Treelos - Execute SAI (Action 2) only if invoker is creature \'Vicious Teromoth\'');
DELETE FROM `creature_text` WHERE `CreatureID` = @ID;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(18424, 0, 0, 'Go on, get out of here! Save yourself!', 12, 0, 100, 0, 0, 0, 15391, 0, 'Warden Treelos'),
(18424, 0, 1, 'BOOM!', 12, 0, 100, 0, 0, 0, 15395, 0, 'Warden Treelos'),
(18424, 0, 2, 'Stop looking at me!', 12, 0, 100, 0, 0, 0, 15397, 0, 'Warden Treelos'),
(18424, 0, 3, 'They broke us all.', 12, 0, 100, 0, 0, 0, 15398, 0, 'Warden Treelos'),
(18424, 0, 4, 'Can''t... control... form.', 12, 0, 100, 0, 0, 0, 15399, 0, 'Warden Treelos'),
(18424, 0, 5, 'Meow.', 12, 0, 100, 0, 0, 0, 15400, 0, 'Warden Treelos'),
(18424, 0, 6, 'Roar!', 12, 0, 100, 0, 0, 0, 15401, 0, 'Warden Treelos'),
(18424, 0, 7, 'Blinding white light, and then silence!', 12, 0, 100, 0, 0, 0, 15402, 0, 'Warden Treelos'),
(18424, 0, 8, 'Too close to the truth, too close to the truth!', 12, 0, 100, 0, 0, 0, 15403, 0, 'Warden Treelos'),
(18424, 0, 9, 'Who are you to stare at me and pass judgment?!', 12, 0, 100, 0, 0, 0, 15453, 0, 'Warden Treelos'),
(18424, 0, 10, 'Do I know you? If you''re interested in joining the Cenarion Expedition step right in.', 12, 0, 100, 0, 0, 0, 15454, 0, 'Warden Treelos'),
(18424, 0, 11, 'Careful who you talk to. The teromoths have ears.', 12, 0, 100, 0, 0, 0, 15455, 0, 'Warden Treelos'),
(18424, 0, 12, 'Not all dinner guests are gracious. Mind your manners!', 12, 0, 100, 0, 0, 0, 15456, 0, 'Warden Treelos'),
(18424, 0, 13, 'It knows all, it sees all!', 12, 0, 100, 0, 0, 0, 15457, 0, 'Warden Treelos'),
(18424, 0, 14, 'No need to wait outside in the rain. Come in... you''re welcome with us in here.', 12, 0, 100, 0, 0, 0, 15458, 0, 'Warden Treelos'),
(18424, 1, 0, 'You won''t get my clothes! Die!', 12, 0, 100, 0, 0, 0, 15418, 0, 'Warden Treelos'),
(18424, 1, 1, 'Filthy vermin. Submit or perish!', 12, 0, 100, 0, 0, 0, 15450, 0, 'Warden Treelos'),
(18424, 1, 2, 'You as well, Flutter? We used to be such good friends. I will miss you.', 12, 0, 100, 0, 0, 0, 15451, 0, 'Warden Treelos'),
(18424, 1, 3, 'Oops, my bad. Sometimes I can''t control my moonfire.', 12, 0, 100, 0, 0, 0, 15452, 0, 'Warden Treelos'),
(18424, 1, 4, 'The vicious teromoths and I are just fine in here on our own, thank you.', 12, 0, 100, 0, 0, 0, 15459, 0, 'Warden Treelos');