Mercurial > wow > wowdb-profiler
comparison Main.lua @ 42:a2f1fcc1a813
Record location/IDnum for readable objects (books, etc).
| author | James D. Callahan III <jcallahan@curse.com> |
|---|---|
| date | Thu, 14 Jun 2012 10:52:55 -0500 |
| parents | 7db268f39c50 |
| children | 15f2e3d8463b |
comparison
equal
deleted
inserted
replaced
| 41:7db268f39c50 | 42:a2f1fcc1a813 |
|---|---|
| 39 | 39 |
| 40 local EVENT_MAPPING = { | 40 local EVENT_MAPPING = { |
| 41 CHAT_MSG_SYSTEM = true, | 41 CHAT_MSG_SYSTEM = true, |
| 42 COMBAT_LOG_EVENT_UNFILTERED = true, | 42 COMBAT_LOG_EVENT_UNFILTERED = true, |
| 43 COMBAT_TEXT_UPDATE = true, | 43 COMBAT_TEXT_UPDATE = true, |
| 44 ITEM_TEXT_BEGIN = true, | |
| 44 LOOT_OPENED = true, | 45 LOOT_OPENED = true, |
| 45 MERCHANT_SHOW = "UpdateMerchantItems", | 46 MERCHANT_SHOW = "UpdateMerchantItems", |
| 46 -- MERCHANT_UPDATE = "UpdateMerchantItems", | 47 -- MERCHANT_UPDATE = "UpdateMerchantItems", |
| 47 PET_BAR_UPDATE = true, | 48 PET_BAR_UPDATE = true, |
| 48 PLAYER_TARGET_CHANGED = true, | 49 PLAYER_TARGET_CHANGED = true, |
| 573 UpdateFactionData() | 574 UpdateFactionData() |
| 574 reputation_data[("%s:%s"):format(faction_name, faction_standings[faction_name])] = amount | 575 reputation_data[("%s:%s"):format(faction_name, faction_standings[faction_name])] = amount |
| 575 end | 576 end |
| 576 | 577 |
| 577 | 578 |
| 579 function WDP:ITEM_TEXT_BEGIN() | |
| 580 local unit_type, unit_idnum = ParseGUID(_G.UnitGUID("npc")) | |
| 581 | |
| 582 if not unit_idnum or unit_type ~= private.UNIT_TYPES.OBJECT or _G.UnitName("npc") ~= _G.ItemTextGetItem() then | |
| 583 return | |
| 584 end | |
| 585 UpdateDBEntryLocation("objects", unit_idnum) | |
| 586 end | |
| 587 | |
| 588 | |
| 578 do | 589 do |
| 579 local RE_GOLD = _G.GOLD_AMOUNT:gsub("%%d", "(%%d+)") | 590 local RE_GOLD = _G.GOLD_AMOUNT:gsub("%%d", "(%%d+)") |
| 580 local RE_SILVER = _G.SILVER_AMOUNT:gsub("%%d", "(%%d+)") | 591 local RE_SILVER = _G.SILVER_AMOUNT:gsub("%%d", "(%%d+)") |
| 581 local RE_COPPER = _G.COPPER_AMOUNT:gsub("%%d", "(%%d+)") | 592 local RE_COPPER = _G.COPPER_AMOUNT:gsub("%%d", "(%%d+)") |
| 582 | 593 |
