FriendList::SetFriendName
function · net · orchestration
- Address
0x5aeac0· 105 bytes, up to0x5aeb28- Signature
void __thiscall (FriendList *this, uint64_t guid, const char *name)- Meaning
- Replaces the name string of the friend slot holding a GUID with a heap copy
- Confidence
- verified, proof one
- Finding
- net/friends#friend-status-result
Finding: Friend status result in net: friends
SMSG_FRIEND_STATUS (0x68) is a result byte and a guid, read by 0x5add30 and passed to 0x5acab0 with the packet; the handler returns 1 even when there is no friend list. The result selects an action and a game error 0x496720 shows. Results 2, 3, 5, 6, 7 and 8 name a friend and 14, 15 and 16 an ignored player, so their message waits for a cache lookup, finished by 0x5ace70 for a friend and 0x5acf40 for an ignore (0x5acb7d, 0x5acd1e, 0x5acd42, 0x5acd64).
| result | action on the slot | game error |
|---|---|---|
| 0, 4 | none | ERR_FRIEND_NOT_FOUND |
| 1 | none | ERR_FRIEND_LIST_FULL |
| 2 | read status byte, area, level, class into the guid's slot, mark it online | ERR_FRIEND_ONLINE_SS |
| 3 | mark offline | ERR_FRIEND_OFFLINE_S |
| 5 | clear the slot | ERR_FRIEND_REMOVED_S |
| 6, 7 | find or claim a slot; 6 reads the four fields as 2 does, then 6 marks online, 7 offline | ERR_FRIEND_ADDED_S |
| 8 | find or claim a slot | ERR_FRIEND_ALREADY_S |
| 9, 10 | none | ERR_FRIEND_SELF, ERR_FRIEND_WRONG_FACTION |
| 11, 12, 13 | none | ERR_IGNORE_FULL, ERR_IGNORE_SELF, ERR_IGNORE_NOT_FOUND |
| 14, 15, 16 | 15 adds the guid to the ignores, 16 removes it | ERR_IGNORE_ALREADY_S, ERR_IGNORE_ADDED_S, ERR_IGNORE_REMOVED_S |
| 17, 18 and up | none | ERR_IGNORE_AMBIGUOUS, ERR_FRIEND_ERROR |
The derivation is in the doc.
Callers 2
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.