static int GetName(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); NPCDataConfig obj = (NPCDataConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "NPCDataConfig"); uint arg0 = (uint)LuaScriptMgr.GetNumber(L, 2); string o = obj.GetName(arg0); LuaScriptMgr.Push(L, o); return(1); }