benilla-re systems structs docs

Script::RemoveFriend

function · net · orchestration

Address
0x5ad2d0 · 106 bytes, up to 0x5ad339
Signature
int __fastcall (lua_State *L)
Meaning
Removes a friend by a 1-based number through 0x5ae7e0 or by a name through 0x5ae6f0
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 8

Calls and jumps by a bare address, from tables/calls.tsv.