DungeonPreQuest: mark talk-only steps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-11-10 13:20:56 +00:00
parent d98cf3392c
commit 801608e066
3 changed files with 87 additions and 23 deletions

View file

@ -37,6 +37,7 @@ ns.quests = {
[389]={15,1,0},
[707]={17,1,0},
[720]={17,1,0},
[721]={17,1,0},
[723]={17,1,0},
[724]={17,1,0},
[725]={17,1,0},
@ -58,6 +59,7 @@ ns.quests = {
[1152]={10,2,0},
[1154]={10,2,0},
[1159]={10,2,0},
[1198]={1,1,0},
[1424]={16,2,0},
[1429]={16,2,0},
[1444]={16,2,0},
@ -67,10 +69,13 @@ ns.quests = {
[1451]={16,1,0},
[1452]={16,1,0},
[1469]={16,1,0},
[1489]={18,2,0},
[1490]={18,2,0},
[1649]={0,1,2},
[1650]={0,1,2},
[1651]={0,1,2},
[1652]={0,1,2},
[1653]={0,1,2},
[1793]={0,1,2},
[1794]={0,1,2},
[1947]={0,3,128},
@ -80,15 +85,29 @@ ns.quests = {
[1954]={0,3,128},
[1955]={0,3,128},
[2041]={14,1,0},
[2198]={17,1,0},
[2200]={17,1,0},
[2258]={17,2,0},
[2284]={17,2,0},
[2318]={17,2,0},
[2338]={17,2,0},
[2398]={17,1,0},
[2500]={17,1,0},
[2769]={19,1,0},
[2842]={5,2,0},
[2861]={19,3,0},
[2864]={19,3,0},
[2923]={5,1,0},
[2925]={5,1,0},
[2927]={5,1,0},
[2931]={5,1,0},
[2933]={19,2,0},
[2934]={19,2,0},
[2935]={19,2,0},
[2988]={19,1,0},
[2989]={19,1,0},
[2990]={19,1,0},
[3380]={16,2,0},
[3441]={2,3,0},
[3442]={2,3,0},
[3443]={2,3,0},
@ -101,16 +120,23 @@ ns.quests = {
[3463]={2,3,0},
[3481]={2,3,0},
[3520]={3,3,0,16,3,0,19,3,0},
[3523]={8,3,0},
[3527]={3,3,0,16,3,0},
[3528]={3,3,0},
[3701]={2,1,0},
[3702]={2,1,0},
[3765]={1,1,0},
[3801]={2,3,0},
[3906]={2,2,0},
[3981]={2,2,0},
[4002]={2,2,0},
[4022]={2,3,0},
[4023]={2,3,0},
[4061]={2,2,0},
[4062]={2,2,0},
[4122]={2,2,0},
[4128]={2,1,0},
[4133]={2,2,0},
[4141]={0,1,0},
[4142]={0,1,0},
[4145]={0,2,0},
@ -123,23 +149,32 @@ ns.quests = {
[4186]={2,1,0,3,1,0},
[4223]={2,1,0,3,1,0},
[4224]={2,1,0,3,1,0},
[4241]={3,1,0},
[4242]={3,1,0},
[4241]={2,1,0,3,1,0},
[4242]={2,1,0,3,1,0},
[4262]={2,1,0},
[4264]={3,1,0},
[4264]={2,1,0,3,1,0},
[4282]={3,1,0},
[4322]={3,1,0},
[4726]={0,3,0,3,3,0,11,3,0},
[4734]={0,3,0,11,3,0},
[4735]={0,3,0,11,3,0},
[4324]={2,3,0},
[4341]={2,1,0},
[4361]={2,1,0},
[4726]={3,3,0,11,3,0},
[4734]={11,3,0},
[4735]={11,3,0},
[4766]={3,1,0},
[4769]={3,2,0},
[4787]={3,3,0,16,3,0},
[4808]={0,3,0,3,3,0,11,3,0},
[4809]={0,3,0,3,3,0,11,3,0},
[4810]={0,3,0,3,3,0,11,3,0},
[4907]={0,3,0,11,3,0},
[4808]={3,3,0,11,3,0},
[4809]={3,3,0,11,3,0},
[4810]={3,3,0,11,3,0},
[4907]={3,3,0,11,3,0},
[4941]={3,2,0},
[4981]={3,2,0},
[5002]={3,1,0},
[5065]={3,3,0},
[5089]={3,1,0},
[5126]={3,3,67},
[5262]={13,3,0},
[5281]={13,3,0},
[5382]={13,3,0},
[5384]={13,3,0},
@ -151,6 +186,7 @@ ns.quests = {
[5515]={13,3,0},
[5522]={11,3,0},
[5527]={0,3,0},
[5531]={11,3,0},
[5542]={13,3,0},
[5543]={13,3,0},
[5544]={13,3,0},
@ -169,6 +205,9 @@ ns.quests = {
[6402]={3,1,0},
[6403]={3,1,0},
[6501]={3,1,0},
[6522]={8,2,0},
[6562]={1,2,0},
[6564]={1,2,0},
[6566]={3,2,0},
[6567]={3,2,0},
[6568]={3,2,0},
@ -179,6 +218,8 @@ ns.quests = {
[6585]={3,2,0},
[6601]={3,2,0},
[6627]={10,2,0},
[7492]={4,2,0},
[7494]={4,1,0},
[7562]={0,3,256},
[7563]={0,3,256},
[7564]={0,3,256},
@ -210,11 +251,6 @@ ns.quests = {
[8254]={0,3,16},
[8255]={0,3,16},
[8256]={0,3,16},
[8286]={16,3,0},
[8288]={16,3,0},
[8301]={16,3,0},
[8303]={16,3,0},
[8305]={16,3,0},
[8410]={0,2,64},
[8411]={0,2,64},
[8412]={0,2,64},
@ -227,8 +263,6 @@ ns.quests = {
[8421]={0,3,256},
[8423]={0,3,1},
[8424]={0,3,1},
[8519]={16,3,0},
[8555]={16,3,0},
[8905]={2,1,1024,3,1,1024,4,1,1024,11,1,1024,13,1,1024},
[8906]={2,1,4,3,1,4,4,1,4,11,1,4,13,1,4},
[8907]={2,1,128,3,1,128,4,1,128,11,1,128,13,1,128},
@ -272,7 +306,7 @@ ns.quests = {
[8945]={0,1,1439,0,2,1501,2,3,0,3,1,1439,3,2,1501,4,3,0,11,1,1439,11,2,1501},
[8946]={0,1,1439,0,2,1501,2,3,0,3,1,1439,3,2,1501,4,3,0,11,1,1439,11,2,1501,13,1,1439,13,2,1501},
[8947]={0,1,1439,0,2,1501,2,3,0,3,1,1439,3,2,1501,4,3,0,11,1,1439,11,2,1501,13,1,1439,13,2,1501},
[8948]={0,1,1439,0,2,1501,2,3,0,3,1,1439,3,2,1501,11,1,1439,11,2,1501,13,1,1439,13,2,1501},
[8948]={0,1,1439,0,2,1501,2,3,0,3,1,1439,3,2,1501,4,3,0,11,1,1439,11,2,1501,13,1,1439,13,2,1501},
[8949]={0,1,1439,0,2,1501,2,3,0,3,1,1439,3,2,1501,11,1,1439,11,2,1501,13,1,1439,13,2,1501},
[8950]={0,1,1439,0,2,1501,2,3,0,3,1,1439,3,2,1501,11,1,1439,11,2,1501,13,1,1439,13,2,1501},
[8951]={3,1,1024,4,1,1024,11,1,1024,13,1,1024},

View file

@ -103,10 +103,13 @@ for k, v in pairs(modules) do
end
local WANT = { "name", "questLevel", "requiredRaces", "requiredClasses", "preQuestGroup", "preQuestSingle",
"zoneOrSort", "nextQuestInChain", "breadcrumbForQuestId", "breadcrumbs", "objectives", "specialFlags" }
"zoneOrSort", "nextQuestInChain", "breadcrumbForQuestId", "breadcrumbs", "objectives", "triggerEnd", "finishedBy", "specialFlags" }
local wanted = {}
for _, n in ipairs(WANT) do wanted[realKeys[n]] = true end
-- These hold one list per kind of thing, and an edit can skip a kind.
local grouped = { [realKeys.objectives] = true, [realKeys.finishedBy] = true }
local function contains(list, v) for _, x in ipairs(list) do if x == v then return true end end return false end
local changed = {}
@ -120,7 +123,15 @@ local function apply(id, fixes)
else sets[k] = v end
end
for k, v in pairs(removes) do
if wanted[k] and type(row[k]) == "table" and type(v) == "table" then
if grouped[k] and type(row[k]) == "table" and type(v) == "table" then
for g, list in pairs(v) do
if type(row[k][g]) == "table" then
local kept = {}
for _, x in ipairs(row[k][g]) do if not contains(list, x) then kept[#kept + 1] = x end end
row[k][g] = kept
end
end
elseif wanted[k] and type(row[k]) == "table" and type(v) == "table" then
local kept = {}
for _, x in ipairs(row[k]) do if not contains(v, x) then kept[#kept + 1] = x end end
row[k] = kept
@ -128,7 +139,15 @@ local function apply(id, fixes)
end
for k, v in pairs(sets) do row[k] = v end
for k, v in pairs(adds) do
if wanted[k] and type(v) == "table" then
if grouped[k] and type(v) == "table" then
row[k] = type(row[k]) == "table" and row[k] or {}
for g, list in pairs(v) do
row[k][g] = row[k][g] or {}
for _, x in ipairs(list) do
if not contains(row[k][g], x) then table.insert(row[k][g], x) end
end
end
elseif wanted[k] and type(v) == "table" then
row[k] = type(row[k]) == "table" and row[k] or {}
for _, x in ipairs(v) do if not contains(row[k], x) then table.insert(row[k], x) end end
end
@ -212,8 +231,17 @@ table.sort(ids)
for _, id in ipairs(ids) do
local r = q[id]
out:write("[", id, "]={")
-- A quest handed in at an object means going there, usually inside the dungeon.
local endsAtObject = type(r.finishedBy) == "table" and type(r.finishedBy[2]) == "table" and next(r.finishedBy[2]) ~= nil
local hasWork = r.triggerEnd ~= nil or endsAtObject
if type(r.objectives) == "table" then
for _, group in pairs(r.objectives) do
if type(group) == "table" and next(group) ~= nil then hasWork = true end
end
end
if hasWork then out:write("hasWork=true,") end
for _, n in ipairs(WANT) do
if r[n] ~= nil and n ~= "objectives" then out:write(n, "=", ser(r[n]), ",") end
if r[n] ~= nil and n ~= "objectives" and n ~= "triggerEnd" and n ~= "finishedBy" then out:write(n, "=", ser(r[n]), ",") end
end
out:write("},\n")
end

View file

@ -13,7 +13,9 @@ local UNNAMED = ""
local dungeon = {}
for id, r in pairs(q) do
local name = r.zoneOrSort and data.zoneNames[r.zoneOrSort]
if name and FIVE_MAN[name] then
if not r.hasWork then
-- "Go talk to someone" steps happen outside, even when filed under the dungeon.
elseif name and FIVE_MAN[name] then
dungeon[id] = name
elseif data.tags[id] and not name then
dungeon[id] = UNNAMED