From 9d321e23f344a6f0ddbbdd96a59aa57cb3cd7161 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 13 Oct 2012 11:57:58 +0200 Subject: [PATCH] Ignore specific items from beeing automaticly started --- Monomyth.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Monomyth.lua b/Monomyth.lua index ea1584c..41ebcb9 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -210,12 +210,30 @@ Monomyth:Register('MERCHANT_CLOSED', function() atMerchant = false end) +local ignoredItems = { + -- Inscription weapons + [31690] = true, -- Inscribed Tiger Staff + [31691] = true, -- Inscribed Crane Staff + [31692] = true, -- Inscribed Serpent Staff + + -- Darkmoon Faire artifacts + [29443] = true, -- Imbued Crystal + [29444] = true, -- Monstrous Egg + [29445] = true, -- Mysterious Grimoire + [29446] = true, -- Ornate Weapon + [29451] = true, -- A Treatise on Strategy + [29456] = true, -- Banner of the Fallen + [29457] = true, -- Captured Insignia + [29458] = true, -- Fallen Adventurer's Journal + [29464] = true, -- Soothsayer's Runes +} + Monomyth:Register('BAG_UPDATE', function(bag) if(atBank or atMail or atMerchant) then return end for slot = 1, GetContainerNumSlots(bag) do local _, id, active = GetContainerItemQuestInfo(bag, slot) - if(id and not active and not IsQuestFlaggedCompleted(id)) then + if(id and not active and not IsQuestFlaggedCompleted(id) and not ignoredItems[id]) then UseContainerItem(bag, slot) end end -- 1.7.9.5