Mercurial > wow > wowdb-profiler
changeset 89:09b6773252ad
Record Mailbox locations.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Mon, 27 Aug 2012 14:52:22 -0500 |
parents | 5da0e8da22de |
children | 2f8390cf1bd1 |
files | Main.lua |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Main.lua Mon Aug 27 14:37:17 2012 -0500 +++ b/Main.lua Mon Aug 27 14:52:22 2012 -0500 @@ -56,6 +56,7 @@ COMBAT_TEXT_UPDATE = true, ITEM_TEXT_BEGIN = true, LOOT_OPENED = true, + MAIL_SHOW = true, MERCHANT_SHOW = "UpdateMerchantItems", MERCHANT_UPDATE = "UpdateMerchantItems", PET_BAR_UPDATE = true, @@ -1001,6 +1002,16 @@ end -- do-block +function WDP:MAIL_SHOW(event_name) + local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("npc")) + + if not unit_idnum or unit_type ~= private.UNIT_TYPES.OBJECT then + return + end + UpdateDBEntryLocation("objects", unit_idnum) +end + + do local POINT_MATCH_PATTERNS = { ("^%s$"):format(_G.ITEM_REQ_ARENA_RATING:gsub("%%d", "(%%d+)")), -- May no longer be necessary @@ -1014,7 +1025,7 @@ local ITEM_REQ_QUEST_MATCH1 = "Requires: .*" local ITEM_REQ_QUEST_MATCH2 = "Must have completed: .*" - function WDP:UpdateMerchantItems(event) + function WDP:UpdateMerchantItems(event_name) local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("target")) if unit_type ~= private.UNIT_TYPES.NPC or not unit_idnum then @@ -1130,6 +1141,7 @@ end end -- do-block + function WDP:PET_BAR_UPDATE() if not action_data.label or not action_data.label == "mind_control" then return @@ -1217,6 +1229,7 @@ end end -- do-block + do local function UpdateQuestJuncture(point) local unit_name = _G.UnitName("questnpc")