|
|
|
|
|
|
|
|
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); |
|
|
TI_FunctionList.g.gossip(i2); |
|
|
|
|
|
|
|
|
if(v2.args) then |
|
|
|
|
|
TI_FunctionList.g.gossip(v2.args); |
|
|
|
|
|
else |
|
|
|
|
|
TI_FunctionList.g.gossip(i2); |
|
|
|
|
|
end |
|
|
return; |
|
|
return; |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
|
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, |