From 2ccc921a52564296b09c977bc45454903cde886b Mon Sep 17 00:00:00 2001 From: leviathonbeast Date: Tue, 10 Jul 2018 08:50:41 +0200 Subject: [PATCH] DB/World Fix FOS npcs visible by faction (#38) --- README.md | 1 + .../world/2018_07_10_01_world_fos.sql | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 sql/ashamane/world/2018_07_10_01_world_fos.sql diff --git a/README.md b/README.md index 4db1afc1b28a8..8cd7c54271a3d 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ It is fully based on *TrinityCore*, with upgrades like : - Legion scripts (WIP) - BlackRookHold - Darkheart Thicket + - Eye Of Azshara - Mardum (DH start zone) - Emerald Nightmare (1/7) - Tomb of Sargeras (1/9) diff --git a/sql/ashamane/world/2018_07_10_01_world_fos.sql b/sql/ashamane/world/2018_07_10_01_world_fos.sql new file mode 100644 index 0000000000000..1cc68611d8e05 --- /dev/null +++ b/sql/ashamane/world/2018_07_10_01_world_fos.sql @@ -0,0 +1,28 @@ +SET @PHASE_169 = 172329; +SET @PHASE_170 = 59073; +SET @PHASE_171 = 59074; + +-- Sylvanas ( apparently it does not have the same spawn mask as proudmore it should ) -- +UPDATE creature SET spawnMask = 6, spawntimesecs = 7200, PhaseId = 170, position_x = 4899.977, position_y = 2208.158, position_z = 638.8166, orientation = 0.3490658, VerifiedBuild = 26972 WHERE guid = 20548883; + +-- Lady Proudmore -- +UPDATE creature SET PhaseId = 171, position_x = 4901.254, position_y = 2206.861, position_z = 638.8166, orientation = 5.88176, VerifiedBuild = 26972 WHERE guid = 351792; + +-- Phasing -- +INSERT INTO spell_area (`spell`, `area`, `teamid`, `flags`) VALUES +(@PHASE_170, 4809, 1, 3), +(@PHASE_169, 4809, 1, 3), +(@PHASE_171, 4809, 0, 3), +(@PHASE_169, 4809, 0, 3); + +-- QuestLine Fixes -- +DELETE FROM creature_queststarter WHERE id=37596 AND quest=24506; -- THIS NPC IS NOT SUPPOSED TO GIVE THIS QUEST + +-- missing spawns -- +SET @CGUID = 210219115; + +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES +(@CGUID+1, 37582, 632, 4809, 4809, 6, 171, 0, 0, 0, 4903.156, 2213.092, 638.8166, 0.1745329, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 26972), -- 37582 +(@CGUID+2, 37583, 632, 4809, 4809, 6, 170, 0, 0, 0, 4902.829, 2212.832, 638.8166, 0.3490658, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 26972), -- 37583 +(@CGUID+3, 37779, 632, 4809, 4809, 6, 170, 0, 0, 0, 4899.854, 2205.901, 638.8166, 5.497787, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 26972), -- 37779 +(@CGUID+4, 37774, 632, 4809, 4809, 6, 171, 0, 0, 0, 4899.706, 2205.898, 638.8166, 5.864306, 7200, 0, 0, 0, 0, 0, 0, 0, 0, 26972); -- 37774