From b00cc38f200490c852c9faabc54210c10e71cd78 Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 5 May 2009 22:16:25 +0000 Subject: [PATCH] Minor updates to vendor scanning code. --- ARLDatamine.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 5124761..9d6a33c 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -335,7 +335,6 @@ local ARLDatamineTT = CreateFrame("GameTooltip","ARLDatamineTT",UIParent,"GameTo --- Scans the items on a vendor, determining which recipes are availible if any and compares it with the database entries. -- @name AckisRecipeList:ScanVendor -- @return Obtains all the vendor information on tradeskill recipes and attempts to compare the current vendor with the internal database. - function addon:ScanVendor() -- Make sure the target exists and is a NPC @@ -350,13 +349,15 @@ function addon:ScanVendor() for i=1,GetMerchantNumItems(),1 do local name, _, _, _, numAvailable = GetMerchantItemInfo(i) - local link = GetMerchantItemLink(i) + --local link = GetMerchantItemLink(i) -- Will have to do tooltip scanning here. -- Skill level, profession, limited supply - ARLDatamineTT:SetHyperlink(link) + --ARLDatamineTT:SetHyperlink(link) + ARLDatamineTT:SetMerchantItem(i) for i = 1, ARLDatamineTT:NumLines(),1 do local linetext = _G["GameTooltipTextLeft" .. i] - self:Print(linetext) + local text = linetext:GetText() + self:Print(text) end end ARLDatamineTT:Hide() -- 1.7.9.5