From b372d060cd9126f2f2026116a0fe55b8afb9f51b Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 13 Mar 2011 21:14:59 -0500 Subject: [PATCH] When scanning a trainer, any "extra" recipes will now show the item ID and name of the recipe's crafted item, so incorrect items will not result in a correct recipe being removed. --- Scanner.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Scanner.lua b/Scanner.lua index 57646ff..792173e 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -263,7 +263,14 @@ do for index in ipairs(extra_spell_ids) do local spell_id = extra_spell_ids[index] - table.insert(output, ("%d (%s)"):format(spell_id, recipe_list[spell_id].name)) + local recipe = recipe_list[spell_id] + local crafted_item = recipe:CraftedItemID() + + if crafted_item then + table.insert(output, ("%d (%s) - Crafted item ID set to %d (%s)"):format(spell_id, recipe.name, crafted_item, _G.GetItemInfo(crafted_item) or _G.UNKNOWN)) + else + table.insert(output, ("%d (%s)"):format(spell_id, recipe.name)) + end end end -- 1.7.9.5