Fix for 10.0.7 SelectGossipOption removal
TOC bump
This commit is contained in:
parent
14d9f35361
commit
cc1e393bfc
14
TurnIn.lua
14
TurnIn.lua
@ -563,7 +563,11 @@ function TI_HandleGossipWindow(gorq)
|
|||||||
for i2,v2 in ipairs(GossipOptions) do
|
for i2,v2 in ipairs(GossipOptions) do
|
||||||
if (v2.name == current.name) then
|
if (v2.name == current.name) then
|
||||||
TI_debug(i1.."-Gossip Match Found: "..current.name..", "..current.type);
|
TI_debug(i1.."-Gossip Match Found: "..current.name..", "..current.type);
|
||||||
|
if(v2.args) then
|
||||||
|
TI_FunctionList.g.gossip(v2.args);
|
||||||
|
else
|
||||||
TI_FunctionList.g.gossip(i2);
|
TI_FunctionList.g.gossip(i2);
|
||||||
|
end
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -605,7 +609,8 @@ function TI_HandleGossipWindow(gorq)
|
|||||||
for j,val in ipairs(GossipOptions) do
|
for j,val in ipairs(GossipOptions) do
|
||||||
if(val.type == current.type) then
|
if(val.type == current.type) then
|
||||||
TI_ResetPointers();
|
TI_ResetPointers();
|
||||||
TI_FunctionList.g.gossip(j);
|
TI_debug("Selecting Gossip Option "..j)
|
||||||
|
TI_FunctionList.g.gossip(val.args);
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -726,6 +731,11 @@ function TI_TabulateGossipUIInfo_Retail(guis)
|
|||||||
temp.icon = gui.icon;
|
temp.icon = gui.icon;
|
||||||
temp.gossipOptionID = gui.gossipOptionID
|
temp.gossipOptionID = gui.gossipOptionID
|
||||||
temp.orderIndex = gui.orderIndex
|
temp.orderIndex = gui.orderIndex
|
||||||
|
if (TI_IsRetail()) then
|
||||||
|
temp.args = gui.orderIndex
|
||||||
|
else
|
||||||
|
temp.args = i
|
||||||
|
end
|
||||||
table.insert(x, temp);
|
table.insert(x, temp);
|
||||||
end
|
end
|
||||||
return x;
|
return x;
|
||||||
@ -781,7 +791,7 @@ if (TI_IsRetail()) then
|
|||||||
g = {
|
g = {
|
||||||
availquest = C_GossipInfo.SelectAvailableQuest,
|
availquest = C_GossipInfo.SelectAvailableQuest,
|
||||||
activequest = C_GossipInfo.SelectActiveQuest,
|
activequest = C_GossipInfo.SelectActiveQuest,
|
||||||
gossip = SelectGossipOption,
|
gossip = C_GossipInfo.SelectOptionByIndex,
|
||||||
getavailquests = C_GossipInfo.GetAvailableQuests,
|
getavailquests = C_GossipInfo.GetAvailableQuests,
|
||||||
getactivequests = C_GossipInfo.GetActiveQuests,
|
getactivequests = C_GossipInfo.GetActiveQuests,
|
||||||
getoptions = C_GossipInfo.GetOptions,
|
getoptions = C_GossipInfo.GetOptions,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
## Interface: 100005
|
## Interface: 100007
|
||||||
## X-Compatible-With: 100005
|
## X-Compatible-With: 100007
|
||||||
## 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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user