# HG changeset patch # User MMOSimca # Date 1477431825 14400 # Node ID abc372f93293e7636224f3d9570b2c5b36a741a6 # Parent 21397b33ba36505a2a42fc3e25137d81c30dd559 Updated GetQuestLogRewardCurrencyInfo to use the undocumented 4th return (currency_id). diff -r 21397b33ba36 -r abc372f93293 Main.lua --- a/Main.lua Thu Oct 13 10:28:49 2016 -0400 +++ b/Main.lua Tue Oct 25 17:43:45 2016 -0400 @@ -1043,11 +1043,8 @@ if entry["rewards"]["currency_count"] > 0 then entry["rewards"]["currencies"] = {} for i = 1, entry["rewards"]["currency_count"] do - local name, texture_path, quantity = _G.GetQuestLogRewardCurrencyInfo(i, quest_id) - local currency_id = CurrencyInfoToID(name, texture_path) - if currency_id and currency_id ~= 0 then - table.insert(entry["rewards"]["currencies"], ("%d:%d"):format(quantity, currency_id)) - end + local name, texture_path, quantity, currency_id = _G.GetQuestLogRewardCurrencyInfo(i, quest_id) + table.insert(entry["rewards"]["currencies"], ("%d:%d"):format(quantity, currency_id)) end end