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.

872 Part IV ■ <strong>Reference</strong>Arguments:type—Index <strong>of</strong> an LFG query type (in the list returned by GetLFGTypes())(number)index—Index <strong>of</strong> an LFG entry (in the list returned by GetLFGTypeEntries(type)) (number)ConfirmationLearnPreviewTalentsCommits changes made in the Talent UI’s preview mode.LearnPreviewTalents(isPet)Arguments:isPet—true to edit talents <strong>for</strong> the player’s pet, false to edit talents <strong>for</strong> theplayer (boolean)LearnTalentLearns a talent, spending one talent point.LearnTalent(tabIndex, talentIndex, isPet, talentGroup)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)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 talentsLeaveBattlefieldImmediately exits the current battleground instance.Returns the player to the location from which he or she joined the battleground<strong>and</strong> applies the Deserter debuff.LeaveChannelByNameLeaves a chat channel.LeaveChannelByName(“name“)Arguments:name—Name <strong>of</strong> a chat channel to leave (string)LeavePartyExits the current party or raid.If there are only two characters in the party or raid, causes the party or raid tobe disb<strong>and</strong>ed.

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

Saved successfully!

Ooh no, something went wrong!