From a9eaf57e958c3466fb33cea951a4ebb0481be9b8 Mon Sep 17 00:00:00 2001 From: "Nathanial.C.Jones" Date: Fri, 21 Jan 2011 02:38:12 +0000 Subject: [PATCH] OK, I'm sure this is fixed this time. It helps to pay attention to the field names. --- QuestHelper/collect_loot.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/QuestHelper/collect_loot.lua b/QuestHelper/collect_loot.lua index 9f9c319..a99e9cf 100644 --- a/QuestHelper/collect_loot.lua +++ b/QuestHelper/collect_loot.lua @@ -523,17 +523,12 @@ local function LootOpened() else --if debug_output then QuestHelper:TextOut("Who knows") end -- ugh local loc = GetLoc() - assert(loc.delayed) - assert(loc.c) - assert(loc.z) - assert(loc.x) - assert(loc.y) if not QHC.worldloot then QHC.worldloot = {} end - if not QHC.worldloot[loc.delayed] then QHC.fishing[loc.delayed] = {} end - if not QHC.worldloot[loc.delayed][loc.c] then QHC.fishing[loc.delayed][loc.c] = {} end - if not QHC.worldloot[loc.delayed][loc.c][loc.z] then QHC.fishing[loc.delayed][loc.c][loc.z] = {} end - if not QHC.worldloot[loc.delayed][loc.c][loc.z][loc.x] then QHC.fishing[loc.delayed][loc.c][loc.z][loc.x] = {} end - if not QHC.worldloot[loc.delayed][loc.c][loc.z][loc.x][loc.y] then QHC.fishing[loc.delayed][loc.c][loc.z][loc.x][loc.y] = {} end + if not QHC.worldloot[loc.delayed] then QHC.worldloot[loc.delayed] = {} end + if not QHC.worldloot[loc.delayed][loc.c] then QHC.worldloot[loc.delayed][loc.c] = {} end + if not QHC.worldloot[loc.delayed][loc.c][loc.z] then QHC.worldloot[loc.delayed][loc.c][loc.z] = {} end + if not QHC.worldloot[loc.delayed][loc.c][loc.z][loc.x] then QHC.worldloot[loc.delayed][loc.c][loc.z][loc.x] = {} end + if not QHC.worldloot[loc.delayed][loc.c][loc.z][loc.x][loc.y] then QHC.worldloot[loc.delayed][loc.c][loc.z][loc.x][loc.y] = {} end spot = QHC.worldloot[loc.delayed][loc.c][loc.z][loc.x][loc.y] prefix = "loot"