[Question] Lua Callback: Return table of values
Hi there. I'm not sure if this was answered before, search didn't return anything when I searched for the functions I will be asking info about. I am currently working on Lua Callbacks for an injected app and I would need to return a table of values (so we can return the list from CurrObjectMgr). My idea with this function is actually to return a table of the GUID of all loaded Objects so the Lua scripts can get information from them by calling other functions that take GUID as parameter (and eventually return all objects by type). This idea should work pretty good, but I'm really unsure on how I can return a table. I've searched a bit on google and found this post which explain just well the concept of it. My problem now is that we don't have the lua_settable function in the dump here. And search showed me that nobody ever talked about it here, so I guess there must be an alternative or something.
I would like some tips on either an alternative to this or where/how to get the lua_settable function address.
Thanks for any help.
Last edited by DrakeFish; 06-16-2011 at 11:56 AM.
These ads disappear when you log in.