From a2abc79cdf9872fb2c99add94e40faa7f6ab4bc3 Mon Sep 17 00:00:00 2001 From: v-mstrs <104088833+v-mstrs@users.noreply.github.com> Date: Fri, 2 Jun 2023 20:59:00 +0200 Subject: [PATCH 01/21] =?UTF-8?q?fix(DB/SAI):=20Add=20Magnetic=20Pull=20to?= =?UTF-8?q?=20Living=20Cyclone=20and=20remove=20wrong=E2=80=A6=20(#16364)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../updates/pending_db_world/rev_1684961632752120124.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1684961632752120124.sql diff --git a/data/sql/updates/pending_db_world/rev_1684961632752120124.sql b/data/sql/updates/pending_db_world/rev_1684961632752120124.sql new file mode 100644 index 000000000..f3a19a5e9 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1684961632752120124.sql @@ -0,0 +1,7 @@ +-- +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 17160); +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 +(17160, 0, 0, 0, 23, 0, 100, 0, 12550, 0, 10000, 10000, 0, 11, 12550, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Living Cyclone - On Missing Aura - Cast Lightning Shield'), +(17160, 0, 1, 0, 9, 0, 100, 0, 8, 40, 10000, 15000, 0, 11, 31705, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Living Cyclone - On Range - Cast Magnetic Pull'); + +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 19996) AND (`source_type` = 0) AND (`id` IN (1)); From 58e504cae335d702261a17772244bb6663519897 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 2 Jun 2023 19:01:34 +0000 Subject: [PATCH 02/21] chore(DB): import pending files Referenced commit(s): a2abc79cdf9872fb2c99add94e40faa7f6ab4bc3 --- .../rev_1684961632752120124.sql => db_world/2023_06_02_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1684961632752120124.sql => db_world/2023_06_02_00.sql} (95%) diff --git a/data/sql/updates/pending_db_world/rev_1684961632752120124.sql b/data/sql/updates/db_world/2023_06_02_00.sql similarity index 95% rename from data/sql/updates/pending_db_world/rev_1684961632752120124.sql rename to data/sql/updates/db_world/2023_06_02_00.sql index f3a19a5e9..e943c4ef4 100644 --- a/data/sql/updates/pending_db_world/rev_1684961632752120124.sql +++ b/data/sql/updates/db_world/2023_06_02_00.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_01_06 -> 2023_06_02_00 -- DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 17160); 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 From 78c17d2d4df6d874bb93021b79f04e494a8e7bad Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Fri, 2 Jun 2023 21:11:17 +0200 Subject: [PATCH 03/21] fix(DB/Creature): Correct Old Man Barlo position (#16405) * initial woo Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> * Update future-is-now-old-man.sql --------- Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> --- data/sql/updates/pending_db_world/future-is-now-old-man.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 data/sql/updates/pending_db_world/future-is-now-old-man.sql diff --git a/data/sql/updates/pending_db_world/future-is-now-old-man.sql b/data/sql/updates/pending_db_world/future-is-now-old-man.sql new file mode 100644 index 000000000..d58f908fb --- /dev/null +++ b/data/sql/updates/pending_db_world/future-is-now-old-man.sql @@ -0,0 +1,2 @@ +-- guid 96761 is id 25580 aka old man barlo +UPDATE `creature` SET `position_x` = -1460.62, `position_y` = 4992.52, `position_z` = -8.977667, `orientation` = 5.532693862915039062 WHERE `guid` = 96761 AND `id1` = 25580; From 369ee4beaf6f200c2af3a646fab265a1663cc8da Mon Sep 17 00:00:00 2001 From: Grimgravy Date: Fri, 2 Jun 2023 16:11:31 -0300 Subject: [PATCH 04/21] fix(DB/Quest): improve Teleport This! (#16377) fix(DB/Quest): improve rt Teleport This!This! --- data/sql/updates/pending_db_world/rev_1685124320508720600.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1685124320508720600.sql diff --git a/data/sql/updates/pending_db_world/rev_1685124320508720600.sql b/data/sql/updates/pending_db_world/rev_1685124320508720600.sql new file mode 100644 index 000000000..0460804d5 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1685124320508720600.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 17) AND (`SourceGroup` = 0) AND (`SourceEntry` = 38915) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 31) AND (`ConditionTarget` = 1) AND (`ConditionValue1` = 3) AND (`ConditionValue2` = 16943) AND (`ConditionValue3` = 0); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(17, 0, 38915, 0, 0, 31, 1, 3, 16943, 0, 0, 0, 0, '', 'Controls a Mo\'arg at Forge Base: Gehenna.'); From 7d2513c9d8bef98c44d86a9693fd6dde3708be36 Mon Sep 17 00:00:00 2001 From: "Julio A. Leyva Osorio" Date: Fri, 2 Jun 2023 15:11:58 -0400 Subject: [PATCH 05/21] add(DB/NPC) Missing Text for Tavernkeep Smitts (#16259) Create 273.sql Co-authored-by: Carlos Morales --- data/sql/updates/pending_db_world/273.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 data/sql/updates/pending_db_world/273.sql diff --git a/data/sql/updates/pending_db_world/273.sql b/data/sql/updates/pending_db_world/273.sql new file mode 100644 index 000000000..8982815eb --- /dev/null +++ b/data/sql/updates/pending_db_world/273.sql @@ -0,0 +1,5 @@ +-- Tavernkeep Smitts +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=273; +DELETE FROM `smart_scripts` WHERE `entryorguid`=273 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(273,0,0,0,1,0,100,0,45000,60000,150000,180000,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Tavernkeep Smitts - Out of Combat - Say Line 0'); From c8ab8f00e7a5580114068a8b148521c79db951a0 Mon Sep 17 00:00:00 2001 From: "Julio A. Leyva Osorio" Date: Fri, 2 Jun 2023 15:12:51 -0400 Subject: [PATCH 06/21] fix(DB/Creature): NPC Barkeep Daniels - Texts missing (#16257) Create 346.sql Co-authored-by: Carlos Morales --- data/sql/updates/pending_db_world/346.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 data/sql/updates/pending_db_world/346.sql diff --git a/data/sql/updates/pending_db_world/346.sql b/data/sql/updates/pending_db_world/346.sql new file mode 100644 index 000000000..28f5774b9 --- /dev/null +++ b/data/sql/updates/pending_db_world/346.sql @@ -0,0 +1,4 @@ +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=346; +DELETE FROM `smart_scripts` WHERE `entryorguid`=346; +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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(346,0,0,0,1,0,100,0,1000,15000,150000,180000,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Barkeep Daniels - Out of Combat - Say Line 0'); From 8956b588d7bab0175b0a953c2d1f8d05b5dce6fb Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Fri, 2 Jun 2023 21:15:02 +0200 Subject: [PATCH 07/21] fix(DB/Creature): Ghostly Philanthropists drop no gold in wotlk (#16406) * initial * Update gostly-philantropist-to-jail.sql --- .../updates/pending_db_world/gostly-philantropist-to-jail.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 data/sql/updates/pending_db_world/gostly-philantropist-to-jail.sql diff --git a/data/sql/updates/pending_db_world/gostly-philantropist-to-jail.sql b/data/sql/updates/pending_db_world/gostly-philantropist-to-jail.sql new file mode 100644 index 000000000..6d26a15ac --- /dev/null +++ b/data/sql/updates/pending_db_world/gostly-philantropist-to-jail.sql @@ -0,0 +1,2 @@ +-- +UPDATE `creature_template` SET `mingold` = 0, `maxgold` = 0 WHERE `entry` = 16470; From 131a14c064ae03b68e54e16924d831bbb426efff Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Fri, 2 Jun 2023 21:15:25 +0200 Subject: [PATCH 08/21] fix(DB/Creature): Remove Sha'tar rep gain from Restless Skeletons (#16276) initial --- data/sql/updates/pending_db_world/remove_restless_skel_rep.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 data/sql/updates/pending_db_world/remove_restless_skel_rep.sql diff --git a/data/sql/updates/pending_db_world/remove_restless_skel_rep.sql b/data/sql/updates/pending_db_world/remove_restless_skel_rep.sql new file mode 100644 index 000000000..440678601 --- /dev/null +++ b/data/sql/updates/pending_db_world/remove_restless_skel_rep.sql @@ -0,0 +1,3 @@ +-- +-- remove Sha\'tar reputation gain from Restless Skeletons +DELETE FROM `creature_onkill_reputation` WHERE `creature_id` = 17261; From 7cb705396b5e198ff4e8b46879e7a15188ff1c7d Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 2 Jun 2023 19:18:05 +0000 Subject: [PATCH 09/21] chore(DB): import pending files Referenced commit(s): 131a14c064ae03b68e54e16924d831bbb426efff --- .../{pending_db_world/273.sql => db_world/2023_06_02_01.sql} | 1 + .../{pending_db_world/346.sql => db_world/2023_06_02_02.sql} | 1 + .../future-is-now-old-man.sql => db_world/2023_06_02_03.sql} | 1 + .../2023_06_02_04.sql} | 1 + .../remove_restless_skel_rep.sql => db_world/2023_06_02_05.sql} | 1 + .../rev_1685124320508720600.sql => db_world/2023_06_02_06.sql} | 1 + 6 files changed, 6 insertions(+) rename data/sql/updates/{pending_db_world/273.sql => db_world/2023_06_02_01.sql} (94%) rename data/sql/updates/{pending_db_world/346.sql => db_world/2023_06_02_02.sql} (94%) rename data/sql/updates/{pending_db_world/future-is-now-old-man.sql => db_world/2023_06_02_03.sql} (83%) rename data/sql/updates/{pending_db_world/gostly-philantropist-to-jail.sql => db_world/2023_06_02_04.sql} (66%) rename data/sql/updates/{pending_db_world/remove_restless_skel_rep.sql => db_world/2023_06_02_05.sql} (75%) rename data/sql/updates/{pending_db_world/rev_1685124320508720600.sql => db_world/2023_06_02_06.sql} (94%) diff --git a/data/sql/updates/pending_db_world/273.sql b/data/sql/updates/db_world/2023_06_02_01.sql similarity index 94% rename from data/sql/updates/pending_db_world/273.sql rename to data/sql/updates/db_world/2023_06_02_01.sql index 8982815eb..9ca65c719 100644 --- a/data/sql/updates/pending_db_world/273.sql +++ b/data/sql/updates/db_world/2023_06_02_01.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_02_00 -> 2023_06_02_01 -- Tavernkeep Smitts UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=273; DELETE FROM `smart_scripts` WHERE `entryorguid`=273 AND `source_type`=0; diff --git a/data/sql/updates/pending_db_world/346.sql b/data/sql/updates/db_world/2023_06_02_02.sql similarity index 94% rename from data/sql/updates/pending_db_world/346.sql rename to data/sql/updates/db_world/2023_06_02_02.sql index 28f5774b9..4b83b8817 100644 --- a/data/sql/updates/pending_db_world/346.sql +++ b/data/sql/updates/db_world/2023_06_02_02.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_02_01 -> 2023_06_02_02 UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=346; DELETE FROM `smart_scripts` WHERE `entryorguid`=346; 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`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES diff --git a/data/sql/updates/pending_db_world/future-is-now-old-man.sql b/data/sql/updates/db_world/2023_06_02_03.sql similarity index 83% rename from data/sql/updates/pending_db_world/future-is-now-old-man.sql rename to data/sql/updates/db_world/2023_06_02_03.sql index d58f908fb..16ece91e8 100644 --- a/data/sql/updates/pending_db_world/future-is-now-old-man.sql +++ b/data/sql/updates/db_world/2023_06_02_03.sql @@ -1,2 +1,3 @@ +-- DB update 2023_06_02_02 -> 2023_06_02_03 -- guid 96761 is id 25580 aka old man barlo UPDATE `creature` SET `position_x` = -1460.62, `position_y` = 4992.52, `position_z` = -8.977667, `orientation` = 5.532693862915039062 WHERE `guid` = 96761 AND `id1` = 25580; diff --git a/data/sql/updates/pending_db_world/gostly-philantropist-to-jail.sql b/data/sql/updates/db_world/2023_06_02_04.sql similarity index 66% rename from data/sql/updates/pending_db_world/gostly-philantropist-to-jail.sql rename to data/sql/updates/db_world/2023_06_02_04.sql index 6d26a15ac..f6f22bce0 100644 --- a/data/sql/updates/pending_db_world/gostly-philantropist-to-jail.sql +++ b/data/sql/updates/db_world/2023_06_02_04.sql @@ -1,2 +1,3 @@ +-- DB update 2023_06_02_03 -> 2023_06_02_04 -- UPDATE `creature_template` SET `mingold` = 0, `maxgold` = 0 WHERE `entry` = 16470; diff --git a/data/sql/updates/pending_db_world/remove_restless_skel_rep.sql b/data/sql/updates/db_world/2023_06_02_05.sql similarity index 75% rename from data/sql/updates/pending_db_world/remove_restless_skel_rep.sql rename to data/sql/updates/db_world/2023_06_02_05.sql index 440678601..399a19574 100644 --- a/data/sql/updates/pending_db_world/remove_restless_skel_rep.sql +++ b/data/sql/updates/db_world/2023_06_02_05.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_02_04 -> 2023_06_02_05 -- -- remove Sha\'tar reputation gain from Restless Skeletons DELETE FROM `creature_onkill_reputation` WHERE `creature_id` = 17261; diff --git a/data/sql/updates/pending_db_world/rev_1685124320508720600.sql b/data/sql/updates/db_world/2023_06_02_06.sql similarity index 94% rename from data/sql/updates/pending_db_world/rev_1685124320508720600.sql rename to data/sql/updates/db_world/2023_06_02_06.sql index 0460804d5..22728afcb 100644 --- a/data/sql/updates/pending_db_world/rev_1685124320508720600.sql +++ b/data/sql/updates/db_world/2023_06_02_06.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_02_05 -> 2023_06_02_06 -- DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 17) AND (`SourceGroup` = 0) AND (`SourceEntry` = 38915) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 31) AND (`ConditionTarget` = 1) AND (`ConditionValue1` = 3) AND (`ConditionValue2` = 16943) AND (`ConditionValue3` = 0); INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES From 78070b105b1484251f7f645f6df1ddc10503866b Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Fri, 2 Jun 2023 16:30:42 -0300 Subject: [PATCH 10/21] fix(DB/Creature): Charming Totem Movement (Heroic) (#16449) Create idontlikemakingthisthroughthewebsite.sql --- .../pending_db_world/idontlikemakingthisthroughthewebsite.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 data/sql/updates/pending_db_world/idontlikemakingthisthroughthewebsite.sql diff --git a/data/sql/updates/pending_db_world/idontlikemakingthisthroughthewebsite.sql b/data/sql/updates/pending_db_world/idontlikemakingthisthroughthewebsite.sql new file mode 100644 index 000000000..401f854c1 --- /dev/null +++ b/data/sql/updates/pending_db_world/idontlikemakingthisthroughthewebsite.sql @@ -0,0 +1,3 @@ +DELETE FROM `creature_template_movement` WHERE `creatureId` = 20687; +INSERT INTO `creature_template_movement` (`CreatureId`, `Flight`, `Rooted`) VALUES +(20687, 1, 1); From c17233dba0e81c66f9e16251743e88d407d26fed Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 2 Jun 2023 19:33:04 +0000 Subject: [PATCH 11/21] chore(DB): import pending files Referenced commit(s): 78070b105b1484251f7f645f6df1ddc10503866b --- .../2023_06_02_07.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/idontlikemakingthisthroughthewebsite.sql => db_world/2023_06_02_07.sql} (79%) diff --git a/data/sql/updates/pending_db_world/idontlikemakingthisthroughthewebsite.sql b/data/sql/updates/db_world/2023_06_02_07.sql similarity index 79% rename from data/sql/updates/pending_db_world/idontlikemakingthisthroughthewebsite.sql rename to data/sql/updates/db_world/2023_06_02_07.sql index 401f854c1..a4d71338d 100644 --- a/data/sql/updates/pending_db_world/idontlikemakingthisthroughthewebsite.sql +++ b/data/sql/updates/db_world/2023_06_02_07.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_02_06 -> 2023_06_02_07 DELETE FROM `creature_template_movement` WHERE `creatureId` = 20687; INSERT INTO `creature_template_movement` (`CreatureId`, `Flight`, `Rooted`) VALUES (20687, 1, 1); From 772e1a1add4794b36b3c303ec36ea1466089bb9c Mon Sep 17 00:00:00 2001 From: Tereneckla <50233983+Tereneckla@users.noreply.github.com> Date: Fri, 2 Jun 2023 20:32:34 +0000 Subject: [PATCH 12/21] fix(DB/Creature): Make Gargantuan Abyssal immune to knockbacks (#16450) Create rev_1685737282291536800.sql --- data/sql/updates/pending_db_world/rev_1685737282291536800.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 data/sql/updates/pending_db_world/rev_1685737282291536800.sql diff --git a/data/sql/updates/pending_db_world/rev_1685737282291536800.sql b/data/sql/updates/pending_db_world/rev_1685737282291536800.sql new file mode 100644 index 000000000..1ed1abeb3 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1685737282291536800.sql @@ -0,0 +1 @@ +UPDATE `creature_template` SET `flags_extra` = `flags_extra`|1073741824 WHERE (`entry` IN (20898, 21598)); From 4590b7282228ebe3289a6f35e55ca75718907c1e Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 2 Jun 2023 20:34:57 +0000 Subject: [PATCH 13/21] chore(DB): import pending files Referenced commit(s): 772e1a1add4794b36b3c303ec36ea1466089bb9c --- .../rev_1685737282291536800.sql => db_world/2023_06_02_08.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1685737282291536800.sql => db_world/2023_06_02_08.sql} (70%) diff --git a/data/sql/updates/pending_db_world/rev_1685737282291536800.sql b/data/sql/updates/db_world/2023_06_02_08.sql similarity index 70% rename from data/sql/updates/pending_db_world/rev_1685737282291536800.sql rename to data/sql/updates/db_world/2023_06_02_08.sql index 1ed1abeb3..8ed13b1ba 100644 --- a/data/sql/updates/pending_db_world/rev_1685737282291536800.sql +++ b/data/sql/updates/db_world/2023_06_02_08.sql @@ -1 +1,2 @@ +-- DB update 2023_06_02_07 -> 2023_06_02_08 UPDATE `creature_template` SET `flags_extra` = `flags_extra`|1073741824 WHERE (`entry` IN (20898, 21598)); From 0b926d00e33c12da865f3ba1a2d390cc314b1c24 Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Sat, 3 Jun 2023 01:18:53 +0200 Subject: [PATCH 14/21] fix(DB/Creature): Correct position of Jin'Zallah the Sandbringer (#16413) initial --- .../updates/pending_db_world/update-jinzallah-spawn-posis.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 data/sql/updates/pending_db_world/update-jinzallah-spawn-posis.sql diff --git a/data/sql/updates/pending_db_world/update-jinzallah-spawn-posis.sql b/data/sql/updates/pending_db_world/update-jinzallah-spawn-posis.sql new file mode 100644 index 000000000..122cda9a3 --- /dev/null +++ b/data/sql/updates/pending_db_world/update-jinzallah-spawn-posis.sql @@ -0,0 +1,2 @@ +-- +UPDATE `creature` SET `position_x` = -7195.0405, `position_y` = -2979.6877, `position_z` = 9.052029, `orientation` = 5.340707302093505859 WHERE `guid` = 51829 AND `id1` = 8200; From c03c3c63d326edbe17afb7713bd91b8293dc3801 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Fri, 2 Jun 2023 23:21:12 +0000 Subject: [PATCH 15/21] chore(DB): import pending files Referenced commit(s): 0b926d00e33c12da865f3ba1a2d390cc314b1c24 --- .../2023_06_02_09.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/update-jinzallah-spawn-posis.sql => db_world/2023_06_02_09.sql} (80%) diff --git a/data/sql/updates/pending_db_world/update-jinzallah-spawn-posis.sql b/data/sql/updates/db_world/2023_06_02_09.sql similarity index 80% rename from data/sql/updates/pending_db_world/update-jinzallah-spawn-posis.sql rename to data/sql/updates/db_world/2023_06_02_09.sql index 122cda9a3..f81cb08b5 100644 --- a/data/sql/updates/pending_db_world/update-jinzallah-spawn-posis.sql +++ b/data/sql/updates/db_world/2023_06_02_09.sql @@ -1,2 +1,3 @@ +-- DB update 2023_06_02_08 -> 2023_06_02_09 -- UPDATE `creature` SET `position_x` = -7195.0405, `position_y` = -2979.6877, `position_z` = 9.052029, `orientation` = 5.340707302093505859 WHERE `guid` = 51829 AND `id1` = 8200; From cc6b57a4650394f817a6d4069d9d127f2a54aeb3 Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Sun, 4 Jun 2023 23:03:44 -0300 Subject: [PATCH 16/21] fix(DB/Holidays): Add the next 75 Darkmoon Faires (#16474) Create rev_1685913934442419700.sql --- .../rev_1685913934442419700.sql | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1685913934442419700.sql diff --git a/data/sql/updates/pending_db_world/rev_1685913934442419700.sql b/data/sql/updates/pending_db_world/rev_1685913934442419700.sql new file mode 100644 index 000000000..9b9d9d7ac --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1685913934442419700.sql @@ -0,0 +1,78 @@ +-- +DELETE FROM `holiday_dates` WHERE `id` IN (374, 375, 376); +INSERT INTO `holiday_dates` (`id`, `date_id`, `date_value`) VALUES +(374, 1 , 391135232), +(374, 2 , 394264576), +(374, 3 , 397410304), +(374, 4 , 404750336), +(374, 5 , 407339008), +(374, 6 , 410468352), +(374, 7 , 413597696), +(374, 8 , 420921344), +(374, 9 , 424099840), +(374, 10, 427884544), +(374, 11, 431030272), +(374, 12, 437682176), +(374, 13, 441516032), +(374, 14, 444645376), +(374, 15, 447791104), +(374, 16, 455147520), +(374, 17, 458276864), +(374, 18, 461406208), +(374, 19, 464551936), +(374, 20, 471891968), +(374, 21, 475021312), +(374, 22, 478150656), +(374, 23, 481296384), +(374, 24, 488652800), +(374, 25, 491782144), +(375, 1 , 391593984), +(375, 2 , 395395072), +(375, 3 , 402718720), +(375, 4 , 405864448), +(375, 5 , 409010176), +(375, 6 , 412139520), +(375, 7 , 419463168), +(375, 8 , 422625280), +(375, 9 , 425771008), +(375, 10, 428900352), +(375, 11, 436224000), +(375, 12, 439386112), +(375, 13, 442531840), +(375, 14, 445661184), +(375, 15, 452984832), +(375, 16, 456146944), +(375, 17, 459292672), +(375, 18, 462422016), +(375, 19, 469778432), +(375, 20, 472924160), +(375, 21, 476069888), +(375, 22, 479199232), +(375, 23, 486604800), +(375, 24, 489111552), +(375, 25, 492240896), +(376, 1 , 393265152), +(376, 2 , 396394496), +(376, 3 , 403718144), +(376, 4 , 406880256), +(376, 5 , 410009600), +(376, 6 , 413138944), +(376, 7 , 419921920), +(376, 8 , 423641088), +(376, 9 , 426770432), +(376, 10, 429359104), +(376, 11, 436682752), +(376, 12, 440401920), +(376, 13, 442990592), +(376, 14, 446119936), +(376, 15, 454098944), +(376, 16, 456605696), +(376, 17, 459751424), +(376, 18, 463536128), +(376, 19, 470859776), +(376, 20, 474021888), +(376, 21, 477151232), +(376, 22, 480280576), +(376, 23, 487604224), +(376, 24, 490782720), +(376, 25, 493912064); From 3b86e25f06e684096d09ba6072bdcac3b13e985a Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Mon, 5 Jun 2023 02:06:00 +0000 Subject: [PATCH 17/21] chore(DB): import pending files Referenced commit(s): cc6b57a4650394f817a6d4069d9d127f2a54aeb3 --- .../rev_1685913934442419700.sql => db_world/2023_06_05_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1685913934442419700.sql => db_world/2023_06_05_00.sql} (97%) diff --git a/data/sql/updates/pending_db_world/rev_1685913934442419700.sql b/data/sql/updates/db_world/2023_06_05_00.sql similarity index 97% rename from data/sql/updates/pending_db_world/rev_1685913934442419700.sql rename to data/sql/updates/db_world/2023_06_05_00.sql index 9b9d9d7ac..0c6bbbdbf 100644 --- a/data/sql/updates/pending_db_world/rev_1685913934442419700.sql +++ b/data/sql/updates/db_world/2023_06_05_00.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_02_09 -> 2023_06_05_00 -- DELETE FROM `holiday_dates` WHERE `id` IN (374, 375, 376); INSERT INTO `holiday_dates` (`id`, `date_id`, `date_value`) VALUES From 9d6398e63a806186768c1ccc567249395990cca7 Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Sun, 4 Jun 2023 23:39:20 -0300 Subject: [PATCH 18/21] fix(DB): Fix typo in 2023_05_28_03.sql (#16473) Update 2023_05_28_03.sql --- data/sql/updates/db_world/2023_05_28_03.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/sql/updates/db_world/2023_05_28_03.sql b/data/sql/updates/db_world/2023_05_28_03.sql index 59a980462..62ba05d82 100644 --- a/data/sql/updates/db_world/2023_05_28_03.sql +++ b/data/sql/updates/db_world/2023_05_28_03.sql @@ -1,6 +1,6 @@ -- DB update 2023_05_28_02 -> 2023_05_28_03 -- -DELETE FROM `smart_scripts` WHERE (`entryorguid` IN (-151090,-151091,-151092,-151093)) AND (`source_type` = 0) AND (`id` IN (0)); +DELETE FROM `smart_scripts` WHERE (`entryorguid` IN (-151090,-151091,-151092,-151093)) AND (`source_type` = 0) AND (`id` IN (1000)); 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 (-151090, 0, 1000, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 18, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Hack: Fel Orc Convert - On Respawn - Set Flags Not Attackable'), (-151091, 0, 1000, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 18, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Hack: Fel Orc Convert - On Respawn - Set Flags Not Attackable'), From 3564027f538985561eaa9878dcc7f09d2f8f198e Mon Sep 17 00:00:00 2001 From: KJack Date: Sun, 4 Jun 2023 22:41:09 -0400 Subject: [PATCH 19/21] fix(DB/SAI): Archaedas despawns his adds after dying (#16446) * Fix issue where Archaedas' (2748) adds don't despawn at the end of the fight. * Change distance to 100 to better match other SAI entries. --- .../rev_1685675135891070502.sql | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1685675135891070502.sql diff --git a/data/sql/updates/pending_db_world/rev_1685675135891070502.sql b/data/sql/updates/pending_db_world/rev_1685675135891070502.sql new file mode 100644 index 000000000..056690363 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1685675135891070502.sql @@ -0,0 +1,33 @@ +-- Archaedas (Uldaman) SAI +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 2748); +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 +(2748, 0, 0, 0, 25, 0, 100, 0, 0, 0, 0, 0, 0, 11, 10255, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Reset - Cast Stoned'), +(2748, 0, 1, 2, 38, 0, 100, 0, 1, 1, 0, 0, 0, 11, 10347, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Data Set - Cast Archaedas Awaken Visual (DND)'), +(2748, 0, 2, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 67, 1, 4000, 4000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Data Set - Create Timed Event'), +(2748, 0, 3, 4, 59, 0, 100, 512, 1, 0, 0, 0, 0, 28, 10255, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Timed Event - Remove Aura Stoned'), +(2748, 0, 4, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 80, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Timed Event - Attack Start'), +(2748, 0, 5, 0, 4, 0, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Aggro - Say Line 0'), +(2748, 0, 6, 0, 5, 0, 100, 0, 5000, 5000, 0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Kill - Say Line 3'), +(2748, 0, 7, 8, 2, 0, 100, 1, 0, 70, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - Health Between 0-70% - Say Line 1'), +(2748, 0, 8, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 11, 10252, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - Health Between 0-70% - Cast Awaken Earthen Guardian'), +(2748, 0, 9, 10, 2, 0, 100, 1, 0, 40, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - Health Between 0-40% - Say Line 2'), +(2748, 0, 10, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 11, 10258, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - Health Between 0-40% - Cast Awaken Vault Warder'), +(2748, 0, 11, 0, 0, 0, 100, 0, 10000, 10000, 10000, 10000, 0, 11, 10259, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - In Combat - Awaken Earthen Dwarf'), +(2748, 0, 12, 0, 0, 0, 100, 0, 0, 10000, 14000, 20000, 0, 11, 6524, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - In Combat - Cast Ground Tremor'), +(2748, 0, 13, 14, 60, 0, 100, 769, 1000, 1000, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 11, 7076, 100, 0, 0, 0, 0, 0, 0, 'Archaedas - On Update - Store Target List (Earthen Guardian)'), +(2748, 0, 14, 15, 61, 0, 100, 512, 0, 0, 0, 0, 0, 64, 2, 0, 0, 0, 0, 0, 11, 10120, 100, 0, 0, 0, 0, 0, 0, 'Archaedas - On Update - Store Target List (Vault Warder)'), +(2748, 0, 15, 16, 61, 0, 100, 512, 0, 0, 0, 0, 0, 64, 3, 0, 0, 0, 0, 0, 11, 7077, 100, 0, 0, 0, 0, 0, 0, 'Archaedas - On Update - Store Target List (Earthen Hellshaper)'), +(2748, 0, 16, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 64, 4, 0, 0, 0, 0, 0, 11, 7309, 100, 0, 0, 0, 0, 0, 0, 'Archaedas - On Update - Store Target List (Earthen Custodian)'), +(2748, 0, 17, 18, 25, 0, 100, 512, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Reset - Respawn Target'), +(2748, 0, 18, 19, 61, 0, 100, 512, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 12, 2, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Reset - Respawn Target'), +(2748, 0, 19, 20, 61, 0, 100, 512, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 12, 3, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Reset - Respawn Target'), +(2748, 0, 20, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 12, 4, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Reset - Respawn Target'), +(2748, 0, 21, 0, 21, 0, 100, 512, 0, 0, 0, 0, 0, 34, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - Just Reached Home - Set Instance Data'), +(2748, 0, 22, 23, 6, 0, 100, 512, 0, 0, 0, 0, 0, 34, 2, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Death - Set Instance Data'), +(2748, 0, 23, 25, 61, 0, 100, 512, 0, 0, 0, 0, 0, 11, 10604, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - On Death - Cast Destroy Earthen Guards'), +(2748, 0, 24, 0, 31, 0, 100, 512, 10604, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Archaedas - Spell Hit Target - Despawn'), +(2748, 0, 25, 26, 61, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 10120, 0, 100, 0, 0, 0, 0, 0, 'Archaedas - On Just Died - Despawn Vault Warders'), +(2748, 0, 26, 27, 61, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 7076, 0, 100, 0, 0, 0, 0, 0, 'Archaedas - On Just Died - Despawn Earthen Guardians'), +(2748, 0, 27, 28, 61, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 7077, 0, 100, 0, 0, 0, 0, 0, 'Archaedas - On Just Died - Despawn Earthen Hallshapers'), +(2748, 0, 28, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 9, 7309, 0, 100, 0, 0, 0, 0, 0, 'Archaedas - On Just Died - Despawn Earthen Custodians'); + From 3e19b5e63791c76f110e0d6d2b9b21d3faa36be4 Mon Sep 17 00:00:00 2001 From: Dan <83884799+elthehablo@users.noreply.github.com> Date: Mon, 5 Jun 2023 04:42:40 +0200 Subject: [PATCH 20/21] fix(Scripts/Underbog): modernise boss scripts (#16149) --- src/server/game/Movement/MotionMaster.cpp | 26 +++++ src/server/game/Movement/MotionMaster.h | 1 + .../underbog/boss_ghazan.cpp | 83 ++++++---------- .../underbog/boss_hungarfen.cpp | 33 +++---- .../underbog/boss_swamplord_muselek.cpp | 11 ++- .../underbog/boss_the_black_stalker.cpp | 95 ++++++++----------- 6 files changed, 112 insertions(+), 137 deletions(-) diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 27daa3196..be0fb7951 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -344,6 +344,32 @@ void MotionMaster::MoveBackwards(Unit* target, float dist) init.Launch(); } +void MotionMaster::MoveForwards(Unit* target, float dist) +{ + //like movebackwards, but without the inversion + if (!target) + { + return; + } + + Position const& pos = target->GetPosition(); + float angle = target->GetAngle(_owner); + G3D::Vector3 point; + point.x = pos.m_positionX + dist * cosf(angle); + point.y = pos.m_positionY + dist * sinf(angle); + point.z = pos.m_positionZ; + + if (!_owner->GetMap()->CanReachPositionAndGetValidCoords(_owner, point.x, point.y, point.z, true, true)) + { + return; + } + + Movement::MoveSplineInit init(_owner); + init.MoveTo(point.x, point.y, point.z, false); + init.SetFacing(target); + init.Launch(); +} + void MotionMaster::MoveCircleTarget(Unit* target) { if (!target) diff --git a/src/server/game/Movement/MotionMaster.h b/src/server/game/Movement/MotionMaster.h index 4693025de..d9131295d 100644 --- a/src/server/game/Movement/MotionMaster.h +++ b/src/server/game/Movement/MotionMaster.h @@ -205,6 +205,7 @@ public: void MoveChase(Unit* target, float dist) { MoveChase(target, ChaseRange(dist)); } void MoveCircleTarget(Unit* target); void MoveBackwards(Unit* target, float dist); + void MoveForwards(Unit* target, float dist); void MoveConfused(); void MoveFleeing(Unit* enemy, uint32 time = 0); void MovePoint(uint32 id, const Position& pos, bool generatePath = true, bool forceDestination = true) diff --git a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_ghazan.cpp b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_ghazan.cpp index 8054fa261..cba57f85e 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_ghazan.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_ghazan.cpp @@ -28,10 +28,6 @@ enum eBlackStalker SPELL_TAIL_SWEEP = 34267, SPELL_ENRAGE = 15716, - EVENT_ACID_BREATH = 1, - EVENT_ACID_SPIT = 2, - EVENT_TAIL_SWEEP = 3, - ACTION_MOVE_TO_PLATFORM = 1 }; @@ -39,6 +35,10 @@ struct boss_ghazan : public BossAI { boss_ghazan(Creature* creature) : BossAI(creature, DATA_GHAZAN) { + scheduler.SetValidator([this] + { + return !me->HasUnitState(UNIT_STATE_CASTING); + }); } void InitializeAI() override @@ -50,31 +50,34 @@ struct boss_ghazan : public BossAI void Reset() override { - _enraged = false; + _Reset(); if (!_reachedPlatform) { _movedToPlatform = false; } - BossAI::Reset(); - } - - void JustEngagedWith(Unit* who) override - { - events.ScheduleEvent(EVENT_ACID_BREATH, 3s); - events.ScheduleEvent(EVENT_ACID_SPIT, 1s); - events.ScheduleEvent(EVENT_TAIL_SWEEP, DUNGEON_MODE(5900ms, 10s)); - - BossAI::JustEngagedWith(who); - } - - void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType /*type*/, SpellSchoolMask /*school*/) override - { - if (!_enraged && me->HealthBelowPctDamaged(20, damage)) - { - _enraged = true; + ScheduleHealthCheckEvent(20, [&] { DoCastSelf(SPELL_ENRAGE); - } + }); + } + + void JustEngagedWith(Unit* /*who*/) override + { + scheduler.Schedule(3s, [this](TaskContext context) + { + DoCastVictim(SPELL_ACID_BREATH); + context.Repeat(7s, 9s); + }).Schedule(1s, [this](TaskContext context) + { + DoCastRandomTarget(SPELL_ACID_SPIT); + context.Repeat(7s, 9s); + }).Schedule(DUNGEON_MODE(5900ms, 10s), [this](TaskContext context) + { + DoCastVictim(SPELL_TAIL_SWEEP); + context.Repeat(7s, 9s); + }); + + _JustEngagedWith(); } void DoAction(int32 type) override @@ -110,7 +113,7 @@ struct boss_ghazan : public BossAI me->GetMotionMaster()->MoveRandom(12.f); } - BossAI::JustReachedHome(); + _JustReachedHome(); } void UpdateAI(uint32 diff) override @@ -120,42 +123,12 @@ struct boss_ghazan : public BossAI return; } - events.Update(diff); - - if (me->HasUnitState(UNIT_STATE_CASTING)) - { - return; - } - - while (uint32 eventId = events.ExecuteEvent()) - { - switch (eventId) - { - case EVENT_ACID_BREATH: - DoCastVictim(SPELL_ACID_BREATH); - events.Repeat(7s, 9s); - break; - case EVENT_ACID_SPIT: - if (Unit* target = SelectTarget(SelectTargetMethod::Random)) - { - DoCast(target, SPELL_ACID_SPIT); - } - events.Repeat(7s, 9s); - break; - case EVENT_TAIL_SWEEP: - DoCastVictim(SPELL_TAIL_SWEEP); - events.Repeat(7s, 9s); - break; - default: - break; - } - } + scheduler.Update(diff); DoMeleeAttackIfReady(); } private: - bool _enraged; bool _movedToPlatform; bool _reachedPlatform; }; diff --git a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_hungarfen.cpp b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_hungarfen.cpp index 980ef0969..38b76287b 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_hungarfen.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_hungarfen.cpp @@ -44,35 +44,29 @@ enum Misc struct boss_hungarfen : public BossAI { - boss_hungarfen(Creature* creature) : BossAI(creature, DATA_HUNGARFEN), _foul_spores(false) { } + boss_hungarfen(Creature* creature) : BossAI(creature, DATA_HUNGARFEN) { } - void DamageTaken(Unit* /*attacker*/, uint32& damage, DamageEffectType, SpellSchoolMask) override + void Reset() override { - if (me->HealthBelowPctDamaged(20, damage) && !_foul_spores) - { - _foul_spores = true; + _Reset(); + _scheduler.CancelAll(); + DoCastAOE(SPELL_DESPAWN_MUSHROOMS, true); + + ScheduleHealthCheckEvent(20, [&] { me->AddUnitState(UNIT_STATE_ROOT); Talk(EMOTE_ROARS); DoCastSelf(SPELL_FOUL_SPORES); _scheduler.DelayAll(11s); _scheduler.Schedule(11s, [this](TaskContext /*context*/) - { - me->ClearUnitState(UNIT_STATE_ROOT); - }); - } + { + me->ClearUnitState(UNIT_STATE_ROOT); + }); + }); } - void Reset() override + void JustEngagedWith(Unit* /*who*/) override { - BossAI::Reset(); - _foul_spores = false; - _scheduler.CancelAll(); - DoCastAOE(SPELL_DESPAWN_MUSHROOMS, true); - } - - void JustEngagedWith(Unit* who) override - { - BossAI::JustEngagedWith(who); + _JustEngagedWith(); _scheduler.Schedule(IsHeroic() ? randtime(2400ms, 3600ms) : 10s, [this](TaskContext context) { @@ -107,7 +101,6 @@ struct boss_hungarfen : public BossAI private: TaskScheduler _scheduler; - bool _foul_spores; }; struct npc_underbog_mushroom : public ScriptedAI diff --git a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_swamplord_muselek.cpp b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_swamplord_muselek.cpp index 0d220613b..9b310f2e6 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_swamplord_muselek.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_swamplord_muselek.cpp @@ -17,6 +17,7 @@ #include "ScriptMgr.h" #include "ScriptedCreature.h" +#include "TaskScheduler.h" #include "the_underbog.h" enum Spells @@ -27,14 +28,14 @@ enum Spells SPELL_MULTISHOT = 34974, SPELL_THROW_FREEZING_TRAP = 31946, SPELL_AIMED_SHOT = 31623, - SPELL_HUNTERS_MARK = 31615 + SPELL_HUNTERS_MARK = 31615, }; enum Text { - SAY_AGGRO = 1, - SAY_KILL = 2, - SAY_JUST_DIED = 3 + SAY_AGGRO = 1, + SAY_KILL = 2, + SAY_JUST_DIED = 3 }; enum Misc @@ -133,7 +134,7 @@ struct boss_swamplord_muselek : public BossAI if (me->IsWithinMeleeRange(me->GetVictim())) { me->GetMotionMaster()->Clear(); - me->GetMotionMaster()->MoveBackwards(me->GetVictim(), 10.0f); + me->GetMotionMaster()->MoveForwards(me->GetVictim(), 10.0f); } me->m_Events.AddEventAtOffset([this]() diff --git a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp index e3171541d..5a0297c34 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/underbog/boss_the_black_stalker.cpp @@ -47,14 +47,6 @@ enum eBlackStalker SPELL_SUSPENSION_PRIMER = 31720, SPELL_SUSPENSION = 31719, - EVENT_LEVITATE = 1, - EVENT_SPELL_CHAIN = 2, - EVENT_SPELL_STATIC = 3, - EVENT_SPELL_SPORES = 4, - EVENT_CHECK = 5, - EVENT_LEVITATE_TARGET_1 = 6, - EVENT_LEVITATE_TARGET_2 = 7, - ENTRY_SPORE_STRIDER = 22299 }; @@ -62,18 +54,47 @@ struct boss_the_black_stalker : public BossAI { boss_the_black_stalker(Creature* creature) : BossAI(creature, DATA_BLACK_STALKER) { + scheduler.SetValidator([this] + { + return !me->HasUnitState(UNIT_STATE_CASTING); + }); } - void JustEngagedWith(Unit* who) override + void JustEngagedWith(Unit* /*who*/) override { - events.ScheduleEvent(EVENT_LEVITATE, urand(8000, 12000)); - events.ScheduleEvent(EVENT_SPELL_CHAIN, 6000); - events.ScheduleEvent(EVENT_SPELL_STATIC, 10000); - events.ScheduleEvent(EVENT_CHECK, 5000); - if (IsHeroic()) - events.ScheduleEvent(EVENT_SPELL_SPORES, urand(10000, 15000)); + scheduler.Schedule(8s, 12s, [this](TaskContext context) + { + DoCastSelf(SPELL_LEVITATE); + context.Repeat(18s, 24s); + }).Schedule(6s, [this](TaskContext context) + { + DoCastRandomTarget(SPELL_CHAIN_LIGHTNING, false); + context.Repeat(9s); + }).Schedule(10s, [this](TaskContext context) + { + DoCastRandomTarget(SPELL_STATIC_CHARGE, false); + context.Repeat(10s); + }).Schedule(5s, [this](TaskContext /*context*/) + { + float x, y, z, o = 0.f; + me->GetHomePosition(x, y, z, o); + if (!me->IsWithinDist3d(x, y, z, 60.0f)) + { + EnterEvadeMode(); + return; + } + }); - BossAI::JustEngagedWith(who); + if (IsHeroic()) + { + scheduler.Schedule(10s, 15s, [this](TaskContext context) + { + DoCastSelf(SPELL_SUMMON_SPORE_STRIDER, false); + context.Repeat(10s, 15s); + }); + } + + _JustEngagedWith(); } void JustSummoned(Creature* summon) override @@ -89,8 +110,6 @@ struct boss_the_black_stalker : public BossAI void SummonedCreatureDies(Creature* summon, Unit* /*killer*/) override { summons.Despawn(summon); - for (uint8 i = 0; i < 3; ++i) - me->CastSpell(me, SPELL_SUMMON_SPORE_STRIDER, false); } void UpdateAI(uint32 diff) override @@ -98,45 +117,7 @@ struct boss_the_black_stalker : public BossAI if (!UpdateVictim()) return; - events.Update(diff); - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; - - switch (events.ExecuteEvent()) - { - case EVENT_CHECK: - float x, y, z, o; - me->GetHomePosition(x, y, z, o); - if (!me->IsWithinDist3d(x, y, z, 60)) - { - EnterEvadeMode(); - return; - } - events.RepeatEvent(5000); - break; - case EVENT_SPELL_SPORES: - me->CastSpell(me, SPELL_SUMMON_SPORE_STRIDER, false); - events.RepeatEvent(urand(10000, 15000)); - break; - case EVENT_SPELL_CHAIN: - if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0)) - me->CastSpell(target, SPELL_CHAIN_LIGHTNING, false); - events.RepeatEvent(9000); - break; - case EVENT_SPELL_STATIC: - if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 30, true)) - me->CastSpell(target, SPELL_STATIC_CHARGE, false); - events.RepeatEvent(10000); - break; - case EVENT_LEVITATE: - DoCastSelf(SPELL_LEVITATE); - events.RepeatEvent(urand(18000, 24000)); - break; - } - - if (me->HasUnitState(UNIT_STATE_CASTING)) - return; + scheduler.Update(diff); DoMeleeAttackIfReady(); } From 240d2928f1fde72f10e7cda84185011e33127156 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Mon, 5 Jun 2023 02:45:16 +0000 Subject: [PATCH 21/21] chore(DB): import pending files Referenced commit(s): 3e19b5e63791c76f110e0d6d2b9b21d3faa36be4 --- .../rev_1685675135891070502.sql => db_world/2023_06_05_01.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1685675135891070502.sql => db_world/2023_06_05_01.sql} (99%) diff --git a/data/sql/updates/pending_db_world/rev_1685675135891070502.sql b/data/sql/updates/db_world/2023_06_05_01.sql similarity index 99% rename from data/sql/updates/pending_db_world/rev_1685675135891070502.sql rename to data/sql/updates/db_world/2023_06_05_01.sql index 056690363..f9b26ce20 100644 --- a/data/sql/updates/pending_db_world/rev_1685675135891070502.sql +++ b/data/sql/updates/db_world/2023_06_05_01.sql @@ -1,3 +1,4 @@ +-- DB update 2023_06_05_00 -> 2023_06_05_01 -- Archaedas (Uldaman) SAI DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 2748); 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