From 9bc664c01e9ce6f8eec8547aff19334433640e71 Mon Sep 17 00:00:00 2001 From: pompachomp Date: Wed, 31 Mar 2010 14:35:53 -0400 Subject: [PATCH] Added vendor name and id to the dump when scanning a vendor --- Datamine.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Datamine.lua b/Datamine.lua index be746b0..894fb78 100644 --- a/Datamine.lua +++ b/Datamine.lua @@ -1649,9 +1649,10 @@ do local targetname = UnitName("target") -- Get its name local targetID = tonumber(string.sub(UnitGUID("target"), -12, -7), 16) -- Get the NPC ID local added = false - + twipe(output) - + + tinsert(output, "Vendor Name: "..targetname.." NPC ID: "..targetID) -- Parse all the items on the merchant for i = 1, GetMerchantNumItems(), 1 do local name, _, _, _, numAvailable = GetMerchantItemInfo(i) @@ -1698,7 +1699,7 @@ do if not found then added = true - tinsert(output, "Vendor ID missing from " .. spell_id) + tinsert(output, string.format("Vendor ID missing from \"%s\" %d.", recipe_list[spell_id].name, spell_id)) end else --@debug@ -- 1.7.9.5