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.

778 Part IV ■ <strong>Reference</strong>Arguments:questIndex—Index <strong>of</strong> a quest log entry with an associated usableitem (between 1 <strong>and</strong> GetNumQuestLogEntries()) (number)Returns:link—A hyperlink <strong>for</strong> the item (string, hyperlink)icon—Pathtoanicontexture<strong>for</strong>theitem(string)charges—Number <strong>of</strong> times the item can be used, or 0 if no limit (number)GetQuestLogSpellLinkReturns a hyperlink <strong>for</strong> a spell in the selected quest in the quest log.link = GetQuestLogSpellLink()Returns:link—A hyperlink <strong>for</strong> the spell or tradeskill recipe (string, hyperlink)GetQuestLogTimeLeftReturns time remaining <strong>for</strong> the selected quest in the quest log.questTimer = GetQuestLogTimeLeft()If the selected quest is not timed, returns nil.Returns:questTimer—The amount <strong>of</strong> time left to complete the quest (number)GetQuestLogTitleReturns in<strong>for</strong>mation about an entry in the player’s quest log.questLogTitleText, level, questTag, suggestedGroup, isHeader, iisCollapsed, isComplete, isDaily, questID = GetQuestLogTitle(questIndex)Arguments:questIndex—Index <strong>of</strong> a quest in the quest log (between 1 <strong>and</strong>GetNumQuestLogEntries()) (number)Returns:questLogTitleText—Title <strong>of</strong> the quest (string)level—Recommended character level <strong>for</strong> attempting the quest (number)questTag—Localized tag describing the type <strong>of</strong> quest (string)Dungeon—Dungeon or instance questElite—Elite questGroup—Group questHeroic—Heroic questPVP—PVP specific questRaid—Raid questnil—St<strong>and</strong>ard questsuggestedGroup—For some group quests, the recommendednumber <strong>of</strong> group members <strong>for</strong> attempting the quest (number)isHeader—1 if the entry is a group header; nil if the entry is a quest (1nil)isCollapsed—1 if the entry is a collapsed header; otherwise nil (1nil)isComplete—Whether the quest is complete (number)-1—The quest was failed

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

Saved successfully!

Ooh no, something went wrong!