Omnium Folio

This commit is contained in:
luis
2026-11-15 09:59:41 -03:00
parent a39762d6d8
commit 9efeff119f
8 changed files with 1196 additions and 10 deletions
@@ -0,0 +1,49 @@
DELETE FROM `broadcast_text` WHERE `VerifiedBuild`>0 AND `ID` IN (310501, 311547, 311535, 311057, 311060, 311055, 311530, 311052, 311051, 312694, 311049, 311048, 311069, 311450, 314231);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('My patience is at its end. If the Amani cannot handle this threat, then the sin\'dorei will.', '', 310501, 0, 0, 0, 256, 0, 4, 355158, 0, 0, 0, 0, 0, 0, 0, 70783),
('This is no time for diplomacy. We must strike before the aqir attack again.', '', 311547, 0, 0, 0, 258, 0, 4, 355156, 0, 0, 0, 0, 0, 0, 0, 70783),
('We will do whatever we can to ensure the people of Silvermoon know peace.', '', 311535, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('We will finish what the Amani started!', '', 311057, 0, 0, 0, 256, 0, 4, 355151, 0, 0, 0, 0, 0, 0, 0, 70783),
('More... will come... Prepare... for Kith\'ix...', '', 311060, 0, 0, 0, 256, 0, 4, 355152, 0, 0, 0, 0, 0, 0, 0, 70783),
('You and the foolish Amani stand no chance against Kith\'ix!', '', 311055, 0, 0, 0, 256, 0, 4, 355150, 0, 0, 0, 0, 0, 0, 0, 70783),
('Push through the swarms! We have to reach Lor\'themar!', '', 311530, 0, 0, 0, 256, 0, 4, 355149, 0, 0, 0, 0, 0, 0, 0, 70783),
('Kith\'ix will fall to the might of Silvermoon!', '', 311052, 0, 0, 0, 256, 0, 4, 355148, 0, 0, 0, 0, 0, 0, 0, 70783),
('Kith\'ix awakens! All of the lands will tremble in his wake!', '', 311051, 0, 0, 0, 256, 0, 4, 355146, 0, 0, 0, 0, 0, 0, 0, 70783),
('Rescue any civilians you can and get to the front gates. I\'ll rally the city guard!', '', 312694, 0, 0, 396, 256, 0, 4, 355145, 0, 0, 0, 0, 0, 0, 0, 70783),
('Defenders of Silvermoon! Give these monsters no quarter!', '', 311049, 0, 0, 0, 256, 0, 4, 355144, 0, 0, 0, 0, 0, 0, 0, 70783),
('Kith\'ix rises from the serpent\'s grave! This land will tremble in his wake!', '', 311048, 0, 0, 0, 256, 0, 4, 355143, 0, 0, 0, 0, 0, 0, 0, 70783),
('Do you hear that? The aqir are in the city!', '', 311069, 0, 0, 0, 256, 0, 4, 355142, 0, 0, 0, 0, 0, 0, 0, 70783),
('The aqir travel in swarms. More must be nearby if this was found within the city.\n\nThey may even be right below our feet as we speak.', '', 311450, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('I\'m here to help with the investigation and ensure no one else gets too close to the corpse.', 'I\'m here to help with the investigation and ensure no one else gets too close to the corpse.', 314231, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783);
DELETE FROM `broadcast_text` WHERE `VerifiedBuild`>0 AND `ID` IN (310511, 310510, 310508, 310507, 310598, 311449, 314802, 314801, 310597, 311439, 314800, 310599, 310506, 311447, 310505, 310503, 310530, 310504, 315989, 318440, 315961);
INSERT INTO `broadcast_text` (`Text`, `Text1`, `ID`, `LanguageID`, `ConditionID`, `EmotesID`, `Flags`, `ChatBubbleDurationMs`, `VoiceOverPriorityID`, `SoundKitID1`, `SoundKitID2`, `EmoteID1`, `EmoteID2`, `EmoteID3`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `VerifiedBuild`) VALUES
('', 'The loa\'s eyes are upon you, elves. Do not make me regret this.', 310511, 0, 0, 0, 256, 0, 4, 0, 355180, 0, 0, 0, 0, 0, 0, 70783),
('', 'We\'ll attack by sea. A small force, not an entire army.', 310510, 0, 0, 0, 256, 0, 4, 0, 355179, 0, 0, 0, 0, 0, 0, 70783),
('Kith\'ix must die, and the Amani will not stand in our way.', '', 310508, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('', 'Dat is far enough, elf! Your army will not set foot in Zul\'Aman!', 310507, 0, 0, 0, 256, 0, 4, 0, 355170, 0, 0, 0, 0, 0, 0, 70783),
('', 'Lor\'themar still sees threats in every shadow. The Amani need not be his enemy any longer.', 310598, 0, 0, 0, 256, 0, 4, 0, 355163, 0, 0, 0, 0, 0, 0, 70783),
('', 'A great many dangers lay dormant within our world. I can only hope that we can weather this latest awakening.\n\n<Orweyna looks on, her expression grim.>', 311449, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('', 'Fall back! Secure the pass!', 314802, 0, 0, 0, 256, 0, 4, 0, 355166, 0, 0, 0, 0, 0, 0, 70783),
('', 'Retreat to the pass! The elves are advancing!', 314801, 0, 0, 0, 256, 0, 4, 0, 355167, 0, 0, 0, 0, 0, 0, 70783),
('Kith\'ix has to be dealt with. But if Lor\'themar isn\'t careful, he\'ll just be trading one crisis for another.', '', 310597, 0, 0, 0, 256, 0, 4, 355161, 0, 0, 0, 0, 0, 0, 0, 70783),
('We\'ve fought back the Legion and the Devouring Host. I thought I\'d be ready for anything at this point, but the aqir are something else entirely.', '', 311439, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('', 'More swarms from the south! Reinforce the lower stair!', 314800, 0, 0, 0, 256, 0, 4, 0, 355168, 0, 0, 0, 0, 0, 0, 70783),
('Lor\'themar is right. If we do not act now, then we place all of Quel\'Thalas at risk.', '', 310599, 0, 0, 0, 256, 0, 4, 355162, 0, 0, 0, 0, 0, 0, 0, 70783),
('What would you have me do? Kith\'ix must die, no matter the consequence.', '', 310506, 0, 0, 0, 256, 0, 4, 355165, 0, 0, 0, 0, 0, 0, 0, 70783),
('I\'m in no hurry to start another troll war. But the safety of Quel\'Thalas is paramount. If Lor\'themar says we march, then we march.', '', 311447, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('', 'Lor\'themar, this is an act of war! Zul\'jarra will not stand for this.', 310505, 0, 0, 0, 256, 0, 4, 0, 355164, 0, 0, 0, 0, 0, 0, 70783),
('', 'Aid the Amani before they\'re torn apart!', 310503, 0, 0, 603, 256, 0, 4, 0, 355160, 0, 0, 0, 0, 0, 0, 70783),
('', 'Kith\'ix presents a threat to us all, but the hostility between elves and trolls may undo us before we\'ve even begun to fight.\n\nI do not expect generations of hatred to heal overnight. My hands aren\'t clean in all of this either. But someone has to take the first step forward if we are all to survive.', 310530, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('Advance! Let nothing through!', '', 310504, 0, 0, 5, 256, 0, 4, 355159, 0, 0, 0, 0, 0, 0, 0, 70783),
('', 'I\'ve been studying the aqir for years! I never thought I\'d get a chance to witness an invasion myself.\n\nThis is a great opportunity to make new strides in our research on these strange beasts.', 315989, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('Indeed. The aqir offensive is happening in both Eversong Woods and Zul\'Aman.\n\nI have enlisted the aid of two local aqir researchers. Their enthusiasm is concerning, but they are experts in their studies.\n\nFend off the aqir wherever you see them. They seem to launch their attacks every hour, as if driven by some mindless purpose.\n\nSpeak with our researchers to see what they have available from the coffers to reward you for your efforts.', '', 318440, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783),
('The aqir threaten all of our lands.\n\nWe must push them back wherever we find them.', '', 315961, 0, 0, 0, 256, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 70783);
UPDATE `broadcast_text` SET `VerifiedBuild`=70783 WHERE `VerifiedBuild`>0 AND `ID` IN (314923, 315121, 314998, 318202, 314900, 314744, 310357, 310356, 314685, 314678, 294685, 294686, 294677, 294676, 294643, 302098, 303329, 302096, 303334, 303333, 294642, 294641, 294511, 297473, 289253, 289251, 289250, 284358, 289248, 289213, 289212, 300672, 289234, 289211, 300671, 291645, 291616, 291597, 291596, 291595, 291584, 290950, 300985, 300973, 300979, 301005, 291310, 301006, 291309, 290915, 291307, 290906, 291311, 290916, 289162, 289160, 289159, 289158, 289157, 289153, 289152, 315305, 313761);
UPDATE `broadcast_text` SET `Text1`='Enough with the suspense. How fares Magister Aradis?', `VerifiedBuild`=70783 WHERE `VerifiedBuild`>0 AND `ID`=288754;
UPDATE `broadcast_text` SET `Text`='Help Nema\'s crew open the sarcophagus.', `Text1`='Help Nema\'s crew open the sarcophagus.', `VerifiedBuild`=70783 WHERE `VerifiedBuild`>0 AND `ID`=317831;
UPDATE `broadcast_text` SET `Text1`='Nashabor. Settlement of Blades. It is a world of natural beauty. Crimson salt plains give way to cool, purple lakes. Our rivers are choked with huge, sturdy lily pads. The sight of a draenei napping upon one, drifting downstream is common in times of peace. Our young learn to fight early, far earlier than they did on Argus. Martial and arcane skill is essential to survive attacks from its great, intelligent beasts.\n\nWe have been through cycles of strife and renewal. We have made unlikely allies of Legion defectors who live among us in small number. And we have largely rejected the forces that began our great flight in the first place--be they fel, Void, or Light.\n\nOur sayaad are naturals at jed\'hin. They are a pleasure to spectate.', `VerifiedBuild`=70783 WHERE `VerifiedBuild`>0 AND `ID`=291782;
@@ -1038,12 +1038,6 @@ INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(228260, 'spell_pri_voidform'),
(194249, 'spell_pri_voidform_aura');
-- Void Volley and Voidform 1 last only as long as Voidform, which is not saved
DELETE FROM `spell_custom_attr` WHERE `entry` IN (1242171, 210199);
INSERT INTO `spell_custom_attr` (`entry`, `attributes`) VALUES
(1242171, 16777216), -- SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED
(210199, 16777216); -- SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED
DELETE FROM `creature` WHERE `guid`=905192;
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseUseFlags`, `PhaseId`, `PhaseGroup`, `terrainSwapMap`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curHealthPct`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (905192, 240266, 0, 15969, 16099, '0', 0, 0, 0, -1, 0, 0, 9153.56, -4459.18, 5.36223, 4.35503, 300, 0, 0, 100, 0, NULL, NULL, NULL, NULL, '', NULL, 0);
File diff suppressed because it is too large Load Diff
@@ -33,6 +33,7 @@
#include "Mail.h"
#include "MapUtils.h"
#include "ObjectMgr.h"
#include "OmniumFolioMgr.h"
#include "RBAC.h"
#include "ScriptMgr.h"
#include "StringConvert.h"
@@ -616,6 +617,12 @@ void PlayerAchievementMgr::CompletedAchievement(AchievementEntry const* achievem
sScriptMgr->OnAchievementCompleted(referencePlayer, achievement);
// Omnium Folio: mint the folio trait config as soon as the unlock
// achievement ("The Sunstrider Omnium") is earned so the rune UI opens
// without requiring a relog. EnsureFolioForPlayer is idempotent.
if (achievement->ID == OmniumFolioMgr::UNLOCK_ACHIEVEMENT_ID)
sOmniumFolioMgr->EnsureFolioForPlayer(_owner);
// reward items and titles if any
AchievementReward const* reward = sAchievementMgr->GetAchievementReward(achievement);
@@ -15685,6 +15685,12 @@ void Player::RewardQuest(Quest const* quest, LootItemType rewardType, uint32 rew
SetQuestCompletedBit(quest_id, true);
// Omnium Folio: turning in "Seeking Knowledge" (96410) is the retail unlock
// moment for the rune UI -- the generic trait config (TraitSystem 48) is
// minted here so the client receives it in the same update burst.
if (quest_id == OmniumFolioMgr::UNLOCK_QUEST_ID)
sOmniumFolioMgr->EnsureFolioForPlayer(this);
//WowCommunity
// Phase 10F - if this quest is a Campaign.Completed marker, auto-grant the
+11
View File
@@ -18,6 +18,7 @@
#include "WorldSession.h"
#include "Battleground.h"
#include "DB2Stores.h"
#include "OmniumFolioMgr.h"
#include "Player.h"
#include "SpellHistory.h"
#include "TraitMgr.h"
@@ -141,7 +142,17 @@ void WorldSession::HandleTraitsCommitConfig(WorldPackets::Traits::TraitsCommitCo
else if (UF::TraitConfig const* savedConfig = _player->GetTraitConfig(traitsCommitConfig.SavedLocalIdentifier))
newConfigState.LocalIdentifier = savedConfig->LocalIdentifier;
bool const isFolioRuneCommit = newConfigState.Type == TraitConfigType::Generic
&& sOmniumFolioMgr->IsFolioTraitSystem(newConfigState.TraitSystemID)
&& std::ranges::any_of(newConfigState.Entries, [](WorldPackets::Traits::TraitEntry const& entry) { return entry.Rank > 0; });
_player->UpdateTraitConfig(std::move(newConfigState), traitsCommitConfig.SavedConfigID, needsCastTime);
// Omnium Folio quest (96410 "Seeking Knowledge"): the "empower your first
// rune" objective is a kill-credit NPC granted when the player ranks a
// node in the folio's generic trait config.
if (isFolioRuneCommit)
_player->KilledMonsterCredit(265203 /* [DNT] Kill Credit: Empower your First Rune */);
}
void WorldSession::HandleClassTalentsRequestNewConfig(WorldPackets::Traits::ClassTalentsRequestNewConfig& classTalentsRequestNewConfig)
@@ -187,10 +187,13 @@ void OmniumFolioMgr::EnsureFolioForPlayer(Player* player)
if (!player || !_enabled)
return;
// Eligibility gate. The unlock questline ("The Magisters' Call" -> "The Omnium
// Reawakens") that AWARDS achievement 62606 is CAPTURE-BLOCKED world content
// seeded later; keying on the confirmed achievement id keeps this code stable.
if (!player->HasAchieved(UNLOCK_ACHIEVEMENT_ID))
// Eligibility gate. Retail unlocks the folio UI on turn-in of quest 96410
// ("Seeking Knowledge"), which is itself gated behind achievement 62606
// ("The Sunstrider Omnium", earned from quest 96233 "The Omnium Reawakens").
// Accept either key: the achievement covers the login path for characters who
// finished the chain before this hook existed, the quest covers turn-in even
// if the achievement criteria never fired.
if (!player->HasAchieved(UNLOCK_ACHIEVEMENT_ID) && !player->IsQuestRewarded(UNLOCK_QUEST_ID))
return;
bool const hasConfig = HasFolioConfig(player);
@@ -76,6 +76,12 @@ public:
// it is CAPTURE-BLOCKED content seeded later; the achievement id is the stable key.
// No schedule column exists for it, so it stays a constant.
static constexpr uint32 UNLOCK_ACHIEVEMENT_ID = 62606;
// Quest 96410 "Seeking Knowledge Week 1 of 5: The Omnium Folio" is the turn-in
// that delivers the folio (retail: SMSG_UPDATE_OBJECT with the generic trait
// config arrives right after this quest's QUEST_UPDATE_COMPLETE). Accepted as an
// alternative eligibility key so characters whose achievement criteria did not
// fire still unlock, and as the live trigger hooked from Player::RewardQuest.
static constexpr uint32 UNLOCK_QUEST_ID = 96410;
// Loads the (optional) seasonal schedule for this fork. Realm-safe: absent
// table/row => system stays idle and definitions still ride TraitMgr.
@@ -102,6 +108,10 @@ public:
uint32 GetCurrentSeasonId() const { return _seasonId; }
bool IsEnabled() const { return _enabled; }
// True when the folio system is enabled and traitSystemId is the folio's
// (schedule-driven) system. Used to spot folio trait config commits.
bool IsFolioTraitSystem(int32 traitSystemId) const { return _enabled && traitSystemId == _traitSystemId; }
private:
OmniumFolioMgr() = default;
~OmniumFolioMgr() = default;