-- "The Ley Wardens" -- a 6-quest, dialogue-only, no-combat intro chain (see PLAN.md's "v1.15" for
-- the full design). Completing quest 912005 becomes a hard prerequisite for the `.waygate` command
-- itself (see the C++ change in the same version) -- passive attunement stays completely unaffected,
-- only the command that opens the travel menu is gated. GM debug mode remains the only override.
--
-- Structure: each quest (except the finale) is accepted from one NPC and turned in to the *next*
-- leg's NPC, so the player is always moving forward across the world rather than shuttling back and
-- forth -- Aemos (Shattrath) -> Echo of the Ley Wardens (Eastern Kingdoms) -> Windcaller Tyese
-- (Kalimdor) -> Nazrek the Bent (Outland) -> The First Warden (Northrend) -> back to Aemos for the
-- return leg and the finale. Zero quest_objectives rows anywhere -- every quest completes on
-- reaching/talking to its designated turn-in NPC, no kill/collect/explore objectives.
DELETE FROM `quest_template` WHERE `ID` BETWEEN 912000 AND 912005;
INSERT INTO `quest_template`
    (`ID`, `QuestType`, `QuestLevel`, `MinLevel`, `RewardMoney`, `Flags`, `AllowableRaces`,
     `LogTitle`, `LogDescription`, `QuestDescription`, `AreaDescription`, `QuestCompletionLog`)
VALUES
    (912000, 2, 1, 1, 0, 0, 0,
     'The Waygate Stirs',
     'Aemos, a stone guardian newly and only partly awoken, believes another dormant waygate near Light''s Hope Chapel may answer if someone stands before it. Travel there and listen.',
     'For longer than it can measure, I have stood in silence above this city -- a shape no one thought to question anymore. Something has woken me. Not fully. Whole ages are still locked behind cracked runes and older quiet. But I remember enough to know I was not always alone, and that there are other stones like me, scattered across the world, waiting the same patient way I waited.\n\nGo to one of them. A ruin near Light''s Hope Chapel, in the Eastern Plaguelands. Touch nothing you do not have to. Simply be there, and listen.',
     'Light''s Hope Chapel',
     'Reach the ruin near Light''s Hope Chapel.'),
    (912001, 2, 1, 1, 0, 0, 0,
     'Echoes in Stone',
     'Travel to Cenarion Hold in Silithus and seek out anyone there who might know something of the Ley Wardens.',
     'I was a Ley Warden once -- or some sliver of one is what''s left of me here, worn down to memory and moss. I cannot tell you what the network was for. I can only tell you where the next piece of me is listening: in the far south, at Cenarion Hold, in Silithus.\n\nThe Cenarion Circle keeps old counsel with older things. If any living voice still remembers what my order left behind, it will be found there, not among the archives of the Kirin Tor -- they dismissed us as folklore generations ago, back when there was still someone left to argue the point.',
     'Cenarion Hold',
     'Reach Cenarion Hold in Silithus.'),
    (912002, 2, 1, 1, 0, 0, 0,
     'Older Than the Portal',
     'Travel to the Lower City in Shattrath and find whoever continued researching the Ley Wardens after the Cenarion Circle''s own trail went cold.',
     'The Circle''s oldest records only take the trail so far -- a scattering of standing stones, most already lost, tied to a discipline older than structured wizardry. Nature doesn''t file its knowledge the way the Kirin Tor do. It just remembers, in root and stone, longer than anyone expects.\n\nBut there''s a name in the margin of the oldest page, added later, in different ink: Shattrath. Lower City. Someone there apparently continued asking these questions after everyone else stopped. Find them.',
     'Shattrath City',
     'Find the researcher in Shattrath''s Lower City.'),
    (912003, 2, 1, 1, 0, 0, 0,
     'What the Dragons Remember',
     'Travel to Wyrmrest Temple in Dragonblight and learn what the dragonflights remember of the network before the Ley Wardens.',
     'The dragonflights keep their own accounting of the old world, longer and colder than anything my people or yours can offer. If a network like this ever touched Northrend before the Ley Wardens gave it a name, Wyrmrest Temple is where that memory would still be standing.\n\nGo carefully, but go. Some doors, once you knock on them, do not particularly care whether you were ready for the answer.',
     'Wyrmrest Temple',
     'Reach Wyrmrest Temple in Dragonblight.'),
    (912004, 2, 1, 1, 0, 0, 0,
     'The Long Way Home',
     'Return to Aemos in Shattrath and recount everything you''ve learned about the Ley Wardens and the network they built.',
     'There is nothing more I can tell you that Aemos does not already carry, somewhere beneath the silence it hasn''t broken yet. What you''ve heard -- from the chapel, the Circle, the Broken, and now from me -- is not new knowledge. It is old knowledge, finally given somewhere to land.\n\nReturn to Shattrath. Tell Aemos everything, in whatever order you like. I suspect it will remember the shape of it before you finish speaking.',
     'Shattrath City',
     'Return to Aemos in Shattrath.'),
    (912005, 2, 1, 1, 100, 0, 0,
     'The Network Reborn',
     'Stand with Aemos as it attempts to fully reawaken the waygate network.',
     'What you''ve carried back to me is the last piece I needed -- not information, precisely, though there was plenty of that. Continuity. The network was never just stone and old magic. It was a promise that distance didn''t have to mean disconnection, made by people -- and things like me -- who believed that was worth building toward, even when the ones building it agreed on very little else.\n\nStay. Witness. I am going to try to wake it all, not just myself, and I would rather not do that entirely alone.',
     'Shattrath City',
     'Witness the network''s reawakening.');

