Skip to content

Commit

Permalink
[WDB][5145] Twilight Prophet 15308
Browse files Browse the repository at this point in the history
corrected
NOTE: TBC+ she has only 2 guards now

(cherry picked from commit cmangos/wotlk-db@2fd377d

(cherry picked from commit cmangos/tbc-db@b2b3018
  • Loading branch information
Grz3s authored and AnonXS committed Dec 9, 2023
1 parent 302c040 commit 655f30b
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ UPDATE `reference_loot_template_names` SET `name` = 'NPC LOOT (White World Drop)
UPDATE `reference_loot_template_names` SET `name` = 'NPC LOOT (White World Drop) - (Scrolls III) - (NPC Levels 40-55)' WHERE `entry` = 50602;
UPDATE `reference_loot_template_names` SET `name` = 'NPC LOOT (White World Drop) - (Scrolls IV) - (NPC Levels 55-62)' WHERE `entry` = 50603;

-- Table 'creature_loot_template' entry 1497 (creature entry) not exist but used as loot id in DB.
-- Table 'creature_loot_template' entry 3663 (creature entry) not exist but used as loot id in DB.
-- Table 'creature_loot_template' entry 11806 (creature entry) not exist but used as loot id in DB.
UPDATE `creature_template` SET `LootId` = 0 WHERE `entry` IN (1497,3663,11806);

63 changes: 63 additions & 0 deletions Updates/4521_WDB-5145_c.15308.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
-- Twilight Prophet 15308

-- northern group
-- https://github.com/cmangos/tbc-db/commit/52297eba87b4cfddd965324bd5977a55a69e2fef
-- The northern prophet has a respawn timer that varies between 25 and 30 minutes.
UPDATE creature SET id = 15308, spawntimesecsmin = 1500, spawntimesecsmax = 1800 WHERE guid = 44305; -- no idea whay someone removed her id?
UPDATE creature SET spawntimesecsmin = 300, spawntimesecsmax = 300 WHERE `guid` IN (44306,44307,44308,44309);
DELETE FROM creature_spawn_entry WHERE guid = 44305;

-- southern group
-- The southern prophet has a respawn timer that varies between 45 and 60 minutes.
REPLACE INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `MovementType`) VALUES
(42965, 11880, 1, 1, -7554.23, 1744.16, 5.8, 4.59986, 300, 300, 0, 0),
(44251, 11880, 1, 1, -7554.23, 1744.16, 5.8, 4.59986, 300, 300, 0, 0),
(44252, 11880, 1, 1, -7554.23, 1744.16, 5.8, 4.59986, 300, 300, 0, 0),
(42969, 11880, 1, 1, -7551.5, 1900.6, 5.8, 4.59986, 300, 300, 0, 0),
(43322, 15308, 1, 1, -7553.29, 1742.48, 6.15128, 0, 600, 600, 0, 2);
UPDATE creature SET id = 15308, spawntimesecsmin = 1500, spawntimesecsmax = 1800, spawndist = 0, MovementType = 0 WHERE guid = 43322;
UPDATE creature SET position_x = -7891.28, position_y = 1840.39, position_z = 3.55864, spawndist = 25, MovementType = 1 WHERE guid = 44253;
DELETE FROM creature_linking WHERE guid IN (42969,42965);
UPDATE creature SET position_x = -7549.471, position_y = 1734.0094, position_z = 11.4109 WHERE guid IN (43322,42969,42965,44251,44252);
UPDATE creature SET spawntimesecsmin = 300, spawntimesecsmax = 300 WHERE `guid` IN (42969,42965,44251,44252);
DELETE FROM creature_movement WHERE id IN (43322);
-- move them to spawn_group
DELETE FROM `spawn_group` WHERE id = 19923;
INSERT INTO `spawn_group` (`Id`, `Name`, `Type`, `MaxCount`, `WorldState`, `Flags`) VALUES
(19923, 'Silithus - Twilight Prophet | Twilight Avenger (2) Patrol 2', 0, 0, 0, 0);
DELETE FROM `spawn_group_spawn` WHERE id = 19923;
INSERT INTO `spawn_group_spawn` (`Id`, `Guid`, `SlotId`) VALUES
(19923, 43322, 0),
(19923, 42969, 1),
(19923, 42965, 2),
(19923, 44251, 3),
(19923, 44252, 4);
DELETE FROM `spawn_group_formation` WHERE id = 19923;
INSERT INTO `spawn_group_formation` (`Id`, `FormationType`, `FormationSpread`, `FormationOptions`, `PathId`, `MovementType`, `Comment`) VALUES
(19923, 4, 5, 0, 19923, 4, 'Silithus - Twilight Prophet | Twilight Avenger (5) Patrol 001');

DELETE FROM `waypoint_path_name` WHERE PathId = 19923;
INSERT INTO `waypoint_path_name` (`PathId`, `Name`) VALUES
(19923,'Silithus - Twilight Prophet | Twilight Avenger (2) Patrol 2');
DELETE FROM `waypoint_path` WHERE PathId = 19923;
INSERT INTO `waypoint_path` (`PathId`, `Point`, `PositionX`, `PositionY`,`PositionZ`, `Orientation`, `WaitTime`, `ScriptId`) VALUES
(19923,1,-7549.471,1734.0094,11.4109,100,0,0),
(19923,2,-7556.26,1716.11,9.25794,100,0,0),
(19923,3,-7569.13,1700.23,5.26954,100,0,0),
(19923,4,-7573.76,1690.55,5.40412,100,0,0),
(19923,5,-7587.85,1663.39,4.58791,100,0,0),
(19923,6,-7604.52,1641.43,2.11644,100,0,0),
(19923,7,-7617.34,1597.31,4.82266,100,0,0),
(19923,8,-7642.94,1584.59,5.54352,100,0,0),
(19923,9,-7642.94,1584.59,5.54352,100,0,0),
(19923,10,-7681.44,1586.52,1.4506,100,0,0),
(19923,11,-7706.44,1616.31,5.15801,100,0,0),
(19923,12,-7718.95,1641.69,8.05339,100,0,0),
(19923,13,-7746.64,1658.38,6.22475,100,0,0),
(19923,14,-7759.46,1688.8,1.56703,100,0,0),
(19923,15,-7779.92,1727.28,2.39467,100,0,0),
(19923,16,-7794.41,1772.41,-0.182124,100,0,0),
(19923,17,-7828.77,1804.55,2.45615,100,0,0),
(19923,18,-7863.18,1824.98,3.85917,100,0,0),
(19923,19,-7895.75,1843.03,3.25615,100,2000,0);

0 comments on commit 655f30b

Please sign in to comment.