Lore archive · Warcraft Wiki, 2023 dump
API GetGuildRosterLastOnline
Last wiki revision 2022-07-22
Returns time since the guild member was last online. yearsOffline, monthsOffline, daysOffline, hoursOffline = GetGuildRosterLastOnline(index)
- index: - index of the guild roster entry you wish to query.
- yearsOffline: - number of years since the member was last online. May return nil.
- monthsOffline: - number of months since the member was last online. May return nil.
- daysOffline: - number of days since the member was last online. May return nil.
- hoursOffline: - number of hours since the member was last online. May return nil.
local i, tmax, tname, years, months, days, hours, toff = 1, 0, "placeholder"; while (GetGuildRosterInfo(i) ~= nil) do years, months, days, hours = GetGuildRosterLastOnline(i); years, months, days, hours = years and years or 0, months and months or 0, days and days or 0, hours and hours or 0; toff = (((years*12)+months)*30.5+days)*24+hours; if (toff > tmax) then tname = GetGuildRosterInfo(i); tmax = toff; end i = i + 1; end message("Been offline the longest: " .. tname .. " (~" .. tmax .. " hours)");
Displays a message with the name of the person in your guild who has been offline the longest. Note that this requires an updated guild list showing offline members (open Social tab, click "Show offline members").
Source
https://warcraft.wiki.gg/wiki/API_GetGuildRosterLastOnline · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.