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> 861Returns:isKnown—1 if the player has earned the ability to display the title; otherwisenil (1nil)IsTrackedAchievementReturns whether an achievement is flagged <strong>for</strong> display in the objectivestracker UI.isTracked = IsTrackedAchievement(id)Arguments:id—The numeric ID <strong>of</strong> an achievement (number)Returns:isTracked—True if the achievement is flagged <strong>for</strong> tracking; otherwise false(boolean)IsTradeSkillLinkedReturns whether the TradeSkill UI is showing another player’s skill.isLinked, name = IsTradeSkillLinked()Returns:isLinked—1 if the TradeSkill APIs currently reflect another character’stradeskill; nil if showing the player’s tradeskill or if no skill is shown (1nil)name—If showing another character’s skill, the name <strong>of</strong> that character (string)IsTradeskillTrainerReturns whether the player is interacting with a trade skill trainer (as opposedto a class trainer).isTradeskill = IsTradeskillTrainer()Returns:isTradeskill—1 if interacting with a trade skill trainer; otherwise nil (1nil)IsTrainerServiceSkillStepReturns whether a trainer service is a trade skill level.isSkillStep = IsTrainerServiceSkillStep(index)Arguments:index—Index <strong>of</strong> an entry in the trainer service listing (between 1 <strong>and</strong>GetNumTrainerServices()) (number)Returns:isSkillStep—1 if the service is a trade skill level (e.g. Apprentice vsJourneyman First Aid); nil if the service is a spell or recipe (1nil)IsUnitOnQuestReturns whether a unit is on one <strong>of</strong> the quests in the player’s quest log.state = IsUnitOnQuest(index, “unit“) or IsUnitOnQuest(index, “name“)Arguments:index—Index <strong>of</strong> a quest in the player’s quest log (between 1 <strong>and</strong> GetNumQuestLogEntries()) (number)

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

Saved successfully!

Ooh no, something went wrong!