瀏覽代碼

fixed long standing fontstring alpha bug

fixed calls to getgossip...quests for 5.0
fixed repeated npc interact bug on QUEST_PROGRESS for 5.0
updated TOC
tags/2.1.3
SabinDeus 13 年之前
父節點
當前提交
938033ded7
共有 2 個檔案被更改,包括 30 行新增12 行删除
  1. 27
    9
      TurnIn.lua
  2. 3
    3
      TurnIn.toc

+ 27
- 9
TurnIn.lua 查看文件

window = function () window = function ()
TI_OptionsFrame:Show(); TI_OptionsFrame:Show();
end, end,
config = function ()
TI_OptionsFrame:Show();
end,
recent = function () recent = function ()
TI_TempNPCListWindow:Show(); TI_TempNPCListWindow:Show();
end, end,
TI_debug("Quest Detail"); TI_debug("Quest Detail");
TI_gossipclosed = false; TI_gossipclosed = false;
if(TI_IsNPCOn(UnitName("npc"), "availquest")) then if(TI_IsNPCOn(UnitName("npc"), "availquest")) then
AcceptQuest();
TI_HandleAcceptQuest();
end end
TI_ResetPointers(); TI_ResetPointers();
end end
end end
end end


function TI_HandleAcceptQuest()
QuestInfoFadingFrame_OnUpdate(QuestInfoFadingFrame, 1);
QuestDetailAcceptButton_OnClick();
end

function TI_HandleQuestProgress() function TI_HandleQuestProgress()
local questname = GetTitleText(); local questname = GetTitleText();


function TI_CompleteQuest() function TI_CompleteQuest()
if(IsQuestCompletable()) then if(IsQuestCompletable()) then
TI_debug("quest is completable, completeing");
CompleteQuest(); CompleteQuest();
TI_ResetPointers(); TI_ResetPointers();
else else
DeclineQuest();
TI_debug("quest is not completable, declining");
QuestDetailDeclineButton_OnClick();
end end
end end


function TI_TabulateGossipAvailableQuests(...) function TI_TabulateGossipAvailableQuests(...)
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, ...);
isTrivial = select(i+2, ...);
isDaily = select(i+3, ...);
isRepeatable = select(i+4, ...);
local isTrivial = select(i+2, ...);
local isDaily = select(i+3, ...);
local isRepeatable = select(i+4, ...);
local isLegendary = select(i+5, ...);
if ( isDaily ) then if ( isDaily ) then
temp.icon = "Interface\\GossipFrame\\DailyQuestIcon"; temp.icon = "Interface\\GossipFrame\\DailyQuestIcon";
elseif ( isRepeatable ) then elseif ( isRepeatable ) then
temp.icon = "Interface\\GossipFrame\\DailyActiveQuestIcon"; temp.icon = "Interface\\GossipFrame\\DailyActiveQuestIcon";
elseif ( isLegendary ) then
temp.icon = "Interface\\GossipFrame\\AvailableLegendaryQuestIcon";
else else
temp.icon = "Interface\\GossipFrame\\AvailableQuestIcon"; temp.icon = "Interface\\GossipFrame\\AvailableQuestIcon";
end end
function TI_TabulateGossipActiveQuests(...) function TI_TabulateGossipActiveQuests(...)
local x = {}; local x = {};
for i=1, select("#", ...), 4 do
for i=1, select("#", ...), 5 do
local temp = {}; local temp = {};
temp.name = select(i, ...); temp.name = select(i, ...);
isComplete = select(i+3, ...);
local isComplete = select(i+3, ...);
local isLegendary = select(i+4, ...);
if(isComplete) then if(isComplete) then
temp.icon = "Interface\\GossipFrame\\ActiveQuestIcon";
if(isLegendary) then
temp.icon = "Interface\\GossipFrame\\ActiveLegendaryQuestIcon";
else
temp.icon = "Interface\\GossipFrame\\ActiveQuestIcon";
end
else else
temp.icon = "Interface\\GossipFrame\\IncompleteQuestIcon"; temp.icon = "Interface\\GossipFrame\\IncompleteQuestIcon";
end end

+ 3
- 3
TurnIn.toc 查看文件

## Interface: 40000
## X-Compatible-With: 40000
## Interface: 50000
## X-Compatible-With: 50000
## Title: Turn In ## Title: Turn In
## Notes: Automates the selection of quest and gossip options. ## Notes: Automates the selection of quest and gossip options.
## SavedVariables: TI_status, TI_NPCDB, TI_NPCIndex ## SavedVariables: TI_status, TI_NPCDB, TI_NPCIndex
## Version: 2.1 ## Version: 2.1
TurnIn.xml
TurnIn.xml

Loading…
取消
儲存