Mercurial > wow > wowdb-profiler
comparison Main.lua @ 371:2d0899e85e29
Added collection of item data (bonusIDs, mainly) for quest rewards.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Sat, 22 Nov 2014 06:52:41 -0500 |
parents | 2e122726c7dd |
children | 54d5562a6ad5 |
comparison
equal
deleted
inserted
replaced
370:a096bada400d | 371:2d0899e85e29 |
---|---|
1491 RecordItemData(item_id, item_link, true) | 1491 RecordItemData(item_id, item_link, true) |
1492 return | 1492 return |
1493 end | 1493 end |
1494 update_func(item_id, quantity) | 1494 update_func(item_id, quantity) |
1495 end | 1495 end |
1496 | |
1497 | |
1498 function WDP:CHAT_MSG_SYSTEM(event_name, message) | |
1499 local item_link, quantity = deformat(message, _G.ERR_QUEST_REWARD_ITEM_MULT_IS) | |
1500 if not item_link then | |
1501 quantity, item_link = 1, deformat(message, _G.ERR_QUEST_REWARD_ITEM_S) | |
1502 end | |
1503 local item_id = ItemLinkToID(item_link) | |
1504 | |
1505 if not item_id then | |
1506 return | |
1507 end | |
1508 | |
1509 -- We only want to record the item's incoming data; no other need for system messages atm. | |
1510 RecordItemData(item_id, item_link, true) | |
1511 end | |
1496 end | 1512 end |
1497 | 1513 |
1498 | 1514 |
1499 function WDP:RecordQuote(event_name, message, source_name, language_name) | 1515 function WDP:RecordQuote(event_name, message, source_name, language_name) |
1500 if not ALLOWED_LOCALES[CLIENT_LOCALE] or not source_name or not name_to_id_map[source_name] or (language_name ~= "" and not languages_known[language_name]) then | 1516 if not ALLOWED_LOCALES[CLIENT_LOCALE] or not source_name or not name_to_id_map[source_name] or (language_name ~= "" and not languages_known[language_name]) then |