summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkjalf <47818697+Nyeriah@users.noreply.github.com>2021-10-19 21:42:26 -0300
committerGitHub <noreply@github.com>2021-10-20 02:42:26 +0200
commit5030723463e444ec83ffb5d42c70d707c5b7118b (patch)
tree72ec679a3b7548397dd5b6b1c8ecb31754c4abfd
parent43ebc5f24a6073803332ae459933ff18dac9de9c (diff)
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
-rw-r--r--data/sql/updates/pending_db_world/rev_1634524834761698100.sql12
1 files changed, 12 insertions, 0 deletions
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;