Explorar el Código

Quest functions changed return lists again

tags/2.1.8
SabinDeus hace 9 años
padre
commit
2b9a01000f
Se han modificado 1 ficheros con 10 adiciones y 3 borrados
  1. 10
    3
      TurnIn.lua

+ 10
- 3
TurnIn.lua Ver fichero

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

Cargando…
Cancelar
Guardar