View Single Post
01-05-15, 08:36 PM   #2
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
One minute code job. The amount from the cache is printed to chat, so you could know it through related events and some pattern matching. If you are curious as to the amount before opening it, I am not sure that is possible to be known.

Lua Code:
  1. for i = 1, GetCurrencyListSize() do
  2.     local name, _, _, _, _, count = GetCurrencyListInfo(i)
  3.  
  4.     if (name == "Garrison Resources") then
  5.         print(count)
  6.     end
  7. end

Last edited by Clamsoda : 01-06-15 at 04:48 PM.
  Reply With Quote