galera queria adaptar essa função
int32_t LuaScriptInterface::luaGetCreatureName(lua_State* L)
{
//getCreatureName(cid)
ScriptEnviroment* env = getEnv();
if(Creature* creature = env->getCreatureByUID(popNumber(L)))
lua_pushstring(L, creature->getName().c_str());
else
{
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
lua_pushboolean(L, false);
}
return 1;
}
eu queria que quando essa função foce usada em um montros essa linha:
lua_pushstring(L, creature->getName().c_str());
foce substituída por:
lua_pushstring(L, monster->nomereal.c_str());