-- Chaining: quest N+1 requires quest N complete (PrevQuestID), quest N points forward (NextQuestID),
-- both directions needed. Quest 1 has no prerequisite; quest 6 has no successor.
DELETE FROM `quest_template_addon` WHERE `ID` BETWEEN 912000 AND 912005;
INSERT INTO `quest_template_addon` (`ID`, `PrevQuestID`, `NextQuestID`) VALUES
    (912000, 0, 912001),
    (912001, 912000, 912002),
    (912002, 912001, 912003),
    (912003, 912002, 912004),
    (912004, 912003, 912005),
    (912005, 912004, 0);

-- RewardText: spoken by the GIVER on the accept screen, before the player commits to the quest.
DELETE FROM `quest_offer_reward` WHERE `ID` BETWEEN 912000 AND 912005;
INSERT INTO `quest_offer_reward` (`ID`, `RewardText`) VALUES
    (912000, 'Go safely. Whatever wakes there, it will not harm you -- the network was never built to hurt the ones it was meant to carry.'),
    (912001, 'Go. I will still be here when -- if -- you come back this way. Echoes are patient. It is the one thing we are good at.'),
    (912002, 'Whatever you find there, come back and tell us. We like knowing how our old stories end.'),
    (912003, 'Go. And traveler -- when you finally understand what you''re carrying, remember that an old broken thing sent you gladly, and asked for nothing back.'),
    (912004, 'Go. And traveler -- thank you. It is a strange thing, to be remembered by someone who was never told to bother.'),
    (912005, 'Stand back, if you''d like. Or don''t. I don''t believe this will hurt.');

-- CompletionText: spoken by the ENDER on approach with the quest ready to turn in, before the
-- reward screen. This is the primary lore payload of the chain -- each one reveals the next thread
-- to pull. Quest 912005's is the reactivation moment itself.
DELETE FROM `quest_request_items` WHERE `ID` BETWEEN 912000 AND 912005;
INSERT INTO `quest_request_items` (`ID`, `CompletionText`) VALUES
    (912000, '...another. After all this time, another who still listens. I am only an echo, traveler -- what I was is mostly gone, worn thin by centuries of quiet. But I remember a name, and I remember that it mattered. Aemos. Tell it: the wardens have not entirely forgotten how to speak.'),
    (912001, 'Ley Wardens. Now there''s a name I haven''t heard spoken aloud in a long while -- the Circle keeps records the Kirin Tor never bothered to ask for, and yours is in them, traveler. Faded ink, older than most of what''s shelved beside it. Whatever''s waking in the north, it isn''t nothing. But the trail doesn''t end with us -- it runs further back than even we can account for. Through the Dark Portal. Someone in Shattrath''s Lower City will know why.'),
    (912002, 'So. The stones are stirring again. I wondered if I would live to see it -- though ''live'' is a generous word for what centuries of fel-scarring leaves behind.\n\nYour Ley Wardens were not the first to walk this path, traveler. Long before the Portal opened, before Draenor was Outland, before even my people fell, something else moved between distant places the same way -- older, stranger, and far less concerned with being understood. Your order found an echo of it. They didn''t invent the network. They inherited it. There is a place in the far north -- Wyrmrest Temple, in Dragonblight -- where that inheritance runs deepest. Go. Ask what''s left there what it remembers.'),
    (912003, 'You''ve come a long way to stand in front of yourself and not recognize it.\n\nI am not separate from Aemos, traveler -- I am what it was, before ages of silence wore the difference away. A memory it cast out here, long ago, to keep some part of itself safe from forgetting entirely. It worked, after a fashion. I remembered. It didn''t.\n\nGo back to it now. Tell it what you''ve learned, all of it -- the chapel, the Circle, the Broken, the dragons. Let it hear its own story from someone who isn''t it. I think... I think that''s the only way the rest of it wakes up.'),
    (912004, '...the chapel. The Circle. The Broken. Dragons, keeping watch over something they inherited and never fully understood. I remember all of it now, traveler -- not as a story you told me, but as something that was always mine, waiting only for someone to carry it back far enough for me to reach.\n\nI am whole again. Or as whole as a thing like me gets to be. Stay a moment. There is one more thing the network needs before it can wake fully -- and it does not need distance this time. Only a witness.'),
    (912005, 'There. Felt that? Stone waking up in a dozen places at once, all of it remembering the same thing at the same time, for the first time in longer than either of us can measure.\n\nIt''s yours now too, traveler -- not mine to keep, not anymore. Say the word, anywhere you''ve stood before, and the network will carry you. Go carefully. Go far. And when you find one of the old stones still sleeping somewhere I haven''t reached -- and you will -- tell it Aemos sent you. It will understand.');

-- Wiring: which NPC offers each quest, which NPC accepts its turn-in. 912005 is the one case where
-- both are the same NPC (Aemos), since the finale happens entirely at the Terrace of Light.
DELETE FROM `creature_queststarter` WHERE `quest` BETWEEN 912000 AND 912005;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
    (911002, 912000),
    (911003, 912001),
    (911004, 912002),
    (911005, 912003),
    (911006, 912004),
    (911002, 912005);

DELETE FROM `creature_questender` WHERE `quest` BETWEEN 912000 AND 912005;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
    (911003, 912000),
    (911004, 912001),
    (911005, 912002),
    (911006, 912003),
    (911002, 912004),
    (911002, 912005);
