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.

560 Part IV ■ <strong>Reference</strong>The Muted list acts <strong>for</strong> voice chat as the Ignore list does <strong>for</strong> text chat: mutedcharacters will never be heard regardless <strong>of</strong> which voice channels they join theplayer in.Arguments:unit—A unit to mute (string, unitID)name—Name <strong>of</strong> a character to mute (string)AddOrRemoveFriendAdds the named character to the friends list, or removes the character ifalready in the friends list.AddOrRemoveFriend(“name“, “note“)Arguments:name—Name <strong>of</strong> a character to add to or remove from the friends list (string)note—Note text to be associated with the friends list entry created (string)AddPreviewTalentPointsSpends (or unspends) talent points in the Talent UI’s preview mode.AddPreviewTalentPoints(tabIndex, talentIndex, points, isPet, italentGroup)Arguments:tabIndex—Index <strong>of</strong> a talent tab (between 1 <strong>and</strong> GetNumTalentTabs())(number)talentIndex—Index <strong>of</strong> a talent option (between 1 <strong>and</strong> GetNumTalents())(number)points—Number <strong>of</strong> points to spend on the talent, or a negative numberto unspend points. Values larger than allowed <strong>for</strong> the talent will beclipped to the maximum value (e.g. attempting to spend ten points on atalent that has five ranks will only spend up to five points). (number)isPet—True to edit talents <strong>for</strong> the player’s pet, false to edit talents <strong>for</strong> theplayer (boolean)talentGroup—Which set <strong>of</strong> talents to edit, if the player has Dual Talent Specializationenabled (number)1—Primary Talents2—Secondary Talentsnil—Currently active talentsAddQuestWatchAdds a quest to the objectives tracker.AddQuestWatch(questIndex)Arguments:questIndex—Index <strong>of</strong> a quest in the quest log (between 1 <strong>and</strong>GetNumQuestLogEntries()) (number)AddTrackedAchievementAdds an achievement to the objectives tracker UI.AddTrackedAchievement(id)

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

Saved successfully!

Ooh no, something went wrong!