Lets do some things to do stuff which will prevent poopy from being DCed.
ackis [06-11-09 - 17:44]
Lets do some things to do stuff which will prevent poopy from being DCed.
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