# HG changeset patch # User MMOSimca # Date 1416657161 18000 # Node ID 2d0899e85e2918742813f68f892ed80ecd706a02 # Parent a096bada400d37856e6cba2b6560eac4609471e5 Added collection of item data (bonusIDs, mainly) for quest rewards. diff -r a096bada400d -r 2d0899e85e29 Main.lua --- a/Main.lua Sat Nov 01 01:33:55 2014 -0400 +++ b/Main.lua Sat Nov 22 06:52:41 2014 -0500 @@ -1493,6 +1493,22 @@ end update_func(item_id, quantity) end + + + function WDP:CHAT_MSG_SYSTEM(event_name, message) + local item_link, quantity = deformat(message, _G.ERR_QUEST_REWARD_ITEM_MULT_IS) + if not item_link then + quantity, item_link = 1, deformat(message, _G.ERR_QUEST_REWARD_ITEM_S) + end + local item_id = ItemLinkToID(item_link) + + if not item_id then + return + end + + -- We only want to record the item's incoming data; no other need for system messages atm. + RecordItemData(item_id, item_link, true) + end end