benilla-re systems structs docs

Script::SetGuildRosterSelection

function · ui · primitive

Address
0x4d1820 · 106 bytes, up to 0x4d1889
Signature
int __fastcall (lua_State *L)
Meaning
Stores the GUID of the roster member at an index as the selection
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/guild#last-online-and-selection

Finding: Last online and selection in ui: the guild roster and its Lua API

GetGuildRosterLastOnline(index) returns four numbers, years, months, days and hours, and four nils for an index out of range, a missing member or an online member. With t the stored float in days: years = trunc(t * f32(1/365)); rem = t - years * 365; months = trunc(rem * f32(1/30)); r = f32(rem - months * 30); days = trunc(r); hours = trunc((r - days) * 24). GetGuildRosterSelection() returns the selected member's 1-based index, or 0 when nothing is selected or the member left; SetGuildRosterSelection(index) stores the member's GUID, or 0 for an index out of range, and raises Usage: SetGuildRosterSelection(index) without a number.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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