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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 27 ■ API <strong>Reference</strong> 747GetNumArenaOpponentsReturns the number <strong>of</strong> enemy players in an arena match.numOpponents = GetNumArenaOpponents()Returns:numOpponents—Number<strong>of</strong>enemyplayersinanarenamatch(number)GetNumArenaTeamMembersReturns the number <strong>of</strong> members in an arena team.numMembers = GetNumArenaTeamMembers(teamindex, showOffline)Arguments:teamindex—The index <strong>of</strong> the arena team, based on the order they are displayedin the PvP tab. (number)showOffline—True to include currently <strong>of</strong>fline members in the count; otherwisefalse (boolean)Returns:numMembers—Number <strong>of</strong> characters on the team (number)GetNumAuctionItemsReturns the number <strong>of</strong> auction items in a listing.numBatchAuctions, totalAuctions = GetNumAuctionItems(“list“)Arguments:list—Type <strong>of</strong> auction listing (string)bidder—Auctions the player has bid onlist—Auctions the player can browse <strong>and</strong> bid on or buy outowner—Auctions the player placedReturns:numBatchAuctions—Number <strong>of</strong> auctions in the current page <strong>of</strong> the listing(number)totalAuctions—Total number <strong>of</strong> auctions available <strong>for</strong> the listing (number)GetNumAvailableQuestsReturns the number quests available from the current Quest NPC.numAvailableQuests = GetNumAvailableQuests()Only returns valid in<strong>for</strong>mation after a QUEST_GREETING event.Note: Most quest NPCs present available quests using theGetGossipAvailableQuests() instead <strong>of</strong> this function.Returns:numAvailableQuests—Number <strong>of</strong> quests available from the current QuestNPC (number)GetNumBankSlotsReturns in<strong>for</strong>mation about purchased bank bag slots.numSlots, isFull = GetNumBankSlots()Returns:numSlots—Number <strong>of</strong> bank bag slots the player has purchased (number)

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

Saved successfully!

Ooh no, something went wrong!