From 6eeb3f432c4a44fba801161bbe74ff1991486c6f Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 16 Oct 2010 23:33:54 -0400 Subject: [PATCH] Fixed issue where the NPC ID wasn't showing correctly due to UnitGUID() being changed in 4.0.1 --- Scanner.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scanner.lua b/Scanner.lua index 40259b1..5b1670f 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -668,7 +668,7 @@ do return end local targetname = UnitName("target") -- Get its name - local targetID = tonumber(string.sub(UnitGUID("target"), -12, -7), 16) -- Get the NPC ID + local targetID = tonumber(string.sub(UnitGUID("target"), -12, -9), 16) -- Get the NPC ID if not IsTradeskillTrainer() then -- Are we at a trade skill trainer? if not autoscan then @@ -1136,7 +1136,7 @@ do return end local targetname = UnitName("target") -- Get its name - local targetID = tonumber(string.sub(UnitGUID("target"), -12, -7), 16) -- Get the NPC ID + local targetID = tonumber(string.sub(UnitGUID("target"), -12, -9), 16) -- Get the NPC ID local added = false table.wipe(output) -- 1.7.9.5