Mercurial > wow > wowdb-profiler
comparison Main.lua @ 514:fc7a86235431
Added a note about some code that doesn't work properly after Patch 7.0.3 (and for which there is no known workaround).
author | MMOSimca <mmosimca@gmail.com> |
---|---|
date | Tue, 08 Nov 2016 15:49:23 -0500 |
parents | 16498dc5159f |
children | 4a965d3ac13d |
comparison
equal
deleted
inserted
replaced
513:6f3e9b9ee2ed | 514:fc7a86235431 |
---|---|
1777 TradeSkillExecutePer(RecordDiscovery) | 1777 TradeSkillExecutePer(RecordDiscovery) |
1778 end | 1778 end |
1779 | 1779 |
1780 | 1780 |
1781 function WDP:CHAT_MSG_SYSTEM(event_name, message) | 1781 function WDP:CHAT_MSG_SYSTEM(event_name, message) |
1782 -- This code no longer works, as of Patch 7.0.3, because Blizzard unified the text from quest rewards and loot to match (and now there is no way to distinguish between them) | |
1782 local item_link, quantity = deformat(message, ERR_QUEST_REWARD_ITEM_MULT_IS) | 1783 local item_link, quantity = deformat(message, ERR_QUEST_REWARD_ITEM_MULT_IS) |
1783 if not item_link then | 1784 if not item_link then |
1784 quantity, item_link = 1, deformat(message, ERR_QUEST_REWARD_ITEM_S) | 1785 quantity, item_link = 1, deformat(message, ERR_QUEST_REWARD_ITEM_S) |
1785 end | 1786 end |
1786 local item_id = ItemLinkToID(item_link) | 1787 local item_id = ItemLinkToID(item_link) |
1787 | 1788 |
1788 -- If it isn't a quest message, check the other uses of system messages | 1789 if item_id then |
1789 if not item_id then | 1790 -- If it was a quest message (that we can decode), parse its link |
1791 RecordItemData(item_id, item_link, true) | |
1792 else | |
1793 -- If it isn't a quest message, check the other uses of system messages | |
1790 if not private.trainer_shown then | 1794 if not private.trainer_shown then |
1791 local recipe_name = message:match(RECIPE_MATCH) | 1795 local recipe_name = message:match(RECIPE_MATCH) |
1792 | 1796 |
1793 if recipe_name and private.previous_spell_id then | 1797 if recipe_name and private.previous_spell_id then |
1794 local profession_name, prof_level = _G.C_TradeSkillUI.GetTradeSkillLine() | 1798 local profession_name, prof_level = _G.C_TradeSkillUI.GetTradeSkillLine() |
1814 if message == DRUNK_COMPARES[index] or message:match(DRUNK_MATCHES[index]) then | 1818 if message == DRUNK_COMPARES[index] or message:match(DRUNK_MATCHES[index]) then |
1815 currently_drunk = true | 1819 currently_drunk = true |
1816 break | 1820 break |
1817 end | 1821 end |
1818 end | 1822 end |
1819 return | 1823 end |
1820 end | |
1821 | |
1822 -- If it is an item, parse its link | |
1823 RecordItemData(item_id, item_link, true) | |
1824 end | 1824 end |
1825 end | 1825 end |
1826 | 1826 |
1827 | 1827 |
1828 do | 1828 do |