瀏覽代碼

Quest functions changed return lists again

tags/2.1.8
SabinDeus 9 年之前
父節點
當前提交
2b9a01000f
共有 1 個文件被更改,包括 10 次插入3 次删除
  1. 10
    3
      TurnIn.lua

+ 10
- 3
TurnIn.lua 查看文件

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, ...);

Loading…
取消
儲存