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> 759GetNumStablePetsReturns the number <strong>of</strong> stabled pets.numPets = GetNumStablePets()Returned value does not include the current pet.Returns:numPets—Number <strong>of</strong> pets in the stables (number)GetNumStableSlotsReturns the number <strong>of</strong> stable slots the player has purchased.numSlots = GetNumStableSlots()Returns:numSlots—Number <strong>of</strong> usable stable slots (number)GetNumTalentGroupsReturns the number <strong>of</strong> talent specs a character can switch among.numTalentGroups = GetNumTalentGroups(isInspect, isPet)Arguments:isInspect—true to query talent info <strong>for</strong> the currently inspected unit, false toquery talent info <strong>for</strong> the player (boolean)isPet—true to query talent info <strong>for</strong> the player’s pet, false to query talent inf<strong>of</strong>or the player (boolean)Returns:numTalentGroups—Number <strong>of</strong> talent groups the character has enabled(number)1—Default2—The character has purchased Dual Talent SpecializationGetNumTalentTabsReturns the number <strong>of</strong> talent tabs <strong>for</strong> the player, pet, or inspect target.numTabs = GetNumTalentTabs(inspect, pet)Arguments:inspect—true to return in<strong>for</strong>mation <strong>for</strong> the currently inspectedunit; false to return in<strong>for</strong>mation <strong>for</strong> the player (boolean)pet—true to return in<strong>for</strong>mation <strong>for</strong> the player’s pet; false to return in<strong>for</strong>mation<strong>for</strong> the player (boolean)Returns:numTabs—Number <strong>of</strong> talent tabs (number)GetNumTalentsReturns the number <strong>of</strong> options in a talent tab.numTalents = GetNumTalents(tabIndex, inspect, pet)Arguments:tabIndex—Index <strong>of</strong> a talent tab (between 1 <strong>and</strong> GetNumTalentTabs())(number)

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

Saved successfully!

Ooh no, something went wrong!