Skip to content

Commit

Permalink
DB/World Fix FOS npcs visible by faction (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
leviathonbeast authored and Traesh committed Jul 10, 2018
1 parent 5e235fd commit 2ccc921
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
28 changes: 28 additions & 0 deletions sql/ashamane/world/2018_07_10_01_world_fos.sql
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2ccc921

Please sign in to comment.