I worked way too hard on the wrong way to go about this and thanks for your patience
It was time to do some major refactoring so I created the sandbox_refactor branch here:
https://github.com/marcjordan2112/eg...ndbox_refactor
Run it with use_ecl == false and you get something like this:
Code:
EGR eventCode=589829, currencyType=1=1, currencyLocation=0=0 reason=1=1,
newAmount=1507452, oldAmount=1507461, delta_amount=-9
Then run it with use_ecl == true and get this error:
Code:
user:/AddOns/EsoGrinder/EsoGrinder.lua:108: function expected instead of nil
stack traceback:
user:/AddOns/EsoGrinder/EsoGrinder.lua:108: in function
'EsoGrinder.EventCurrencyUpdateHandler'
<Locals> eventCode = 589829, currencyType = 1, currencyLocation = 0,
newAmount = 1507461, oldAmount = 1507470, thisReason = 1, new_amount = 1507461,
old_amount = 1507470, delta_amount = -9, currency_type = 1,
currency_location = 0, reason = 1, use_ecl = T </Locals>
And this from tbug:
Code:
[TBUG]No inspector for 'CurrencyType_get_string' ("nil")