Script::SetSelectedFriend
function · net · orchestration
- Address
0x5ad210· 69 bytes, up to0x5ad254- Signature
int __fastcall (lua_State *L)- Meaning
- Selects the friend at a 1-based index through 0x5ae4d0, raising a usage error for a non-number
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- net/friends#selecting-and-removing-friends
Finding: Selecting and removing friends in net: friends
SetSelectedFriend(index) (0x5ad210) and RemoveFriend(index) (0x5ad2d0) turn a number into a slot as __ftol(index) − 1. 0x5ae4d0 stores the guid of that slot at +0x648 for a slot of at most 50 and zero above, so index 0 or less clears the selection; slot 50 is +0x648 itself and keeps it. A number (a numeric string included) sent to RemoveFriend reaches 0x5ae7e0, which sends CMSG_DEL_FRIEND (0x6a, the guid) for a slot below 50 whose guid is not 0. Another string reaches 0x5ae6f0, which sends it for the first of the 50 slots with a name equal to the string without case, or shows ERR_FRIEND_NOT_FOUND (0x108). Neither binding tests 0xc28168.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- __ftol crt
- FriendList::SetSelectedFriend net
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.