From 2b9a01000f18747cc58aa4ae003eb41eb4738b40 Mon Sep 17 00:00:00 2001 From: SabinDeus Date: Sat, 13 Aug 2016 15:24:34 +0000 Subject: [PATCH] Quest functions changed return lists again --- TurnIn.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/TurnIn.lua b/TurnIn.lua index 4b85b0d..19a633f 100644 --- a/TurnIn.lua +++ b/TurnIn.lua @@ -578,7 +578,13 @@ function TI_AddNPCToTempList(name, list) local temp = {}; temp.name = name; temp.list = list; - temp.location = GetSubZoneText() .. ", " .. GetRealZoneText(); + local subZone = GetSubZoneText(); + local realZone = GetRealZoneText(); + if(subZone == "") then + temp.location = realZone; + else + temp.location = subZone .. ", " .. realZone; + end table.insert(TI_TempNPCList, 1, temp); if(#TI_TempNPCList > TI_TempNPCListMaxSize) then table.remove(TI_TempNPCList, TI_TempNPCListMaxSize); @@ -625,7 +631,7 @@ end function TI_TabulateGossipAvailableQuests(...) local x = {}; - for i=1, select("#", ...), 6 do + for i=1, select("#", ...), 7 do local temp = {}; temp.name = select(i, ...); @@ -633,6 +639,7 @@ function TI_TabulateGossipAvailableQuests(...) local isDaily = select(i+3, ...); local isRepeatable = select(i+4, ...); local isLegendary = select(i+5, ...); + local isIgnored = select(i+6, ...); if ( isDaily ) then temp.icon = "Interface\\GossipFrame\\DailyQuestIcon"; elseif ( isRepeatable ) then @@ -651,7 +658,7 @@ end function TI_TabulateGossipActiveQuests(...) local x = {}; - for i=1, select("#", ...), 5 do + for i=1, select("#", ...), 6 do local temp = {}; temp.name = select(i, ...);