Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Scripts/Karazhan) Nightbane take off phase handling #18934

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix intro, refactor fly to air, handle waypoints, air facing, urn,...
  • Loading branch information
sogladev committed May 30, 2024
commit 5858f10950b0f0f70420df549e4c54203f2edd89
35 changes: 9 additions & 26 deletions data/sql/updates/pending_db_world/rev_1716758365231980439.sql
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
--
-- FORCE_GOSSIP
UPDATE `creature_template` SET `type_flags` = `type_flags` | 134217728 WHERE (`entry` = 17225);
UPDATE `creature_template` SET `movementId` = 1988 WHERE (`entry` = 17225);

-- Intro path
DELETE FROM `waypoints` WHERE `entry` = 172250;
-- INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES
-- (172250, 1, -11105.76, -1875.8998, 158.97804, NULL, 0),
-- (172250, 2, -11175.097, -1857.2238, 101.00588, NULL, 0),
-- (172250, 3, -11296.927, -1764.5311, 101.00588, NULL, 0),
-- (172250, 4, -11258.901, -1722.3717, 101.00588, NULL, 0),
-- (172250, 5, -11176.764, -1809.5985, 101.00588, NULL, 0),
-- (172250, 6, -11191.107, -1889.3965, 107.89479, NULL, 0),
-- (172250, 7, -11152.18, -1863.318, 101.00588, NULL, 0),
-- (172250, 8, -11130.677, -1891.4235, 107.89634, NULL, 0),
-- (172250, 9, -11110.674, -1878.7712, 107.89686, NULL, 0);
UPDATE `creature_template` SET `detection_range` = 40, `type_flags` = `type_flags` | 134217728, `movementId` = 1988 WHERE `entry` = 17225;

-- Intro
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice to see this. 👀

DELETE FROM `waypoint_data` WHERE `id` = 172250;
Expand All @@ -29,20 +15,17 @@ INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `positio
(172250, 8, -11130.677, -1891.4235, 107.89634, NULL, 0, 2, 0, 100, 0),
(172250, 9, -11110.674, -1878.7712, 107.89686, NULL, 0, 2, 0, 100, 0);

-- Landing East side circle and landing
-- Landing
DELETE FROM `waypoint_data` WHERE `id` = 172251;
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(172251, 1, -11117.73, -1941.261, 127.172, NUll, 0, 2, 0, 100, 0),
(172251, 2, -11123.78, -1968.243, 125.922, NUll, 0, 2, 0, 100, 0),
(172251, 3, -11148.34, -1972.98, 116.6997, NUll, 0, 2, 0, 100, 0),
(172251, 4, -11161.62, -1945.725, 103.0886, NUll, 0, 2, 0, 100, 0),
(172251, 5, -11168.01, -1922.905, 97.39415, NUll, 0, 2, 0, 100, 0),
(172251, 6, -11162.23, -1900.329, 94.72747, NUll, 0, 2, 0, 100, 0);

-- Landing
(172251, 1, -11117.731, -1941.2609, 127.17197, NUll, 0, 2, 0, 100, 0),
(172251, 2, -11123.777, -1968.243, 125.92196, NUll, 0, 2, 0, 100, 0),
(172251, 3, -11148.344, -1972.9801, 116.69972, NUll, 0, 2, 0, 100, 0),
(172251, 4, -11161.62, -1945.7255, 103.08859, NUll, 0, 2, 0, 100, 0),
(172251, 5, -11168.009, -1922.9045, 97.39415, NUll, 0, 2, 0, 100, 0),
(172251, 6, -11162.231, -1900.3287, 94.72747, NUll, 0, 2, 0, 100, 0);

-- Nightbane helper target
UPDATE `creature_template` SET `type_flags` = `type_flags` | 134217728, `movementId` = 1693, `ScriptName` = 'npc_nightbane_helper_target' WHERE (`entry` = 17260);

UPDATE `creature_template` SET `type_flags` = `type_flags` | 134217728, `movementId` = 1693, `ScriptName` = 'npc_nightbane_helper_target' WHERE `entry` = 17260;
-- Remove extra helper on the roof
DELETE FROM `creature` WHERE `guid` = 135676;
Loading
Loading