updated TOC

fixed gossip selection bug
This commit is contained in:
SabinDeus 2012-08-28 05:50:38 +00:00
parent 938033ded7
commit ef3f6d6f91
2 changed files with 6 additions and 7 deletions

View File

@ -406,9 +406,8 @@ function TI_HandleGossipWindow(gorq)
SAcQ=SelectActiveQuest; SAcQ=SelectActiveQuest;
SAvQ=SelectAvailableQuest; SAvQ=SelectAvailableQuest;
end end
local ListEntry = {}; local ListEntry = {};
for i,v in ipairs(AvailableQuests) do for i,v in ipairs(AvailableQuests) do
local x={}; local x={};
@ -478,7 +477,6 @@ function TI_HandleGossipWindow(gorq)
return; return;
end end
TI_debug(npcname); TI_debug(npcname);
if(TI_NPCDB[npcname]) then if(TI_NPCDB[npcname]) then
local thisnpc = TI_NPCDB[npcname]; local thisnpc = TI_NPCDB[npcname];
@ -505,9 +503,10 @@ function TI_HandleGossipWindow(gorq)
return; return;
end end
end end
elseif (current.type == "gossip") then else
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);
SelectGossipOption(i2); SelectGossipOption(i2);
return; return;
end end

View File

@ -1,5 +1,5 @@
## Interface: 50000 ## Interface: 50001
## X-Compatible-With: 50000 ## X-Compatible-With: 50001
## 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