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.

832 Part IV ■ <strong>Reference</strong>GuildInfoRequests guild in<strong>for</strong>mation from the server.Fires two CHAT_MSG_SYSTEM events, one containing the name <strong>of</strong> the guild,followed by one containing the date the guild was created <strong>and</strong> how manyplayers <strong>and</strong> accounts belong to the guild.GuildInviteInvites a character to join the player’s guild.ConfirmationGuildInvite(“name“)Arguments:name—Name <strong>of</strong> a character to invite (string)GuildLeaveLeaves the player’s current guild.GuildPromoteIncreases a guild member’s rank by one.GuildPromote(“name“)The player can only promote members up to the rank immediately below theplayer’s own, <strong>and</strong> only if the player has permission to promote (i.e. ifCanGuildPromote() returns 1).Arguments:name—Name <strong>of</strong> a guild member to promote (string)GuildRosterRequests guild roster in<strong>for</strong>mation from the server.In<strong>for</strong>mation is not returned immediately; the GUILD_ROSTER_UPDATE eventfires when data is available <strong>for</strong> retrieval via GetGuildRosterInfo() <strong>and</strong>related functions. Requests are throttled to reduce server load; the server willonly respond to a new request approximately 10 seconds after a previousrequest.GuildRosterSetOfficerNoteSets the <strong>of</strong>ficer note <strong>for</strong> a guild member.GuildRosterSetOfficerNote(index, “note“)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)note—Note text to set <strong>for</strong> the guild member (up to 31 characters) (string)GuildRosterSetPublicNoteSets the public note <strong>for</strong> a guild member.GuildRosterSetPublicNote(index, “note“)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)note—Note text to set <strong>for</strong> the guild member (up to 31 characters) (string)

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

Saved successfully!

Ooh no, something went wrong!