diff --git a/TurnIn.lua b/TurnIn.lua index 7009994..9a51ed6 100644 --- a/TurnIn.lua +++ b/TurnIn.lua @@ -406,9 +406,8 @@ function TI_HandleGossipWindow(gorq) SAcQ=SelectActiveQuest; SAvQ=SelectAvailableQuest; end - - - + + local ListEntry = {}; for i,v in ipairs(AvailableQuests) do local x={}; @@ -478,7 +477,6 @@ function TI_HandleGossipWindow(gorq) return; end - TI_debug(npcname); if(TI_NPCDB[npcname]) then local thisnpc = TI_NPCDB[npcname]; @@ -505,9 +503,10 @@ function TI_HandleGossipWindow(gorq) return; end end - elseif (current.type == "gossip") then + else for i2,v2 in ipairs(GossipOptions) do if (v2.name == current.name) then + TI_debug(i1.."-Gossip Match Found: "..current.name..", "..current.type); SelectGossipOption(i2); return; end diff --git a/TurnIn.toc b/TurnIn.toc index cc538c8..297c7b1 100644 --- a/TurnIn.toc +++ b/TurnIn.toc @@ -1,5 +1,5 @@ -## Interface: 50000 -## X-Compatible-With: 50000 +## Interface: 50001 +## X-Compatible-With: 50001 ## Title: Turn In ## Notes: Automates the selection of quest and gossip options. ## SavedVariables: TI_status, TI_NPCDB, TI_NPCIndex