Files
pfQuest-turtle-HDB/overwrites.lua
T

560 lines
29 KiB
Lua

-- Turtle's hand-maintained database corrections are applied by the HearthDB
-- exporter and stored in SQLite. No large runtime database tables exist here.
-- Quest: Vile Dwarven Pigs (41682)
-- The gossip-driven keg objective is absent from the extracted quest row.
local turtleQuests = pfDB["quests"] and pfDB["quests"]["data-turtle"]
local turtleUnits = pfDB["units"] and pfDB["units"]["data-turtle"]
-- The Mallet of Zeth is used on the Gong of Corthan for The Land of Kings.
local turtleItemRequirements = pfDB["quests-itemreq"] and pfDB["quests-itemreq"]["data-turtle"]
if turtleItemRequirements then
turtleItemRequirements[60944] = { [-2010946] = 0 }
end
-- Kex Blowmaster and his Horde quest chain were removed from the game.
if turtleUnits then turtleUnits[60443] = "_" end
-- "Stinky" Ignatz and both faction variants of his escort quest were removed.
if turtleUnits then turtleUnits[4880] = "_" end
-- Interacting with the Mysterious Glittering Object summons Kheyna
-- Spinpistol, who completes A Letter From a Friend and offers the follow-up.
if turtleUnits and turtleUnits[81041] then
turtleUnits[81041]["coords"] = { { 48.2, 23.4, 440, 300 } }
end
if turtleQuests then
turtleQuests[1222] = "_"
turtleQuests[1270] = "_"
if turtleQuests[1265] then
turtleQuests[1265]["obj"] = { ["A"] = { 1667 } }
turtleQuests[1265]["end"] = { ["A"] = { 1667 } }
end
-- Turtle's extracted overrides replace complete vanilla quest rows. Restore
-- vanilla prerequisite chains that the overrides omitted, while retaining
-- Turtle-specific faction, objective, and endpoint changes.
local inheritedPrerequisites = {
[95] = { 164 }, [138] = { 136 }, [139] = { 138 }, [140] = { 139 },
[364] = { 363 }, [597] = { 595 }, [625] = { 624 }, [626] = { 625 },
[902] = { 901 }, [960] = { 944 }, [1130] = { 882 }, [1194] = { 1190 },
[1801] = { 2996, 3001 }, [2701] = { 2702 }, [3454] = { 3453 },
[3525] = { 3523 }, [3792] = { 3791 }, [3913] = { 3912 },
[3914] = { 3913 }, [4122] = { 4082 }, [5050] = { 5048, 5049 },
[5084] = { 5083 }, [5085] = { 5084 }, [5143] = { 2853 },
[5148] = { 2860 }, [5164] = { 5162 }, [5265] = { 5264 },
[5463] = { 5462 }, [5464] = { 5463 }, [5942] = { 5721 },
[6383] = { 235, 742, 6382 }, [7508] = { 7507 }, [7668] = { 7667 },
[7795] = { 7791, 7793, 7794 }, [7800] = { 7792, 7798, 7799 },
[7805] = { 7802, 7803, 7804 }, [7811] = { 7807, 7808, 7809 },
[7818] = { 7813, 7814, 7817 }, [7823] = { 7820, 7821, 7822 },
[7824] = { 7826, 7827, 7831 }, [7836] = { 7833, 7834, 7835 },
[8115] = { 8114 }, [8122] = { 8121 }, [8271] = { 7141 },
[8272] = { 7142 }, [8484] = { 8481 }, [8485] = { 8481 },
[8811] = { 8795 }, [8812] = { 8795 }, [8813] = { 8795 },
[8814] = { 8795 }, [8815] = { 8792 }, [8816] = { 8792 },
[8817] = { 8792 }, [8818] = { 8792 }, [8819] = { 8795 },
[8820] = { 8795 }, [8821] = { 8795 }, [8822] = { 8795 },
[8823] = { 8792 }, [8824] = { 8792 }, [8825] = { 8792 },
[8826] = { 8792 },
}
for questID, prerequisites in pairs(inheritedPrerequisites) do
if turtleQuests[questID] then turtleQuests[questID]["pre"] = prerequisites end
end
if turtleQuests[1288] then
turtleQuests[1288]["pre"] = { 1287 }
end
if turtleQuests[40713] and turtleQuests[40713]["obj"] then
turtleQuests[40713]["obj"]["IR"] = { 60944 }
end
-- The Black Waltz begins by interacting with Aliattan's Campfire, which
-- then spawns the Widow event represented by the existing unit objective.
if turtleQuests[40908] and turtleQuests[40908]["obj"] then
turtleQuests[40908]["obj"]["O"] = { 2020026 }
end
-- The extracted level for Spitecrest Decursions is stale. Turtle's live
-- quest log reports this step as level 47.
if turtleQuests[40947] then turtleQuests[40947]["lvl"] = 47 end
if turtleQuests[80407] then
turtleQuests[80407]["obj"] = { ["O"] = { 3000246 } }
end
for _, questID in pairs({ 40130, 40131, 40133, 41102, 41104 }) do
turtleQuests[questID] = "_"
end
end
-- Shaman chain: Windtorn Crest Stone -> Vortalus' Edict.
-- The extracted rows omitted the class restriction and Vortalus objective.
if turtleQuests and turtleQuests[41938] then
turtleQuests[41938]["class"] = 64
end
if turtleQuests and turtleQuests[41939] then
turtleQuests[41939]["class"] = 64
turtleQuests[41939]["obj"] = turtleQuests[41939]["obj"] or {}
turtleQuests[41939]["obj"]["U"] = { 62783 }
end
-- Windhorn Canyon relic quests use the same missing world-object target.
for _, questID in pairs({ 41976, 41977 }) do
if turtleQuests and turtleQuests[questID] then
turtleQuests[questID]["obj"] = turtleQuests[questID]["obj"] or {}
turtleQuests[questID]["obj"]["O"] = { 2020320 }
end
end
-- Tauren priest quests whose extracted rows lost their class restriction.
for _, questID in pairs({ 42054, 42055, 42056, 42057, 42058, 42059, 42060 }) do
if turtleQuests and turtleQuests[questID] then
turtleQuests[questID]["class"] = 16
end
end
-- Tainted Rune is the Dwarf Warlock introduction.
if turtleQuests and turtleQuests[42045] then
turtleQuests[42045]["class"] = 256
end
local vileDwarvenPigs = turtleQuests and turtleQuests[41682]
if vileDwarvenPigs then
vileDwarvenPigs["obj"] = vileDwarvenPigs["obj"] or {}
vileDwarvenPigs["obj"]["O"] = { 2020173 }
end
-- Quest: School Assistance (41637)
-- The extracted objectives point at internal script triggers instead of the
-- four children the player must speak with in Ambershire Church.
local schoolAssistance = turtleQuests and turtleQuests[41637]
if schoolAssistance then
schoolAssistance["obj"] = schoolAssistance["obj"] or {}
schoolAssistance["obj"]["U"] = { 62300, 62301, 62302, 62303 }
end
-- Quest: Empty Houses (41643)
-- Replace the script triggers with the three residents used for progress.
local emptyHouses = turtleQuests and turtleQuests[41643]
if emptyHouses then
emptyHouses["obj"] = emptyHouses["obj"] or {}
emptyHouses["obj"]["U"] = { 62154, 62489, 62153 }
end
-- Quest: Darker than Iron (41677)
-- The keg interaction is the same world-object objective used by quest 41682.
local darkerThanIron = turtleQuests and turtleQuests[41677]
if darkerThanIron then
darkerThanIron["obj"] = darkerThanIron["obj"] or {}
darkerThanIron["obj"]["O"] = { 2020173 }
end
-- Item: Head of Geshgan (41783)
-- The alpha.6 value here (1.0, i.e. 1%) was itself wrong; pfQuest-turtle's
-- 1.0.19 changelog documents the correct, verified rate as 100%. items-turtle.lua
-- already stores 100 directly, so this override now only needs to preserve
-- that value against a re-extraction, not reintroduce the old 1%.
local turtleItems = pfDB["items"] and pfDB["items"]["data-turtle"]
if turtleItems and turtleItems[41783] then
turtleItems[41783]["U"] = { [62217] = 100 }
end
-- Quest interaction items whose extracted rows have no acquisition source.
if turtleItems and turtleItems[41695] then
turtleItems[41695]["U"] = { [62490] = 100 }
end
if turtleItems and turtleItems[41737] then
turtleItems[41737]["U"] = { [62146] = 100 }
end
-- Reports of Dustwallow: Sentry Point Report comes from Captain Wallace
-- Cross, and North Point Report comes from Captain Harker.
if turtleItems and turtleItems[60602] then
turtleItems[60602]["U"] = { [60729] = 100 }
end
if turtleItems and turtleItems[60603] then
turtleItems[60603]["U"] = { [60730] = 100 }
end
-- Windtorn Crest Stone is guaranteed from Razorgust.
if turtleItems and turtleItems[42206] then
turtleItems[42206]["U"] = { [62195] = 100 }
end
-- Sorrowguard Keep is drawn inside both the Deadwind Pass and Swamp of
-- Sorrows map rectangles. Turtle reports Swamp of Sorrows while the player is
-- inside the keep, but the extracted NPC records only contain Deadwind Pass
-- coordinates. Mirror the keep cluster through the shared world coordinates
-- so quest starters and enders render on either map.
local turtleUnits = pfDB["units"] and pfDB["units"]["data-turtle"]
-- Farseer Greka's extracted Stonetalon position is offset from her in-game
-- location at Wind Shear Crag.
if turtleUnits and turtleUnits[62197] then
turtleUnits[62197]["coords"] = { { 48.4, 68.9, 406, 120 } }
end
-- Correct Razorgust's spawn at Windtorn Crest.
if turtleUnits and turtleUnits[62195] then
turtleUnits[62195]["coords"] = { { 29.5, 18.5, 406, 120 } }
end
-- Renegade Air Elementals moved with the Windtorn Crest redesign. Replace
-- the obsolete southern cluster with player-surveyed spawns in the pass.
if turtleUnits and turtleUnits[62194] then
turtleUnits[62194]["coords"] = {
{ 34.4, 18.4, 406, 120 },
{ 34.8, 17.0, 406, 120 },
{ 33.8, 18.6, 406, 120 },
{ 32.7, 17.9, 406, 120 },
{ 31.9, 17.5, 406, 120 },
{ 31.8, 16.5, 406, 120 },
{ 31.1, 16.4, 406, 120 },
{ 30.8, 17.7, 406, 120 },
{ 31.5, 18.5, 406, 120 },
{ 30.4, 18.2, 406, 120 },
{ 30.3, 16.7, 406, 120 },
{ 29.6, 16.1, 406, 120 },
{ 28.9, 15.6, 406, 120 },
{ 28.9, 17.0, 406, 120 },
}
end
local sorrowguardSwampCoords = {
[92012] = { 1.98, 52.81 },
[92013] = { 2.85, 48.34 },
[92014] = { 1.54, 50.74 },
[92015] = { 3.51, 50.84 },
[92016] = { 2.96, 48.99 },
[92017] = { 2.42, 50.63 },
[92018] = { 1.54, 50.30 },
[92019] = { 0.89, 49.43 },
[92020] = { 1.54, 49.97 },
[92021] = { 1.98, 52.04 },
[92022] = { 3.61, 49.65 },
[92023] = { 3.51, 50.63 },
}
for unitID, position in pairs(sorrowguardSwampCoords) do
local unit = turtleUnits and turtleUnits[unitID]
if unit then
unit["coords"] = unit["coords"] or {}
local exists = false
for _, coord in pairs(unit["coords"]) do
if coord[3] == 8 then exists = true break end
end
if not exists then
table.insert(unit["coords"], { position[1], position[2], 8, 300 })
end
end
end
-- Explicit profession ranks from the Turtle server quest templates.
-- Keep these separate from autogenerated quest records for both Lua and HDB.
pfDB.questProfessionRequirements = {
[384] = { 185, 1 }, -- Beer Basted Boar Ribs
[715] = { 171, 1 }, -- Liquid Stone
[768] = { 393, 1 }, -- Gathering Leather
[862] = { 185, 1 }, -- Dig Rat Stew
[866] = { 182, 1 }, -- Root Samples
[1559] = { 202, 1 }, -- Flash Bomb Recipe
[1578] = { 164, 35 }, -- Supplying the Front
[1579] = { 356, 30 }, -- Gaffer Jacks
[1580] = { 356, 1 }, -- Electropellers
[1581] = { 171, 20 }, -- Elixirs for the Bladeleafs
[1582] = { 165, 70 }, -- Moonglow Vest
[1618] = { 164, 70 }, -- Gearing Redridge
[2178] = { 185, 10 }, -- Easy Strider Living
[2203] = { 171, 210 }, -- Badlands Reagent Run II
[2501] = { 171, 210 }, -- Badlands Reagent Run II
[2751] = { 164, 140 }, -- Barbaric Battlements
[2752] = { 164, 1 }, -- On Iron Pauldrons
[2753] = { 164, 1 }, -- Trampled Under Foot
[2754] = { 164, 1 }, -- Horns of Frenzy
[2755] = { 164, 1 }, -- Joys of Omosh
[2756] = { 164, 210 }, -- The Old Ways
[2757] = { 164, 210 }, -- Booty Bay or Bust!
[2758] = { 164, 210 }, -- The Origins of Smithing
[2759] = { 164, 210 }, -- In Search of Galvan
[2760] = { 164, 210 }, -- The Mithril Order
[2761] = { 164, 210 }, -- Smelt On, Smelt Off
[2762] = { 164, 210 }, -- The Great Silver Deceiver
[2763] = { 164, 210 }, -- The Art of the Imbue
[2764] = { 164, 210 }, -- Galvan's Finest Pupil
[2765] = { 164, 210 }, -- Expert Blacksmith!
[2771] = { 164, 210 }, -- A Good Head On Your Shoulders
[2772] = { 164, 210 }, -- The World At Your Feet
[2773] = { 164, 210 }, -- The Mithril Kid
[2847] = { 165, 225 }, -- Wild Leather Armor
[2848] = { 165, 225 }, -- Wild Leather Shoulders
[2849] = { 165, 225 }, -- Wild Leather Vest
[2850] = { 165, 225 }, -- Wild Leather Helmet
[2851] = { 165, 225 }, -- Wild Leather Boots
[2852] = { 165, 225 }, -- Wild Leather Leggings
[2853] = { 165, 225 }, -- Master of the Wild Leather
[2854] = { 165, 225 }, -- Wild Leather Armor
[2855] = { 165, 225 }, -- Wild Leather Shoulders
[2856] = { 165, 225 }, -- Wild Leather Vest
[2857] = { 165, 225 }, -- Wild Leather Helmet
[2858] = { 165, 225 }, -- Wild Leather Boots
[2859] = { 165, 225 }, -- Wild Leather Leggings
[2860] = { 165, 225 }, -- Master of the Wild Leather
[3321] = { 164, 210 }, -- Did You Lose This?
[3379] = { 197, 230 }, -- Shadoweaver
[3385] = { 197, 250 }, -- The Undermarket
[3402] = { 197, 1 }, -- The Undermarket
[3526] = { 202, 200 }, -- Goblin Engineering
[3629] = { 202, 200 }, -- Goblin Engineering
[3630] = { 202, 200 }, -- Gnome Engineering
[3632] = { 202, 200 }, -- Gnome Engineering
[3633] = { 202, 200 }, -- Goblin Engineering
[3634] = { 202, 200 }, -- Gnome Engineering
[3635] = { 202, 200 }, -- Gnome Engineering
[3637] = { 202, 200 }, -- Gnome Engineering
[3638] = { 202, 200 }, -- The Pledge of Secrecy
[3639] = { 202, 200 }, -- Show Your Work
[3640] = { 202, 200 }, -- The Pledge of Secrecy
[3641] = { 202, 200 }, -- Show Your Work
[3642] = { 202, 200 }, -- The Pledge of Secrecy
[3643] = { 202, 200 }, -- Show Your Work
[3644] = { 202, 200 }, -- Membership Card Renewal
[3645] = { 202, 200 }, -- Membership Card Renewal
[3646] = { 202, 200 }, -- Membership Card Renewal
[3647] = { 202, 200 }, -- Membership Card Renewal
[4104] = { 186, 1 }, -- Salve via Mining
[4105] = { 182, 1 }, -- Salve via Gathering
[4106] = { 393, 1 }, -- Salve via Skinning
[4107] = { 333, 1 }, -- Salve via Disenchanting
[4109] = { 186, 1 }, -- Salve via Mining
[4110] = { 182, 1 }, -- Salve via Gathering
[4111] = { 393, 1 }, -- Salve via Skinning
[4112] = { 333, 1 }, -- Salve via Disenchanting
[4161] = { 185, 1 }, -- Recipe of the Kaldorei
[4181] = { 202, 200 }, -- Goblin Engineering
[5103] = { 164, 275 }, -- Hot Fiery Death
[5126] = { 164, 285 }, -- Lorax's Tale
[5127] = { 164, 285 }, -- The Demon Forge
[5141] = { 165, 225 }, -- Dragonscale Leatherworking
[5143] = { 165, 225 }, -- Tribal Leatherworking
[5144] = { 165, 225 }, -- Elemental Leatherworking
[5145] = { 165, 225 }, -- Dragonscale Leatherworking
[5146] = { 165, 225 }, -- Elemental Leatherworking
[5148] = { 165, 225 }, -- Tribal Leatherworking
[5283] = { 164, 200 }, -- The Art of the Armorsmith
[5284] = { 164, 200 }, -- The Way of the Weaponsmith
[5301] = { 164, 200 }, -- The Art of the Armorsmith
[5302] = { 164, 200 }, -- The Way of the Weaponsmith
[5305] = { 164, 250 }, -- Sweet Serenity
[5306] = { 164, 250 }, -- Snakestone of the Shadow Huntress
[5307] = { 164, 250 }, -- Corruption
[5883] = { 186, 1 }, -- Salve via Mining
[5884] = { 182, 1 }, -- Salve via Gathering
[5885] = { 393, 1 }, -- Salve via Skinning
[5886] = { 333, 1 }, -- Salve via Disenchanting
[5888] = { 186, 1 }, -- Salve via Mining
[5889] = { 182, 1 }, -- Salve via Gathering
[5890] = { 393, 1 }, -- Salve via Skinning
[5891] = { 333, 1 }, -- Salve via Disenchanting
[6032] = { 197, 290 }, -- Sacred Cloth
[6607] = { 356, 225 }, -- Nat Pagle, Angler Extreme
[6608] = { 356, 225 }, -- You Too Good.
[6609] = { 356, 225 }, -- I Got Nothin' Left!
[6610] = { 185, 225 }, -- Clamlette Surprise
[6611] = { 185, 225 }, -- To Gadgetzan You Go!
[6612] = { 185, 225 }, -- I Know A Guy...
[6622] = { 129, 225 }, -- Triage
[6623] = { 129, 225 }, -- Horde Trauma
[6624] = { 129, 225 }, -- Triage
[6625] = { 129, 225 }, -- Alliance Trauma
[7321] = { 185, 1 }, -- Soothing Turtle Bisque
[7493] = { 165, 300 }, -- The Journey Has Just Begun
[7497] = { 165, 300 }, -- The Journey Has Just Begun
[7649] = { 164, 300 }, -- Enchanted Thorium Platemail: Volume I
[7650] = { 164, 300 }, -- Enchanted Thorium Platemail: Volume II
[7651] = { 164, 300 }, -- Enchanted Thorium Platemail: Volume III
[7652] = { 164, 265 }, -- A Blue Light Bargain
[7653] = { 164, 265 }, -- Imperial Plate Belt
[7654] = { 164, 265 }, -- Imperial Plate Boots
[7655] = { 164, 265 }, -- Imperial Plate Bracer
[7656] = { 164, 265 }, -- Imperial Plate Chest
[7657] = { 164, 265 }, -- Imperial Plate Helm
[7658] = { 164, 265 }, -- Imperial Plate Leggings
[7659] = { 164, 265 }, -- Imperial Plate Shoulders
[8193] = { 356, 1 }, -- Master Angler
[8194] = { 356, 1 }, -- Apprentice Angler
[8221] = { 356, 1 }, -- Rare Fish - Keefer's Angelfish
[8224] = { 356, 1 }, -- Rare Fish - Dezian Queenfish
[8225] = { 356, 1 }, -- Rare Fish - Brownell's Blue Striped Racer
[8228] = { 356, 175 }, -- Could I get a Fishing Flier?
[8229] = { 356, 175 }, -- Could I get a Fishing Flier?
[8307] = { 185, 285 }, -- Desert Recipe
[8313] = { 185, 285 }, -- Sharing the Knowledge
[8317] = { 185, 285 }, -- Kitchen Assistance
[8763] = { 185, 300 }, -- The Hero of the Day
[8798] = { 202, 1 }, -- A Yeti of Your Own
[8799] = { 185, 300 }, -- The Hero of the Day
[40234] = { 164, 250 }, -- A New Rune-Frontier
[40235] = { 164, 250 }, -- The Secrets of Darkforging
[40236] = { 164, 250 }, -- The Secrets of Darkforging
[40237] = { 164, 250 }, -- A Favor for Farsan
[40238] = { 164, 250 }, -- A Meeting With The Dreadlord
[40239] = { 164, 250 }, -- The Will of Lorthiras
[40240] = { 164, 250 }, -- Knowledge of Lorthiras
[40241] = { 164, 250 }, -- The Materials of Runeforging
[40259] = { 164, 200 }, -- The Dark-Rune Anvil
[40873] = { 171, 1 }, -- The Recipe of Dreamshard Elixir
[40874] = { 171, 1 }, -- The Recipe of Lucidity Potion
[40875] = { 165, 1 }, -- Pattern: Enchanted Armor Kit
[40883] = { 333, 1 }, -- Enchant Boots: Greater Spirit
[40884] = { 333, 1 }, -- Enchant Bracer: Greater Deflection
[40886] = { 186, 1 }, -- Smelting Dreamsteel
[40888] = { 164, 1 }, -- Dreamsteel Leggings
[40889] = { 164, 1 }, -- Dreamsteel Bracers
[40890] = { 164, 1 }, -- Dreamsteel Boots
[40895] = { 165, 1 }, -- Crafting Dreamhide
[40897] = { 165, 1 }, -- Dreamhide Bracers
[40898] = { 165, 1 }, -- Dreamhide Leggings
[40899] = { 165, 1 }, -- Dreamhide Belt
[40900] = { 197, 1 }, -- Crafting Dreamthread
[40902] = { 197, 1 }, -- Dreamthread Kilt
[40903] = { 197, 1 }, -- Dreamthread Bracers
[40904] = { 197, 1 }, -- Dreamthread Gloves
[41111] = { 164, 1 }, -- Plans: Dreamsteel Belt Buckle
[41275] = { 755, 225 }, -- Mastering Goldsmithing
[41276] = { 755, 225 }, -- Mastering Goldsmithing
[41277] = { 755, 225 }, -- Mastering Gemology
[41278] = { 755, 225 }, -- Mastering Gemology
[41291] = { 755, 225 }, -- Unfortunate Circumstances
[41296] = { 755, 225 }, -- The Collector
[41300] = { 755, 200 }, -- Just Ask Them Nicely
[41303] = { 755, 200 }, -- Lost In Ratchet
[41306] = { 755, 200 }, -- It's All Ogre Now
[41313] = { 755, 225 }, -- Leyline Investigation
[41316] = { 755, 300 }, -- Advanced Jewelcrafting XI: Hard as Diamonds
[41333] = { 755, 300 }, -- Advanced Gemology I
[41334] = { 755, 300 }, -- Advanced Gemology II
[41335] = { 755, 300 }, -- Advanced Goldsmithing I
[41336] = { 755, 300 }, -- An Unseen Obstacle
[41337] = { 755, 300 }, -- Advanced Goldsmithing II
[41345] = { 356, 300 }, -- Altar of an Ancient Evil
[41346] = { 356, 300 }, -- A Mossy Mystery
[41361] = { 755, 300 }, -- Gleaming Blood
[41362] = { 755, 300 }, -- To Cut A Heart
[55300] = { 164, 265 }, -- Imperial Plate Gauntlets
[70040] = { 164, 1 }, -- Reinforcing The Sepulcher
[80735] = { 171, 275 }, -- An Uncommon Request
[80736] = { 333, 275 }, -- A Rare Request
}
-- Goldsmithing referrals: each faction completes all three local tasks.
pfDB.quests.preall = pfDB.quests.preall or {}
pfDB.quests.preall[41286] = { 41283, 41284, 41285 }
pfDB.quests.preall[41290] = { 41287, 41288, 41289 }
local goldsmithQuests = pfDB.quests["data-turtle"]
if goldsmithQuests then
for id, prerequisites in pairs(pfDB.quests.preall) do
if (id == 41286 or id == 41290) and type(goldsmithQuests[id]) == "table" then
goldsmithQuests[id].pre = prerequisites
goldsmithQuests[id].preall = prerequisites
end
end
if type(goldsmithQuests[41291]) == "table" then
goldsmithQuests[41291].pre = { 41286, 41290 }
end
end
pfDB.questProfessionRequirements[41290] = { 755, 225 }
-- The Brassbolts Brothers (2769) is an optional referral, not an acceptance
-- requirement for Gahz'rilla. Turtle's quest template has PrevQuestId = 0.
local gahzrilla = pfDB.quests["data-turtle"] and pfDB.quests["data-turtle"][2770]
or pfDB.quests.data and pfDB.quests.data[2770]
if type(gahzrilla) == "table" then gahzrilla.pre = nil end
-- Repeatability from the downloaded Turtle quest_template SpecialFlags bit 1.
-- A side table also works with the lean HDB runtime (no Lua quest rows).
pfDB.quests.repeatable = {
[16] = true, [117] = true, [254] = true, [349] = true, [410] = true, [431] = true, [579] = true, [593] = true,
[619] = true, [708] = true, [779] = true, [795] = true, [813] = true, [822] = true, [889] = true, [908] = true,
[926] = true, [961] = true, [972] = true, [996] = true, [998] = true, [1127] = true, [1191] = true, [1192] = true,
[1193] = true, [1288] = true, [1423] = true, [1462] = true, [1463] = true, [1464] = true, [1514] = true, [1714] = true,
[1789] = true, [1790] = true, [1878] = true, [2522] = true, [2523] = true, [2582] = true, [2584] = true, [2586] = true,
[2602] = true, [2604] = true, [2747] = true, [2748] = true, [2749] = true, [2750] = true, [2878] = true, [2881] = true,
[2953] = true, [3363] = true, [3366] = true, [3382] = true, [3421] = true, [3483] = true, [3502] = true, [3503] = true,
[3567] = true, [3644] = true, [3645] = true, [3646] = true, [3647] = true, [3792] = true, [3803] = true, [3804] = true,
[3861] = true, [4041] = true, [4103] = true, [4104] = true, [4105] = true, [4106] = true, [4107] = true, [4108] = true,
[4109] = true, [4110] = true, [4111] = true, [4112] = true, [4113] = true, [4114] = true, [4115] = true, [4116] = true,
[4117] = true, [4118] = true, [4119] = true, [4221] = true, [4222] = true, [4295] = true, [4343] = true, [4381] = true,
[4382] = true, [4383] = true, [4384] = true, [4385] = true, [4386] = true, [4401] = true, [4403] = true, [4443] = true,
[4444] = true, [4445] = true, [4446] = true, [4447] = true, [4448] = true, [4461] = true, [4462] = true, [4463] = true,
[4464] = true, [4465] = true, [4466] = true, [4467] = true, [4481] = true, [4482] = true, [4483] = true, [4484] = true,
[4561] = true, [4603] = true, [4604] = true, [4661] = true, [4801] = true, [4802] = true, [4803] = true, [4804] = true,
[4805] = true, [4806] = true, [4807] = true, [4970] = true, [5042] = true, [5043] = true, [5044] = true, [5045] = true,
[5046] = true, [5059] = true, [5122] = true, [5150] = true, [5201] = true, [5218] = true, [5221] = true, [5224] = true,
[5227] = true, [5402] = true, [5403] = true, [5404] = true, [5406] = true, [5407] = true, [5408] = true, [5421] = true,
[5508] = true, [5509] = true, [5510] = true, [5519] = true, [5582] = true, [5892] = true, [5893] = true, [5981] = true,
[6241] = true, [6545] = true, [6546] = true, [6547] = true, [6581] = true, [6642] = true, [6643] = true, [6644] = true,
[6645] = true, [6646] = true, [6701] = true, [6741] = true, [6781] = true, [6801] = true, [6825] = true, [6826] = true,
[6827] = true, [6846] = true, [6847] = true, [6848] = true, [6861] = true, [6862] = true, [6881] = true, [6901] = true,
[6941] = true, [6942] = true, [6943] = true, [6962] = true, [6982] = true, [6983] = true, [6985] = true, [7001] = true,
[7002] = true, [7026] = true, [7027] = true, [7341] = true, [7342] = true, [7385] = true, [7386] = true, [7421] = true,
[7422] = true, [7423] = true, [7424] = true, [7425] = true, [7426] = true, [7427] = true, [7428] = true, [7429] = true,
[7478] = true, [7479] = true, [7480] = true, [7483] = true, [7484] = true, [7485] = true, [7604] = true, [7651] = true,
[7666] = true, [7725] = true, [7726] = true, [7735] = true, [7736] = true, [7737] = true, [7738] = true, [7796] = true,
[7801] = true, [7806] = true, [7812] = true, [7819] = true, [7825] = true, [7830] = true, [7832] = true, [7837] = true,
[7838] = true, [7846] = true, [7881] = true, [7882] = true, [7883] = true, [7884] = true, [7886] = true, [7887] = true,
[7888] = true, [7889] = true, [7890] = true, [7891] = true, [7892] = true, [7894] = true, [7895] = true, [7896] = true,
[7897] = true, [7899] = true, [7900] = true, [7901] = true, [7902] = true, [7907] = true, [7921] = true, [7922] = true,
[7923] = true, [7924] = true, [7925] = true, [7930] = true, [7931] = true, [7932] = true, [7933] = true, [7934] = true,
[7935] = true, [7936] = true, [7939] = true, [7940] = true, [7941] = true, [7942] = true, [7943] = true, [7944] = true,
[7981] = true, [8081] = true, [8124] = true, [8157] = true, [8158] = true, [8159] = true, [8163] = true, [8164] = true,
[8165] = true, [8184] = true, [8185] = true, [8186] = true, [8187] = true, [8188] = true, [8189] = true, [8190] = true,
[8191] = true, [8192] = true, [8193] = true, [8194] = true, [8195] = true, [8196] = true, [8221] = true, [8223] = true,
[8224] = true, [8225] = true, [8228] = true, [8229] = true, [8238] = true, [8239] = true, [8241] = true, [8242] = true,
[8243] = true, [8246] = true, [8249] = true, [8292] = true, [8293] = true, [8298] = true, [8300] = true, [8302] = true,
[8319] = true, [8324] = true, [8333] = true, [8342] = true, [8353] = true, [8354] = true, [8355] = true, [8356] = true,
[8357] = true, [8358] = true, [8359] = true, [8360] = true, [8362] = true, [8363] = true, [8364] = true, [8383] = true,
[8384] = true, [8385] = true, [8386] = true, [8387] = true, [8388] = true, [8389] = true, [8390] = true, [8391] = true,
[8392] = true, [8397] = true, [8398] = true, [8404] = true, [8405] = true, [8406] = true, [8407] = true, [8408] = true,
[8431] = true, [8432] = true, [8433] = true, [8434] = true, [8435] = true, [8440] = true, [8441] = true, [8442] = true,
[8443] = true, [8466] = true, [8467] = true, [8469] = true, [8493] = true, [8495] = true, [8496] = true, [8497] = true,
[8498] = true, [8500] = true, [8501] = true, [8502] = true, [8504] = true, [8506] = true, [8507] = true, [8508] = true,
[8510] = true, [8512] = true, [8514] = true, [8516] = true, [8518] = true, [8521] = true, [8523] = true, [8525] = true,
[8527] = true, [8529] = true, [8533] = true, [8534] = true, [8535] = true, [8536] = true, [8537] = true, [8538] = true,
[8539] = true, [8540] = true, [8541] = true, [8543] = true, [8546] = true, [8548] = true, [8550] = true, [8572] = true,
[8573] = true, [8574] = true, [8579] = true, [8581] = true, [8583] = true, [8589] = true, [8591] = true, [8595] = true,
[8601] = true, [8605] = true, [8608] = true, [8610] = true, [8612] = true, [8614] = true, [8616] = true, [8687] = true,
[8731] = true, [8732] = true, [8737] = true, [8738] = true, [8739] = true, [8740] = true, [8770] = true, [8771] = true,
[8772] = true, [8773] = true, [8774] = true, [8775] = true, [8776] = true, [8777] = true, [8778] = true, [8779] = true,
[8780] = true, [8781] = true, [8782] = true, [8783] = true, [8784] = true, [8785] = true, [8786] = true, [8787] = true,
[8789] = true, [8790] = true, [8804] = true, [8805] = true, [8806] = true, [8807] = true, [8808] = true, [8809] = true,
[8810] = true, [8811] = true, [8812] = true, [8813] = true, [8814] = true, [8815] = true, [8816] = true, [8817] = true,
[8818] = true, [8819] = true, [8820] = true, [8821] = true, [8822] = true, [8823] = true, [8824] = true, [8825] = true,
[8826] = true, [8829] = true, [8830] = true, [8831] = true, [8832] = true, [8833] = true, [8834] = true, [8835] = true,
[8836] = true, [8837] = true, [8838] = true, [8839] = true, [8840] = true, [8841] = true, [8842] = true, [8843] = true,
[8844] = true, [8845] = true, [8846] = true, [8847] = true, [8848] = true, [8849] = true, [8850] = true, [8851] = true,
[8852] = true, [8853] = true, [8854] = true, [8855] = true, [8862] = true, [8863] = true, [8864] = true, [8865] = true,
[8876] = true, [8877] = true, [8878] = true, [8879] = true, [8880] = true, [8881] = true, [8882] = true, [8893] = true,
[8981] = true, [8993] = true, [9094] = true, [9125] = true, [9127] = true, [9129] = true, [9132] = true, [9137] = true,
[9142] = true, [9178] = true, [9179] = true, [9181] = true, [9182] = true, [9183] = true, [9184] = true, [9185] = true,
[9186] = true, [9187] = true, [9188] = true, [9190] = true, [9191] = true, [9194] = true, [9195] = true, [9196] = true,
[9197] = true, [9198] = true, [9200] = true, [9201] = true, [9202] = true, [9203] = true, [9204] = true, [9205] = true,
[9206] = true, [9208] = true, [9209] = true, [9210] = true, [9211] = true, [9213] = true, [9221] = true, [9222] = true,
[9223] = true, [9224] = true, [9225] = true, [9226] = true, [9227] = true, [9228] = true, [9259] = true, [9266] = true,
[9267] = true, [9268] = true, [9317] = true, [9318] = true, [9320] = true, [9321] = true, [9338] = true, [9341] = true,
[9386] = true, [39993] = true, [40004] = true, [40221] = true, [40340] = true, [40341] = true, [40617] = true, [40618] = true,
[40619] = true, [40630] = true, [40631] = true, [40632] = true, [40709] = true, [40710] = true, [40711] = true, [40739] = true,
[40740] = true, [40813] = true, [40814] = true, [40815] = true, [40816] = true, [40871] = true, [40885] = true, [40894] = true,
[40910] = true, [40911] = true, [40912] = true, [40973] = true, [41005] = true, [41007] = true, [41018] = true, [41019] = true,
[41021] = true, [41031] = true, [41055] = true, [41068] = true, [41069] = true, [41079] = true, [41080] = true, [41081] = true,
[41082] = true, [41107] = true, [41108] = true, [41109] = true, [41115] = true, [41118] = true, [41123] = true, [41126] = true,
[41128] = true, [41328] = true, [41329] = true, [41330] = true, [41331] = true, [41332] = true, [41345] = true, [41346] = true,
[50215] = true, [50220] = true, [50311] = true, [50313] = true, [50316] = true, [50318] = true, [60030] = true, [60031] = true,
[60032] = true, [60033] = true, [60034] = true, [60035] = true, [60036] = true, [80219] = true, [80352] = true, [80353] = true,
[80369] = true, [80374] = true, [80379] = true, [80386] = true, [80740] = true,
}