Quantcast

Auto-skip gossip aswell

Adrian L Lange [05-31-11 - 17:07]
Auto-skip gossip aswell
Filename
Monomyth.lua
diff --git a/Monomyth.lua b/Monomyth.lua
index 2b24411..c81a439 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -52,6 +52,13 @@ addon:Register('GOSSIP_SHOW', function()
 			SelectGossipAvailableQuest(index)
 		end
 	end
+
+	if(available == 0 and active == 0 and GetNumGossipOptions() == 1) then
+		local _, type = GetGossipOptions()
+		if(type == 'gossip') then
+			return SelectGossipOption(1)
+		end
+	end
 end)

 QuestFrame:UnregisterEvent('QUEST_DETAIL')