From f21686ea0010aa9f09acb90eebfed4136638e27c Mon Sep 17 00:00:00 2001 From: ackis Date: Thu, 11 Jun 2009 17:44:06 +0000 Subject: [PATCH] Lets do some things to do stuff which will prevent poopy from being DCed. --- ARLDatamine.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 103523d..28f09e5 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1990,9 +1990,15 @@ function addon:TooltipScanRecipe(spellid) self:ScanToolTip(recipe_name, recipe_list, reverse_lookup, false, false) -- We have a reverse look-up for the item which creates the spell (aka the recipe itself) - if (SPELL_ITEM[spellid]) then - ARLDatamineTT:SetHyperlink("item:" .. SPELL_ITEM[spellid] .. ":0:0:0:0:0:0:0") - self:ScanToolTip(recipe_name, recipe_list, reverse_lookup, false, true) + local itemid = SPELL_ITEM[spellid] + if () then + local incache = GetItemInfo(itemid) + if (incache) then + ARLDatamineTT:SetHyperlink("item:" .. itemid .. ":0:0:0:0:0:0:0") + self:ScanToolTip(recipe_name, recipe_list, reverse_lookup, false, true) + else + self:Print("Item ID: " .. itemid .. " not in cache. If you have Querier use /iq " .. itemid) + end end self:PrintScanResults() end -- 1.7.9.5