WoW API: GetQuestLogItemLink
Jump to navigation
Jump to search
← WoW API < GetQuestLogItemLink
The function returns the itemLink of the selected quest reward for the current active quest.
Template:Code/Begin
itemLink = GetQuestLogItemLink("type", index)
Template:Code/End
Arguments
- type
- String - "required", "reward" or "choice"
- index
- Table - Integer - Quest reward item index (starts with 1).
Returns
- itemLink
- String - The link to the quest item specified
- or nil, if the type and/or index is invalid or there is no active quest at the moment.
Details
- The active quest is being set when browsing the quest log. The quest log must not be open for this function to work, but a quest must be active.
- The different types refere to the different item lists, a quest can contain.
- "reward" is the list of items which will be granted upon finishing the quest.
- "choice" is the list of items the player can choose from, once the quest is finished.
- "required" should be the list of items which have to be handed in for the quest to be finished (this has not been verified)