Selaa lähdekoodia

Fix for 10.0.7 SelectGossipOption removal

TOC bump
tags/2.3.4
SabinDeus 2 vuotta sitten
vanhempi
commit
cc1e393bfc
2 muutettua tiedostoa jossa 15 lisäystä ja 5 poistoa
  1. 13
    3
      TurnIn.lua
  2. 2
    2
      TurnIn.toc

+ 13
- 3
TurnIn.lua Näytä tiedosto

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,

+ 2
- 2
TurnIn.toc Näytä tiedosto

## Interface: 100005
## X-Compatible-With: 100005
## Interface: 100007
## 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…
Peruuta
Tallenna