This isn't really too essential, and I'm maybe just being a bit too picky here, but is there any way to do the following:
Convert 123123 to 123,123 ?
I created the following function for use on the AUCTION_HOUSE_CLOSED event:
local announce = C.GetActiveProfile().Modules[module].sayListingValueOnClose;
local value =0;
local pageAuctions, totalAuctions = GetNumAuctionItems("owner");
for i =1, totalAuctions do
value =( value + select(10, GetAuctionItemInfo("owner", i)));
I've discovered though that GetCoinTextureString() returns the number format described above. I've tried my hand at using string.format but I've not had any luck so far.
One other completely unrelated question while I'm here. When a variable is expressed within a function (for example "announce" in the function above; I understand it to be local to that function only. What I'm not sure of though is, what if I omitted the 'local'? Would it become a Global and pollute the global namespace, or will it still be local only to that function?