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.

682 Part IV ■ <strong>Reference</strong>enable—1 if a Cooldown UI element should be used to display the cooldown,otherwise 0. (Does not always correlate with whether the companion is ready.)(number)GetCompanionInfoReturns in<strong>for</strong>mation about a non-combat pet or mount.creatureID, creatureName, spellID, icon, active = iGetCompanionInfo(“type“, index)Arguments:type—Type <strong>of</strong> companion (string)CRITTER—A non-combat petMOUNT—A mountindex—Index <strong>of</strong> a companion (between 1 <strong>and</strong> GetNumCompanions(type))(number)Returns:creatureID—Unique ID <strong>of</strong> the companion (usable with PlayerModel:SetCreature) (number)creatureName—Localized name <strong>of</strong> the companion (string)spellID—The ‘‘spell’’ <strong>for</strong> summoning the companion (usable with GetSpellLink et al) (number)icon—Pathtoanicontexture<strong>for</strong>thecompanion(string)active—1 if the companion queried is currently summoned; otherwise nil(1nil)GetComparisonAchievementPointsReturns the comparison unit’s total achievement points earned.points = GetComparisonAchievementPoints()Only accurate once the INSPECT_ACHIEVEMENT_READY event has firedfollowing a call to SetAchievementComparisonUnit(). No longer accurateonce ClearAchievementComparisonUnit() is called.Returns:points—Total number <strong>of</strong> achievement points earned by the comparison unit(number)GetComparisonCategoryNumAchievementsReturns the number <strong>of</strong> achievements completed by the comparison unit withinacategory.numCompleted = GetComparisonCategoryNumAchievements(id)Only accurate once the INSPECT_ACHIEVEMENT_READY event has firedfollowing a call to SetAchievementComparisonUnit(). No longer accurateonce ClearAchievementComparisonUnit() is called.Arguments:id—The numeric ID <strong>of</strong> an achievement category (number)

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

Saved successfully!

Ooh no, something went wrong!