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> 661GetBankSlotCostReturns the cost <strong>of</strong> the next purchasable bank bag slot.cost = GetBankSlotCost()Returns 999999999 if the player owns all available slots.Returns:cost—Cost <strong>of</strong> the next available bank bag slot (in copper) (number)GetBarberShopStyleInfoReturns in<strong>for</strong>mation about the selected barber shop style option.name, unused, cost, isCurrent = GetBarberShopStyleInfo(styleIndex)Arguments:styleIndex—Index <strong>of</strong> a style option (number)1—Hair (or Horn) Style2—Hair (or Horn) Color3—Varies by race <strong>and</strong> gender: Facial Hair, Earrings, Features, Hair, Horns,Markings, Normal, Piercings, or TusksReturns:name—Name <strong>of</strong> the style option, or nil if the style is not named (string)unused—Currently unused (string)cost—Price <strong>of</strong> applying the style option, not including changes to other styleoptions (in copper) (number)isCurrent—1 if the style option matches the character’s existing style; otherwisenil (1nil)GetBarberShopTotalCostReturns the total price <strong>of</strong> selected barber shop style changes.cost = GetBarberShopTotalCost()Returns:cost—Price <strong>of</strong> the barber shop style change (in copper) (number)GetBattlefieldEstimatedWaitTimeReturns the estimated wait time on a battleground or arena queue.waitTime = GetBattlefieldEstimatedWaitTime(index)Arguments:index—Index <strong>of</strong> a battleground/arena queue the player has joined (between 1<strong>and</strong> MAX_BATTLEFIELD_QUEUES) (number)Returns:waitTime—Estimated wait time to join the battleground/arena (in milliseconds)(number)GetBattlefieldFlagPositionReturns the position <strong>of</strong> a flag in a battleground.flagX, flagY, flagToken = GetBattlefieldFlagPosition(index)

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

Saved successfully!

Ooh no, something went wrong!