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> 753Returns valid in<strong>for</strong>mation even if the player is not interacting with a guildbank vault.Returns:numTabs—Number <strong>of</strong> active tabs in the guild bank (number)GetNumGuildBankTransactionsReturns the number <strong>of</strong> entries in a guild bank tab’s transaction log.numTransactions = GetNumGuildBankTransactions(tab)Only returns valid in<strong>for</strong>mation following the GUILDBANKLOG_UPDATE eventwhich fires after calling QueryGuildBankLog().Arguments:tab—Index <strong>of</strong> a guild bank tab (between 1 <strong>and</strong> GetNumGuildBankTabs())(number)Returns:numTransactions—Number <strong>of</strong> transactions in the tab’s log (number)GetNumGuildEventsReturns the number <strong>of</strong> entries in the guild event log.numEvents = GetNumGuildEvents()Only returns valid data after calling QueryGuildEventLog() <strong>and</strong> thefollowing GUILD_EVENT_LOG_UPDATE event has fired.Returns:numEvents—Number <strong>of</strong> entries in the guild event log (number)GetNumGuildMembersReturns the number <strong>of</strong> members in the guild roster.numGuildMembers = GetNumGuildMembers([includeOffline])Arguments:includeOffline (optional)—True to count all members in the guild; falseor omitted to count only those members currently online (boolean)Returns:numGuildMembers—Number <strong>of</strong> members in the guild roster (number)GetNumIgnoresReturns the number <strong>of</strong> characters on the player’s ignore list.numIgnores = GetNumIgnores()Returns:numIgnores—Number <strong>of</strong> characters currently on the ignore list (number)GetNumLFGResultsReturns the number <strong>of</strong> results from a LFM query.numResults, totalCount = GetNumLFGResults(type, index)Arguments:type—Index <strong>of</strong> an LFG query type (in the list returned by GetLFGTypes())(number)

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

Saved successfully!

Ooh no, something went wrong!