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() {