From fc3136bd5b8386be629af9e59eee482fb8ac869e Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Wed, 15 Oct 2014 18:57:55 +0200 Subject: [PATCH] For whatever reason, guid data is split by hyphens instead of colons in build 18888 --- QuickQuest.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/QuickQuest.lua b/QuickQuest.lua index 0123bee..1503564 100644 --- a/QuickQuest.lua +++ b/QuickQuest.lua @@ -111,10 +111,7 @@ end local GetNPCID if(WoD) then function GetNPCID() - local type, _, _, _, _, id = string.split(':', UnitGUID('npc') or '') - if(type == 'Creature' and id and tonumber(id)) then - return tonumber(id) - end + return tonumber(string.match(UnitGUID('npc') or '', 'Creature%-.-%-.-%-.-%-.-%-(.-)%-')) end else function GetNPCID() -- 1.7.9.5