From 5030723463e444ec83ffb5d42c70d707c5b7118b Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Tue, 19 Oct 2021 21:42:26 -0300 Subject: fix(DB/Quest): The Sun Gate (#8593) * fixed players never being able to interact with the Sun Portal after destroying crystals * fixed visual effect falling out of sync with the crystals due to a flaw in the spawn/respawn implementation --- .../sql/updates/pending_db_world/rev_1634524834761698100.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1634524834761698100.sql diff --git a/data/sql/updates/pending_db_world/rev_1634524834761698100.sql b/data/sql/updates/pending_db_world/rev_1634524834761698100.sql new file mode 100644 index 0000000000..4355c6ebe8 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1634524834761698100.sql @@ -0,0 +1,12 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1634524834761698100'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceEntry` = 182026; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(22, 1, 182026, 1, 0, 29, 1, 17886, 60, 0, 0, 0, 0, '', 'Sun Gate - Only run SAI IF trigger IN RANGE'), +(22, 2, 182026, 1, 0, 29, 1, 17886, 60, 1, 1, 0, 0, '', 'Sun Gate - Only run SAI IF NO trigger IN RANGE'); + +-- Increase respawn timer to two minutes +UPDATE `creature` SET `spawntimesecs` = 123 WHERE `id` = 17886; +UPDATE `gameobject` SET `spawntimesecs` = 120 WHERE `id` = 184850; + +UPDATE `smart_scripts` SET `action_type` = 41, `comment` = 'Sunhawk Portal Controller - On Gameobject State Changed - Despawn Target' WHERE `entryorguid` IN (-12168, -12173, -12164, -12166) AND `source_type` = 1 AND `action_type` = 51; -- cgit v1.2.3