12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 27 ■ API <strong>Reference</strong> 707Only returns valid data after calling GuildRoster() <strong>and</strong> the followingGUILD_ROSTER_UPDATE event has fired.This text appears when clicking the ‘‘Guild In<strong>for</strong>mation’’ button in the defaultUI’s Guild window.Returns:guildInfoText—The guild in<strong>for</strong>mation text (including newline characters)(string)GetGuildRosterInfoReturns in<strong>for</strong>mation about the selected player in your guild roster.name, rank, rankIndex, level, class, zone, note, <strong>of</strong>ficernote, ionline, status, classFileName = GetGuildRosterInfo(index)Only returns valid data after calling GuildRoster() <strong>and</strong> the followingGUILD_ROSTER_UPDATE event has fired.Arguments:index—Index <strong>of</strong> a member in the guild roster (between 1 <strong>and</strong>GetNumGuildMembers()), or 0 <strong>for</strong> no selection (number)Returns:name—Name <strong>of</strong> the member (string)rank—Name <strong>of</strong> the member’s rank (string)rankIndex—Numeric rank <strong>of</strong> the member (0 = guild leader; higher numbers<strong>for</strong> lower ranks) (number)level—Character level <strong>of</strong> the member (number)class—Localized name <strong>of</strong> the member’s class (string)zone—Zone in which the member was last seen (string)note—Public note text <strong>for</strong> the member (string)<strong>of</strong>ficernote—Officer note text <strong>for</strong> the member, or the empty string(““) if the player is not allowed to view <strong>of</strong>ficer notes (string)online—1 if the member is currently online; otherwise nil (1nil)status—Status text <strong>for</strong> the member (string)—Is away from keyboard—Does not want to be disturbedclassFileName—Non-localized token representing the member’s class(string)GetGuildRosterLastOnlineReturns the amount <strong>of</strong> time since a guild member was last online.years, months, days, hours = GetGuildRosterLastOnline(index)Only returns valid data after calling GuildRoster() <strong>and</strong> the followingGUILD_ROSTER_UPDATE event has fired.Arguments:index—Index <strong>of</strong> a member in the guild roster (between 1 <strong>and</strong>GetNumGuildMembers()), or 0 <strong>for</strong> no selection (number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!