FriendListStatusHandler
function · net · orchestration
- Address
0x5add30· 73 bytes, up to0x5add78- Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)- Meaning
- Reads opcode 0x68 result and guid and passes them with the message to 0x5acab0
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 3
- CDataStore::GetUInt8 base
- CDataStore::GetGuid base
- FriendList::HandleStatus net
Calls and jumps by a bare address, from tables/calls.tsv.