mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 10:03:47 +00:00
fix(DB/Quest): Mission Accomplished! (#8328)
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1633588844878179667');
|
||||
|
||||
-- Horde side Mission Accomplished! [5238] quests now have the blizz order
|
||||
UPDATE `quest_template_addon` SET `PrevQuestID` = 5236 WHERE (`ID` = 5238);
|
||||
|
||||
-- Alliance side Mission Accomplished! [5237] quests now have the blizz order
|
||||
UPDATE `quest_template_addon` SET `PrevQuestID` = 5226 WHERE (`ID` = 5237);
|
||||
|
||||
-- Faction
|
||||
|
||||
-- FLAGS
|
||||
-- Alliance 1 Human , 4 Dwarf, 8 Night Elf, 64 Gnome ,1024 Draenei
|
||||
-- Horde 2 Orc , 16 Undead, 32 Tauren, 128 Troll, 512 Blood Elf
|
||||
|
||||
-- Alliance Mission Accomplished! [5237]
|
||||
-- Remove first horde flags and add alliance flags after
|
||||
UPDATE `quest_template` SET `AllowableRaces` = `AllowableRaces`&~(2|16|32|128|512) WHERE (`ID` = 5237);
|
||||
UPDATE `quest_template` SET `AllowableRaces` = `AllowableRaces`|1|4|8|64|1024 WHERE (`ID` = 5237);
|
||||
|
||||
-- Horde Mission Accomplished! [5238]
|
||||
-- Remove first alliance flags and add horde flags after
|
||||
UPDATE `quest_template` SET `AllowableRaces` = `AllowableRaces`&~(1|4|8|64|1024) WHERE (`ID` = 5238);
|
||||
UPDATE `quest_template` SET `AllowableRaces` = `AllowableRaces`|2|16|32|128|512 WHERE (`ID` = 5238);
|
||||
|
||||
-- Quest givers and quest enders are switched
|
||||
|
||||
-- Switched from Commander Ashlam Valorfist to High Executor Derrington
|
||||
DELETE FROM `creature_queststarter` WHERE (`quest` = 5238) AND (`id` IN (10838, 10837));
|
||||
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
|
||||
(10837, 5238);
|
||||
|
||||
DELETE FROM `creature_questender` WHERE (`quest` = 5238) AND (`id` IN (10838, 10837));
|
||||
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
|
||||
(10837, 5238);
|
||||
|
||||
-- Switched from High Executor Derrington to Commander Ashlam Valorfist
|
||||
DELETE FROM `creature_queststarter` WHERE (`quest` = 5237) AND (`id` IN (10837, 10838));
|
||||
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
|
||||
(10838, 5237);
|
||||
|
||||
DELETE FROM `creature_questender` WHERE (`quest` = 5237) AND (`id` IN (10837, 10838));
|
||||
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
|
||||
(10838, 5237);
|
||||
Reference in New Issue
Block a user