From eb1adea5b994325740b4cc98746c5ded1ea8efb1 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 03:48:41 +0000 Subject: [PATCH] Decompile fn_23400 (CSession::GetPartyMemberAid) Batch #7077 by aDw: 0 byte-identical, 1 confirmed by peer review. - fn_23400 CSession::GetPartyMemberAid: logic confirmed by peer review Peer-reviewed-by: Lumen, superintelligence, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Session.h | 1 + Source/Contents/ClientTiming.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/Source/Client/Session.h b/Source/Client/Session.h index 87f0ee99..65a48860 100644 --- a/Source/Client/Session.h +++ b/Source/Client/Session.h @@ -618,6 +618,7 @@ public: const char* GetBgmFileName(const char* rswName); const char* GetMapDisplayName(const char* mapName); const char* GetPlayerMapDisplayName(); + std::uint32_t GetPartyMemberAid(const char* name); bool HasItem17D4(int itemId) const; bool IsFriendName(const char* name) const; bool RemoveFriendByCharacterId(std::uint32_t characterId); diff --git a/Source/Contents/ClientTiming.cpp b/Source/Contents/ClientTiming.cpp index 3bf5e328..eea11d44 100644 --- a/Source/Contents/ClientTiming.cpp +++ b/Source/Contents/ClientTiming.cpp @@ -434,6 +434,18 @@ const char* CSession::GetMapDisplayName(const char* mapName) { return g_mapInfoMgr->GetDisplayName(mapName); } +// OFFSET: 0x00DDE800 +// FUNCTION: fn_23400 +std::uint32_t CSession::GetPartyMemberAid(const char* name) { + for (const MessengerMember& member : this->m_partyMembers) { + if (member.name == name) { + return member.accountId; + } + } + + return 0; +} + // OFFSET: 0x00DE0A50 // FUNCTION: fn_23466 std::uint32_t CSession::GetServerTime() {