Add a temporary solution to item quest starters
Adrian L Lange [07-02-11 - 21:15]
Add a temporary solution to item quest starters
diff --git a/Monomyth.lua b/Monomyth.lua
index 1f05588..b1a8182 100644
--- a/Monomyth.lua
+++ b/Monomyth.lua
@@ -122,12 +122,15 @@ end)
Monomyth:Register('BAG_UPDATE', function(bag)
if(bag < 0) then return end
+ QuestCompletedDB = QuestCompletedDB or {}
+
for slot = 1, GetContainerNumSlots(bag) do
local _, id, active = GetContainerItemQuestInfo(bag, slot)
- if(id and not active) then
- -- We should check if the item is cached yet
- -- The negative result of this is a disconnect
+ if(id and not active and not QuestCompletedDB[id]) then
UseContainerItem(bag, slot)
+
+ -- This is a temporary solution to the spam and bugs with some items
+ QuestCompletedDB[id] = true
end
end
end)
diff --git a/Monomyth.toc b/Monomyth.toc
index d6b69a6..994f7cc 100644
--- a/Monomyth.toc
+++ b/Monomyth.toc
@@ -3,5 +3,6 @@
## Version: Alpha
## Title: Monomyth
## Notes: Questing enhancements
+## SavedVariablesPerCharacter: QuestCompletedDB
Monomyth.lua