From b7bb845f994194e55763847733499f1855897dea Mon Sep 17 00:00:00 2001 From: ackis Date: Mon, 15 Jun 2009 17:00:56 +0000 Subject: [PATCH] Now we go through and check the database to see if the vendor has been added to it. --- ARLDatamine.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 99ce69e..23a6bcb 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1906,6 +1906,20 @@ function addon:ScanVendor() -- Do the scan if we have the spell ID if (spellid) then self:TooltipScanRecipe(spellid,true) + -- Ok now we know it's a vendor, lets check the database to see if the vendor is listed as an acquire method. + local acquire = recipe_list[spellid]["Acquire"] + local found = false + for i in pairs(acquire) do + -- If the acquire type is a vendor + if (acquire[i]["Type"] == 2) then + if (acquire[j]["ID"] == targetID) then + found = true + end + end + end + if (not found) then + self:Print("Vendor ID missing from " .. spellid) + end else self:Print("Spell ID not found for: " .. name) end -- 1.7.9.5