I just looked at source and there seems to be no function like this.
So add this function:
[cpp]int32_t LuaScriptInterface::luaGetItemText(lua_State* L)
{
//getItemText(uid)
uint32_t uid = popNumber(L);
ScriptEnvironment* env = getScriptEnv();
const Item* item = env->getItemByUID(uid);
if(item)
lua_pushstring(L, item->getText().c_str());
else
{
reportErrorFunc(getErrorDesc(LUA_ERROR_ITEM_NOT_FOUND));
lua_pushboolean(L, false);
}
return 1;
}[/cpp]
Also, dont forget to register the function in luascript.cpp and declare it in luascript.h.