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.

648 Part IV ■ <strong>Reference</strong>Arguments:slot—An action bar slot (number, actionID)Returns:text—Label <strong>for</strong> the action (string)GetActionTextureReturns the icon texture <strong>for</strong> an action.texture = GetActionTexture(slot)Can be the icon <strong>of</strong> a spell or item, the icon manually set <strong>for</strong> a macro, or an iconreflecting the current state <strong>of</strong> a macro.Arguments:slot—An action bar slot (number, actionID)Returns:texture—Path to an icon texture <strong>for</strong> the action in the slot, or nil if the slot isempty (string)GetActiveLevelReturns the level <strong>of</strong> a quest which can be turned in to the current Quest NPC.level = GetActiveLevel(index)Only returns valid in<strong>for</strong>mation after a QUEST_GREETING event.Note: Most quest NPCs present active quests using theGetGossipActiveQuests() instead <strong>of</strong> this function.Arguments:index—Index <strong>of</strong> a quest which can be turned in to the currentQuest NPC (between 1 <strong>and</strong> GetNumActiveQuests()) (number)Returns:level—Recommended character level <strong>for</strong> attempting the quest (number)GetActiveTalentGroupReturns the index <strong>of</strong> the active talent specialization.activeTalentGroup = GetActiveTalentGroup(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:activeTalentGroup—Which talent group is currently active (number)1—Primary Talents2—Secondary TalentsGetActiveTitleReturns the name <strong>of</strong> a quest which can be turned in to the current Quest NPC.title = GetActiveTitle(index)

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

Saved successfully!

Ooh no, something went wrong!