From 176ccb6e15f18fe0c884ea257770de7e661b00cd Mon Sep 17 00:00:00 2001 From: p3lim Date: Mon, 3 Jan 2011 17:04:21 +0100 Subject: [PATCH] Use BAG_UPDATE, ITEM_PUSH is fired before the item is placed in the inventory --- Monomyth.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Monomyth.lua b/Monomyth.lua index a85909d..adb638d 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -70,11 +70,8 @@ addon:Register('QUEST_AUTOCOMPLETE', function() end end) -addon:Register('ITEM_PUSH', function(bag) - -- This is some weird shit - if(bag > 0) then - bag = bag - CharacterBag0Slot:GetID() + 1 - end +addon:Register('BAG_UPDATE', function(bag) + if(bag < 0) then return end for slot = 1, GetContainerNumSlots(bag) do local _, id, active = GetContainerItemQuestInfo(bag, slot) -- 1.7.9.5