Script::GetGuildRosterLastOnline
function · ui · primitive
- Address
0x4d14a0· 312 bytes, up to0x4d15d7- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes years, months, days and hours since an offline member was online
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/guild#last-online-and-selection
- Test
ui::luabind_4d14a0_guild_last_online
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 6
- __ftol crt
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.