From d06cf9524b4f1cd68a15d9cafbaa658b5adbee7d Mon Sep 17 00:00:00 2001 From: Naddley <64811442+Naddley@users.noreply.github.com> Date: Wed, 22 Jul 2026 22:51:05 +0200 Subject: [PATCH] DB/Vashjir: Implement Quest: "Rest For the Weary (A)" --- .../world/master/2026_07_22_00_world.sql | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 sql/updates/world/master/2026_07_22_00_world.sql diff --git a/sql/updates/world/master/2026_07_22_00_world.sql b/sql/updates/world/master/2026_07_22_00_world.sql new file mode 100644 index 0000000000..f189fe6204 --- /dev/null +++ b/sql/updates/world/master/2026_07_22_00_world.sql @@ -0,0 +1,45 @@ +SET @CGUID := 3000098; + +-- Creature +DELETE FROM `creature` WHERE `guid` BETWEEN @CGUID+0 AND @CGUID+6; +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES +(@CGUID+0, 40664, 0, 4815, 5051, '0', 0, 0, 0, 0, -4441.5556640625, 3810.943603515625, -82.11639404296875, 2.042035102844238281, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 68453), -- Recovering Soldier (Area: Seafarer's Tomb - Difficulty: 0) CreateObject1 (Auras: 49415 - Generic Quest Invisibility 2) +(@CGUID+1, 40664, 0, 4815, 5051, '0', 0, 0, 0, 0, -4461.6025390625, 3801.744873046875, -82.2079620361328125, 0.855211317539215087, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 68453), -- Recovering Soldier (Area: Seafarer's Tomb - Difficulty: 0) CreateObject1 (Auras: 49415 - Generic Quest Invisibility 2) +(@CGUID+2, 40664, 0, 4815, 5051, '0', 0, 0, 0, 0, -4463.51025390625, 3804.5859375, -82.805877685546875, 0, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 68453), -- Recovering Soldier (Area: Seafarer's Tomb - Difficulty: 0) CreateObject1 (Auras: 49415 - Generic Quest Invisibility 2) +(@CGUID+3, 39887, 0, 4815, 5051, '0', 0, 0, 0, 0, -4440.31591796875, 3817.341064453125, -82.7362289428710937, 2.007128715515136718, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 68453), -- Captain Taylor (Area: Seafarer's Tomb - Difficulty: 0) CreateObject1 (Auras: 49415 - Generic Quest Invisibility 2) +(@CGUID+4, 40664, 0, 4815, 5051, '0', 0, 0, 0, 0, -4440.72900390625, 3813.7587890625, -82.498687744140625, 4.031710624694824218, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 68453), -- Recovering Soldier (Area: Seafarer's Tomb - Difficulty: 0) CreateObject1 (Auras: 49415 - Generic Quest Invisibility 2) +(@CGUID+5, 40664, 0, 4815, 5051, '0', 0, 0, 0, 0, -4452.58837890625, 3803.559814453125, -81.7989654541015625, 2.600540637969970703, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 68453), -- Recovering Soldier (Area: Seafarer's Tomb - Difficulty: 0) CreateObject1 (Auras: 49415 - Generic Quest Invisibility 2) +(@CGUID+6, 40664, 0, 4815, 5051, '0', 0, 0, 0, 0, -4436.6337890625, 3815.634521484375, -82.4793853759765625, 2.670353651046752929, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 68453); -- Recovering Soldier (Area: Seafarer's Tomb - Difficulty: 0) CreateObject1 (Auras: 49415 - Generic Quest Invisibility 2) + +-- SpellArea (update quest_ender) +DELETE FROM `spell_area` WHERE `spell` = 74145 AND `area` IN (5051,5052,5012); +INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `aura_spell`, `racemask`, `gender`, `flags`, `quest_start_status`, `quest_end_status`) VALUE +(74145, 5051, 14482, 25281, 0, 0, 2, 3, 66, 11), -- (Cast) SpellID: 74145 (Kelp Forest Quest Invisibility Detection 1) +(74145, 5052, 14482, 25281, 0, 0, 2, 3, 66, 11), -- (Cast) SpellID: 74145 (Kelp Forest Quest Invisibility Detection 1) +(74145, 5012, 14482, 25281, 0, 0, 2, 3, 66, 11); -- (Cast) SpellID: 74145 (Kelp Forest Quest Invisibility Detection 1) + +-- SpellArea +DELETE FROM `spell_area` WHERE `spell` = 74146 AND `area` IN (5051,5052,5012); +INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `aura_spell`, `racemask`, `gender`, `flags`, `quest_start_status`, `quest_end_status`) VALUE +(74146, 5051, 25281, 0, 0, 0, 2, 3, 64, 11), -- 74146 (Kelp Forest Quest Invisibility Detection 2) +(74146, 5052, 25281, 0, 0, 0, 2, 3, 64, 11), -- 74146 (Kelp Forest Quest Invisibility Detection 2) +(74146, 5012, 25281, 0, 0, 0, 2, 3, 64, 11); -- 74146 (Kelp Forest Quest Invisibility Detection 2) + +-- Template +UPDATE `creature_template` SET `npcflag`=1, `unit_flags3`=0x1 WHERE `entry`=40664; -- Recovering Soldier +UPDATE `creature_template` SET `unit_flags3`=0x1 WHERE `entry`=39887; -- Captain Taylor + +-- Template Addon +DELETE FROM `creature_template_addon` WHERE `entry` IN (39887 /*39887 (Captain Taylor) - Generic Quest Invisibility 2*/, 40664 /*40664 (Recovering Soldier) - Generic Quest Invisibility 2*/); +INSERT INTO `creature_template_addon` (`entry`, `PathId`, `mount`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvpFlags`, `emote`, `aiAnimKit`, `movementAnimKit`, `meleeAnimKit`, `visibilityDistanceType`, `auras`) VALUES +(39887, 0, 0, 8, 0, 1, 1, 0, 0, 0, 0, 0, 0, '49415'), -- 39887 (Captain Taylor) - Generic Quest Invisibility 2 +(40664, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, '49415'); -- 40664 (Recovering Soldier) - Generic Quest Invisibility 2 + +-- Difficulty +UPDATE `creature_template_difficulty` SET `ContentTuningID`=53, `StaticFlags1`=0x10000000, `VerifiedBuild`=68453 WHERE (`Entry`=39887 AND `DifficultyID`=0); -- 39887 (Captain Taylor) - CanSwim +UPDATE `creature_template_difficulty` SET `ContentTuningID`=53, `StaticFlags1`=0x10000000, `VerifiedBuild`=68453 WHERE (`Entry`=40664 AND `DifficultyID`=0); -- 40664 (Recovering Soldier) - CanSwim + +-- Gossip +DELETE FROM `creature_template_gossip` WHERE (`CreatureID`=40664 AND `MenuID`=11421); +INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`) VALUES +(40664, 11421, 68453); -- Recovering Soldier