| local temp = {}; | local temp = {}; | ||||
| temp.name = name; | temp.name = name; | ||||
| temp.list = list; | 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); | table.insert(TI_TempNPCList, 1, temp); | ||||
| if(#TI_TempNPCList > TI_TempNPCListMaxSize) then | if(#TI_TempNPCList > TI_TempNPCListMaxSize) then | ||||
| table.remove(TI_TempNPCList, TI_TempNPCListMaxSize); | table.remove(TI_TempNPCList, TI_TempNPCListMaxSize); | ||||
| function TI_TabulateGossipAvailableQuests(...) | function TI_TabulateGossipAvailableQuests(...) | ||||
| local x = {}; | local x = {}; | ||||
| for i=1, select("#", ...), 6 do | |||||
| for i=1, select("#", ...), 7 do | |||||
| local temp = {}; | local temp = {}; | ||||
| temp.name = select(i, ...); | temp.name = select(i, ...); | ||||
| local isDaily = select(i+3, ...); | local isDaily = select(i+3, ...); | ||||
| local isRepeatable = select(i+4, ...); | local isRepeatable = select(i+4, ...); | ||||
| local isLegendary = select(i+5, ...); | local isLegendary = select(i+5, ...); | ||||
| local isIgnored = select(i+6, ...); | |||||
| if ( isDaily ) then | if ( isDaily ) then | ||||
| temp.icon = "Interface\\GossipFrame\\DailyQuestIcon"; | temp.icon = "Interface\\GossipFrame\\DailyQuestIcon"; | ||||
| elseif ( isRepeatable ) then | elseif ( isRepeatable ) then | ||||
| function TI_TabulateGossipActiveQuests(...) | function TI_TabulateGossipActiveQuests(...) | ||||
| local x = {}; | local x = {}; | ||||
| for i=1, select("#", ...), 5 do | |||||
| for i=1, select("#", ...), 6 do | |||||
| local temp = {}; | local temp = {}; | ||||
| temp.name = select(i, ...); | temp.name = select(i, ...); | ||||