From bf1a04a431032332cb8dc5db258ee5923837d91d Mon Sep 17 00:00:00 2001 From: "Nathanial.C.Jones" Date: Wed, 26 Sep 2012 15:44:24 +0000 Subject: [PATCH] Fixed issue reported at Curse in comments. Added in some functionality. --- QuestHelper/collect_zone.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/QuestHelper/collect_zone.lua b/QuestHelper/collect_zone.lua index 90d751a..64e3546 100644 --- a/QuestHelper/collect_zone.lua +++ b/QuestHelper/collect_zone.lua @@ -13,7 +13,8 @@ local GetLoc local Merger local function DoZoneUpdate(label, debugverbose) - local zname = string.format("%s@@%s@@%s", GetZoneText(), GetRealZoneText(), GetSubZoneText()) -- I don't *think* any zones will have a @@ in them :D + local zt, rzt, szt, mzt = GetZoneText() or "", GetRealZoneText() or "", GetSubZoneText() or "", GetMinimapZoneText() or "" + local zname = string.format("%s@@%s@@%s@@%s", zt, rzt, szt, mzt) -- I don't *think* any zones will have a @@ in them :D if zname == "@@@@" then return end -- denied if not QHCZ[zname] then QHCZ[zname] = {} end if not QHCZ[zname][label] then QHCZ[zname][label] = {} end @@ -29,6 +30,12 @@ local function DoZoneUpdate(label, debugverbose) if loc.delayed == 128 and loc.c == 0 and loc.z == 0 and loc.x == -128 and loc.y == -128 then return end --if loc == "€\000\000\000€\000\000\000€€€" then return end -- this is kind of the "null value" local found = false + + if not znl.locs then + znl.locs = {} + end + + table.insert(znl.locs, loc) -- Commented out, 'cause this module isn't really loaded anymore. I'll remove it after the next commit. --Merger.Add(znl, loc, true)