From 39682bb66a062742d55de962ad57578eee9f389b Mon Sep 17 00:00:00 2001 From: Grz3s Date: Wed, 30 Oct 2024 13:50:10 +0100 Subject: [PATCH] [5441][ACID] q.13235 'The Flesh Giant Champion' Fixed Part of: https://github.com/cmangos/wotlk-db/issues/379 --- ACID/acid_wotlk.sql | 25 +++++++++++ Updates/5441_q.13235.sql | 90 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 Updates/5441_q.13235.sql diff --git a/ACID/acid_wotlk.sql b/ACID/acid_wotlk.sql index c028bc657..f8d242a6f 100644 --- a/ACID/acid_wotlk.sql +++ b/ACID/acid_wotlk.sql @@ -28762,6 +28762,11 @@ INSERT INTO `creature_ai_scripts` (`id`,`creature_id`,`event_type`,`event_invers ('3069602','30696','9','0','100','1025','0','5','7000','11000','0','0','11','15496','1','0','0','0','0','0','0','0','0','0','Corpulent Horror - Cast Cleave'), -- Putrid Colossus 30697 -- Morbidus 30698 +('3069801','30698','9','0','100','1025','0','5','7000','14000','0','0','11','72728','4','32','0','0','0','0','0','0','0','0','Morbidus - Cast Corrode Flesh'), +('3069802','30698','9','0','100','1025','0','8','13000','19000','0','0','11','31277','1','0','0','0','0','0','0','0','0','0','Morbidus - Cast Stomp'), +('3069803','30698','30','0','100','0','5','31428','0','0','0','0','19','768','0','0','0','0','0','0','0','0','0','0','Morbidus - Remove unitFlags on Receive AI Event Custom A'), +('3069804','30698','21','0','100','0','0','0','0','0','0','0','45','9','100','0','18','768','0','0','41','100','0','0','Morbidus - Send event D add unitFlags and despawn on Reached Home'), +('3069805','30698','6','0','100','0','0','0','0','0','0','0','45','10','100','0','41','15000','0','0','0','0','0','0','Morbidus - Send event E and despawn on Death'), -- Vile Creeper 30701 -- Ebon Blade Champion 30703 ('3070301','30703','0','0','100','1025','3000','7000','6000','9000','0','0','11','50688','1','0','0','0','0','0','0','0','0','0','Ebon Blade Champion - Cast Plague Strike'), @@ -29339,8 +29344,25 @@ INSERT INTO `creature_ai_scripts` (`id`,`creature_id`,`event_type`,`event_invers ('3128003','31280','30','5','100','1','8','32225','0','0','0','0','11','59894','10','0','0','0','0','0','0','0','0','0','Ymirheim Spear Gun - Cast Launch Spear on Receive AI Event Custom C (Phase 1)'), ('3128004','31280','23','5','100','1','59880','1','1000','1000','0','0','22','2','0','0','0','0','0','0','0','0','0','0','Kor\'kron Suppression Turret - Set Phase 2 on Buff'), ('3128005','31280','27','3','100','1','59880','1','5000','5000','0','0','22','1','0','0','0','0','0','0','0','0','0','0','Kor\'kron Suppression Turret - Set Phase 1 on Missing Buff (Phase 2)'), +-- The Lich King 31301 +('3130101','31301','11','0','100','0','0','0','0','0','0','0','11','34427','0','0','0','0','0','0','0','0','0','0','The Lich King - Cast Ethereal Teleport on Spawn'), +('3130102','31301','1','0','100','0','3000','3000','0','0','0','0','53','21088','0','0','0','0','0','0','0','0','0','0','The Lich King - START_RELAY_SCRIPT on OOC Timer'), -- Margrave Dhakar 31306 +('3130601','31306','0','0','100','1025','6000','13000','7000','16000','0','0','11','5547','1','0','0','0','0','0','0','0','0','0','Margrave Dhakar - Cast Swing'), +('3130602','31306','9','0','100','1025','0','5','45000','63000','0','0','11','37548','1','0','0','0','0','0','0','0','0','0','Margrave Dhakar - Cast Taunt'), +('3130603','31306','0','0','100','0','5000','9000','0','0','0','0','11','58949','1','1','0','0','0','0','0','0','0','0','Margrave Dhakar - Cast Ride Morbidus'), +('3130604','31306','30','0','100','0','5','31306','0','0','0','0','5','375','0','0','0','0','0','0','0','0','0','0','Margrave Dhakar - Emote on Receive AI Event Custom A'), +('3130605','31306','30','0','100','0','5','31428','0','0','0','0','19','768','0','0','0','0','0','0','0','0','0','0','Margrave Dhakar - Remove unitFlags on Receive AI Event Custom A'), +('3130606','31306','30','0','100','0','9','30698','0','0','0','0','41','0','0','0','0','0','0','0','0','0','0','0','Margrave Dhakar - despawn Self on Receive AI Event Custom 9'), +('3130607','31306','30','0','100','0','10','30698','0','0','0','0','41','10000','0','0','0','0','0','0','0','0','0','0','Margrave Dhakar - despawn Self on Receive AI Event Custom 10'), +('3130608','31306','6','0','100','0','0','0','0','0','0','0','41','10000','0','0','0','0','0','0','0','0','0','0','Margrave Dhakar - despawn on Death'), -- Ebon Blade Veteran 31314 +('3131401','31314','0','0','100','1025','3000','7000','6000','9000','0','0','11','50688','1','0','0','0','0','0','0','0','0','0','Ebon Blade Veteran - Cast Plague Strike'), +('3131402','31314','0','0','100','1025','6000','13000','26000','34000','0','0','11','58130','0','0','0','0','0','0','0','0','0','0','Ebon Blade Veteran - Cast Icebound Fortitude'), +('3131403','31314','30','0','100','0','5','31306','0','0','0','0','5','375','0','0','0','0','0','0','0','0','0','0','Ebon Blade Veteran - Emote on Receive AI Event Custom A'), +('3131404','31314','30','0','100','0','9','30698','0','0','0','0','41','0','0','0','0','0','0','0','0','0','0','0','Ebon Blade Veteran - despawn Self on Receive AI Event Custom 9'), +('3131405','31314','30','0','100','0','10','30698','0','0','0','0','41','10000','0','0','0','0','0','0','0','0','0','0','Ebon Blade Veteran - despawn Self on Receive AI Event Custom 10'), +('3131406','31314','6','0','100','0','0','0','0','0','0','0','41','10000','0','0','0','0','0','0','0','0','0','0','Ebon Blade Veteran - despawn on Death'), -- Ebon Blade Reaper 31316 -- Death Knight Adept 31318 -- Umbral Brute 31320 @@ -29425,6 +29447,9 @@ INSERT INTO `creature_ai_scripts` (`id`,`creature_id`,`event_type`,`event_invers -- Crusader Olakin Sainrith 31428 ('3142801','31428','23','0','100','0','59091','1','0','0','0','0','22','1','0','0','0','0','0','0','0','0','0','0','Crusader Olakin Sainrith - Set Phase 1 on Buff'), ('3142802','31428','27','1','100','0','59091','1','0','0','0','0','41','0','0','0','0','0','0','0','0','0','0','0','Crusader Olakin Sainrith - Despawn Self on Missing Buff (Phase 1)'), +('3142803','31428','30','0','100','0','9','30698','0','0','0','0','41','0','0','0','0','0','0','0','0','0','0','0','Crusader Olakin Sainrith - despawn Self on Receive AI Event Custom 9'), +('3142804','31428','30','0','100','0','10','30698','0','0','0','0','41','10000','0','0','0','0','0','0','0','0','0','0','Crusader Olakin Sainrith - despawn Self on Receive AI Event Custom 10'), +('3142805','31428','6','0','100','0','0','0','0','0','0','0','41','10000','0','0','0','0','0','0','0','0','0','0','Crusader Olakin Sainrith - despawn on Death'), -- Ghostwing 31432 -- Warsong Raider 31435 -- Shadow Vault Abomination 31438 diff --git a/Updates/5441_q.13235.sql b/Updates/5441_q.13235.sql new file mode 100644 index 000000000..c436920cb --- /dev/null +++ b/Updates/5441_q.13235.sql @@ -0,0 +1,90 @@ +-- q.13235 'The Flesh Giant Champion' +-- missing creatures added +DELETE FROM creature_addon WHERE guid IN (536532,536533,536534,536535,536536,536537); +DELETE FROM creature_movement WHERE id IN (536532,536533,536534,536535,536536,536537); +DELETE FROM game_event_creature WHERE guid IN (536532,536533,536534,536535,536536,536537); +DELETE FROM game_event_creature_data WHERE guid IN (536532,536533,536534,536535,536536,536537); +DELETE FROM creature_battleground WHERE guid IN (536532,536533,536534,536535,536536,536537); +DELETE FROM creature_linking WHERE guid IN (536532,536533,536534,536535,536536,536537); +DELETE FROM creature WHERE guid IN (536532,536533,536534,536535,536536,536537); +INSERT INTO creature (guid, id, map, spawnMask, phaseMask, position_x, position_y, position_z, orientation, spawntimesecsmin, spawntimesecsmax, spawndist, MovementType) VALUES +-- Morbidus 30698 +(536532,30698,571,1,64,6853.651,3582.9792,738.027,6.0388,300,300,0,0), +-- Margrave Dhakar 31306 +(536533,31306,571,1,64,6865.8203,3577.9785,736.04486,2.932,300,300,0,0), +-- Ebon Blade Veteran 31314 +(536534,31314,571,1,64,6866.223,3574.6296,735.9076,3.0368,300,300,0,0), +(536535,31314,571,1,64,6865.108,3570.7517,736.0794,3.019,300,300,0,0), +(536536,31314,571,1,64,6868.4756,3579.733,736.1484,2.9496,300,300,0,0), +(536537,31314,571,1,64,6869.777,3584.0967,735.8923,2.87979,300,300,0,0); +DELETE FROM `spawn_group` WHERE id = 34155; +INSERT INTO `spawn_group` (`Id`, `Name`, `Type`, `MaxCount`, `WorldState`, `Flags`) VALUES +(34155, 'Icecrown - The Fleshwerks (Phase 64) - Margrave Dhakar 31306 & Ebon Blade Veteran 31314 x4', 0, 0, 0, 0x02); +DELETE FROM `spawn_group_spawn` WHERE id = 34155; +INSERT INTO `spawn_group_spawn` (`Id`, `Guid`, `SlotId`) VALUES +(34155, 536533, -1), +(34155, 536534, -1), +(34155, 536535, -1), +(34155, 536536, -1), +(34155, 536537, -1); +-- Updates +-- The Lich King 31301 +UPDATE creature_template SET Faction = 2068, UnitFlags = 768, MinLevel = 83, MaxLevel = 83, Expansion = 2, UnitClass = 1, EquipmentTemplateId = 2264 WHERE Entry = 31301; +-- Ebon Blade Veteran 31314 +UPDATE creature_template SET Faction = 1770, UnitFlags = 32768, MinLevel = 80, MaxLevel = 80, Expansion = 2, UnitClass = 2, EquipmentTemplateId = 1029 WHERE Entry = 31314; +-- Margrave Dhakar 31306 +UPDATE creature_template SET Faction = 1770, UnitFlags = 768, NpcFlags = 1, MinLevel = 80, MaxLevel = 80, Expansion = 2, UnitClass = 2, EquipmentTemplateId = 1025, GossipMenuId = 10060 WHERE Entry = 31306; +DELETE FROM gossip_menu WHERE entry IN(10060); +INSERT INTO gossip_menu(entry, text_id, script_id, condition_id) VALUES +(10060,13978,0,0); +DELETE FROM npc_text_broadcast_text WHERE Id IN(13978); +INSERT INTO npc_text_broadcast_text(Id,Prob0,BroadcastTextId0) VALUES +(13978,1,32117); +DELETE FROM npc_text WHERE id IN (13978); +DELETE FROM gossip_menu_option WHERE menu_id IN (10060); +INSERT INTO gossip_menu_option (menu_id, id, option_icon, option_text, option_broadcast_text, option_id, npc_option_npcflag, action_menu_id, action_poi_id, action_script_id, box_coded, box_money, box_text, box_broadcast_text, condition_id) VALUES +(10060,0,0,'Let\'s kill this... thing... and get this over with.',32118,1,1,-1,0,1006001,0,0,NULL,0,20790); +DELETE FROM conditions WHERE condition_entry = 20790; +INSERT INTO conditions (condition_entry, type, value1, value2, value3, value4, flags, comments) VALUES +(20790,9,13235,0,0,0,0,''); +DELETE FROM dbscripts_on_gossip WHERE id IN (1006001); +INSERT INTO dbscripts_on_gossip (id, delay, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, x, y, z, o, comments) VALUES +(1006001,1,29,1,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'NpcFlags Removed'), -- 23:39:05.432 +(1006001,100,10,31301,35000,0,0,0,0x08,0,0,0,0,6858.5957,3580.4998,736.75116,5.672,'Player summon 31301'), -- 23:39:05.564 +(1006001,1000,1,25,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'emote'), -- 23:39:06.337 +(1006001,1100,0,0,0,0,0,0,0x04,32015,0,0,0,0,0,0,0,'emote'), -- 23:39:06.337 +(1006001,4100,35,5,40,0,0,0,0,0,0,0,0,0,0,0,0,'send event 5'); -- 23:39:09.568 +DELETE FROM dbscripts_on_relay WHERE id IN (21088); +INSERT INTO dbscripts_on_relay (id, delay, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, x, y, z, o, comments) VALUES +(21088,1,1,11,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: emote'), -- 23:39:08.756 +(21088,100,0,0,0,0,0,0,0x04,31973,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: say'), +(21088,4000,15,53274,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: cast 53274'), -- 23:39:12.002 +(21088,7000,1,5,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: emote'), -- 23:39:15.253 +(21088,7100,0,0,0,0,0,0,0x04,31974,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: say'), +(21088,12000,1,1,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: emote'), -- 23:39:20.113 +(21088,12100,0,0,0,0,0,0,0x04,31976,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: say'), +(21088,18000,1,11,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: emote'), -- 23:39:26.593 +(21088,18100,0,0,0,0,0,0,0x04,31979,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: say'), +(21088,21000,1,25,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: emote'), -- 23:39:29.833 +(21088,26000,1,25,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: emote'), -- 23:39:34.712 +(21088,26100,0,0,0,0,0,0,0x04,31981,0,0,0,0,0,0,0,'Part of The Lich King 31301 EAI: say'), -- 23:39:34.827 +(21088,31000,10,31428,300000,0,0,0,0x04,0,0,0,20073,6857.3276,3571.4907,735.8922,1.152,'Part of The Lich King 31301 EAI: summon 31428'); -- 23:39:39.997 +-- Crusader Olakin Sainrith 31428 +DELETE FROM creature_spawn_data_template WHERE `entry` IN (20073); +INSERT INTO creature_spawn_data_template (entry, RelayId,Name) VALUES +(20073,21089,'- RelayId 21089'); +DELETE FROM dbscripts_on_relay WHERE id IN (21089); +INSERT INTO dbscripts_on_relay (id, delay, command, datalong, datalong2, datalong3, buddy_entry, search_radius, data_flags, dataint, dataint2, dataint3, dataint4, x, y, z, o, comments) VALUES +(21089,0,24,28919,0,0,0,0,0x04|0x08,0,0,0,0,0,0,0,0,'Part of Crusader Olakin Sainrith 31428 EAI: mount'), +(21089,3000,1,25,0,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of Crusader Olakin Sainrith 31428 EAI: emote'), -- 23:39:43.242 +(21089,3100,0,0,0,0,0,0,0x04,32198,0,0,0,0,0,0,0,'Part of Crusader Olakin Sainrith 31428 EAI: say'), +(21089,4000,22,1770,0x01,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of Crusader Olakin Sainrith 31428 EAI: temp faction'), +(21089,5000,35,5,50,0,0,0,0x04,0,0,0,0,0,0,0,0,'Part of Crusader Olakin Sainrith 31428 EAI: send even 5'); +DELETE FROM spell_script_target WHERE entry IN (72728,58949); +INSERT INTO spell_script_target (`entry`, `type`, `targetEntry`, `inverseEffectMask`) VALUES +(72728, 1, 31428, 0), +(72728, 1, 31306, 0), +(58949, 1, 30698, 0); +-- Morbidus 30698 +UPDATE creature_template SET Faction = 2102, UnitFlags = 832, MinLevel = 80, MaxLevel = 80, Expansion = 2, VehicleTemplateId = 271 WHERE Entry = 30698; +DELETE FROM dbscripts_on_relay WHERE id IN (21090,21091);