Mercurial > wow > wowdb-profiler
diff Main.lua @ 93:526e78d7ce51
Record guild bank locations.
author | James D. Callahan III <jcallahan@curse.com> |
---|---|
date | Tue, 28 Aug 2012 22:20:18 -0500 |
parents | c62f2af669d9 |
children | 75751f08d9f5 |
line wrap: on
line diff
--- a/Main.lua Tue Aug 28 21:43:07 2012 -0500 +++ b/Main.lua Tue Aug 28 22:20:18 2012 -0500 @@ -55,6 +55,7 @@ COMBAT_TEXT_UPDATE = true, FORGE_MASTER_OPENED = true, GOSSIP_SHOW = true, + GUILDBANKFRAME_OPENED = true, ITEM_TEXT_BEGIN = true, LOOT_OPENED = true, MAIL_SHOW = true, @@ -1374,7 +1375,6 @@ if required_tool then for tool_name, registry in pairs(TRADESKILL_TOOLS) do if required_tool:find(tool_name) then - print(("Set %s spell: %d"):format(tool_name, spell_id)) registry[spell_id] = true end end @@ -1562,6 +1562,7 @@ NPCEntry(unit_idnum)[field] = true elseif unit_type == private.UNIT_TYPES.OBJECT then DBEntry("objects", unit_idnum)[field] = true + UpdateDBEntryLocation("objects", unit_idnum) end end @@ -1598,6 +1599,11 @@ end + function WDP:GUILDBANKFRAME_OPENED(event_name) + SetUnitField("guild_bank", private.UNIT_TYPES.OBJECT) + end + + function WDP:TAXIMAP_OPENED(event_name) SetUnitField("flight_master", private.UNIT_TYPES.NPC) end