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