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> 543Every player has at least NUM_ACTIONBAR_PAGES * NUM_ACTIONBAR_BUTTONS (inthe current client, 6 * 12, or 72) action slots corresponding to the six defaultaction bar pages. In addition, players <strong>of</strong> certain classes (or with certain talents) mayhave additional actionIDs available corresponding to the ‘‘bonus’’ action bars thatautomatically become available when changing stances, stealthing, shapeshifting, etc.ah-list-typeThere are three different types <strong>of</strong> auction house listings, represented by string values.These ah-list-type values may be one <strong>of</strong> the following:list—The items that are currently <strong>for</strong> sale in the auction house.bidder—The items <strong>for</strong> which the player has placed a bid.owner—The items that the player has placed up <strong>for</strong> auction.anchorPointFrames <strong>and</strong> graphical regions are anchored to each other using anchor points, representedby the anchorPoint meta-type. These points are simple strings that indicate apoint on the region. The following are valid anchor point strings:CENTER LEFT BOTTOMRIGHTBOTTOM RIGHT TOPLEFTTOP BOTTOMLEFT TOPRIGHTarenaTeamIDThe arenaTeamID API meta-type identifies one <strong>of</strong> the (up to three) arena teams towhich a player can belong. These indices begin at 1 <strong>for</strong> the player’s smallest team <strong>and</strong>increase with size. For example, if the player belongs to a 2v2 team <strong>and</strong> a 5v5 teamthen 1 will indicate the 2v2 team while 2 refers to the 5v5 team. However, if the playerbelongs to a 3v3 team <strong>and</strong> a 5v5 team but no 2v2 team, then 1 will indicate the 3v3team, <strong>and</strong> 2 will again indicate the 5v5 team. If the player is on teams <strong>of</strong> all three sizes,then 1 indicates the 2v2 team, 2 indicates the 3v3 team <strong>and</strong> 3 indicates the 5v5 team.The Blizzard UI’s Lua function ArenaTeam_GetTeamSizeIDcan be used to translatea team size (2, 3, or 5) to the appropriate arenaTeamID <strong>for</strong> the player.auraFilterBuffs <strong>and</strong> debuffs can be filtered in the <strong>WoW</strong> API using strings that represent complexaura filters, indicated by the auraFilter meta-type. These strings can contain anynumber <strong>of</strong> filterers separated by either the pipe character (|) or a space. Possible filtervalues currently include:HELPFUL—Helpful spells (buffs).HARMFUL—Harmful spells (debuffs).PLAYER—Spells that can be cast by the player on themselves.

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

Saved successfully!

Ooh no, something went wrong!