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
This commit is contained in:
parent
6ca6548640
commit
938033ded7
36
TurnIn.lua
36
TurnIn.lua
@ -207,6 +207,9 @@ function TI_SlashCmdHandler(cmd)
|
||||
window = function ()
|
||||
TI_OptionsFrame:Show();
|
||||
end,
|
||||
config = function ()
|
||||
TI_OptionsFrame:Show();
|
||||
end,
|
||||
recent = function ()
|
||||
TI_TempNPCListWindow:Show();
|
||||
end,
|
||||
@ -314,7 +317,7 @@ function TI_OnEvent(self, event, ...)
|
||||
TI_debug("Quest Detail");
|
||||
TI_gossipclosed = false;
|
||||
if(TI_IsNPCOn(UnitName("npc"), "availquest")) then
|
||||
AcceptQuest();
|
||||
TI_HandleAcceptQuest();
|
||||
end
|
||||
TI_ResetPointers();
|
||||
end
|
||||
@ -328,6 +331,11 @@ function TI_OnEvent(self, event, ...)
|
||||
end
|
||||
end
|
||||
|
||||
function TI_HandleAcceptQuest()
|
||||
QuestInfoFadingFrame_OnUpdate(QuestInfoFadingFrame, 1);
|
||||
QuestDetailAcceptButton_OnClick();
|
||||
end
|
||||
|
||||
function TI_HandleQuestProgress()
|
||||
|
||||
local questname = GetTitleText();
|
||||
@ -357,10 +365,12 @@ end
|
||||
|
||||
function TI_CompleteQuest()
|
||||
if(IsQuestCompletable()) then
|
||||
TI_debug("quest is completable, completeing");
|
||||
CompleteQuest();
|
||||
TI_ResetPointers();
|
||||
else
|
||||
DeclineQuest();
|
||||
TI_debug("quest is not completable, declining");
|
||||
QuestDetailDeclineButton_OnClick();
|
||||
end
|
||||
end
|
||||
|
||||
@ -616,17 +626,20 @@ end
|
||||
function TI_TabulateGossipAvailableQuests(...)
|
||||
local x = {};
|
||||
|
||||
for i=1, select("#", ...), 5 do
|
||||
for i=1, select("#", ...), 6 do
|
||||
local temp = {};
|
||||
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
|
||||
temp.icon = "Interface\\GossipFrame\\DailyQuestIcon";
|
||||
elseif ( isRepeatable ) then
|
||||
temp.icon = "Interface\\GossipFrame\\DailyActiveQuestIcon";
|
||||
elseif ( isLegendary ) then
|
||||
temp.icon = "Interface\\GossipFrame\\AvailableLegendaryQuestIcon";
|
||||
else
|
||||
temp.icon = "Interface\\GossipFrame\\AvailableQuestIcon";
|
||||
end
|
||||
@ -639,13 +652,18 @@ end
|
||||
function TI_TabulateGossipActiveQuests(...)
|
||||
local x = {};
|
||||
|
||||
for i=1, select("#", ...), 4 do
|
||||
for i=1, select("#", ...), 5 do
|
||||
local temp = {};
|
||||
temp.name = select(i, ...);
|
||||
|
||||
isComplete = select(i+3, ...);
|
||||
local isComplete = select(i+3, ...);
|
||||
local isLegendary = select(i+4, ...);
|
||||
if(isComplete) then
|
||||
temp.icon = "Interface\\GossipFrame\\ActiveQuestIcon";
|
||||
if(isLegendary) then
|
||||
temp.icon = "Interface\\GossipFrame\\ActiveLegendaryQuestIcon";
|
||||
else
|
||||
temp.icon = "Interface\\GossipFrame\\ActiveQuestIcon";
|
||||
end
|
||||
else
|
||||
temp.icon = "Interface\\GossipFrame\\IncompleteQuestIcon";
|
||||
end
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
## Interface: 40000
|
||||
## X-Compatible-With: 40000
|
||||
## Interface: 50000
|
||||
## X-Compatible-With: 50000
|
||||
## Title: Turn In
|
||||
## Notes: Automates the selection of quest and gossip options.
|
||||
## SavedVariables: TI_status, TI_NPCDB, TI_NPCIndex
|
||||
|
||||
Loading…
Reference in New Issue
Block a user