benilla-re systems structs docs

s_guildSelection

global · ui

Address
0xb73128 · 8 bytes, up to 0xb7312f
Type
uint64_t
Meaning
Holds the GUID of the selected roster member, 0 for none
Confidence
verified, proof one
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.