WoW:API GetQuestLogChoiceInfo: Difference between revisions

m
no edit summary
m ({{wowapi}})
mNo edit summary
Line 1: Line 1:
{{wowapi}}
{{wowapi|toc=0}}
Returns a bunch of data about a quest reward choice from the quest log.
Returns a bunch of data about a quest reward choice from the quest log.


  GetQuestLogChoiceInfo(itemNum);
  name, texture, numItems, quality, isUsable =
    GetQuestLogChoiceInfo(itemNum)


----
== Parameters ==
;''Arguments''
=== Arguments ===
* itemNum (number) - The item number to get info on


:(Number itemNum)
=== Returns ===
* name (string) - The name of the quest item
* texture (string) - The texture of the quest item
* numItems (number) - How many of the quest item
* quality (number) - Quality of the quest item
* isUsable (Boolean) - If the quest item is usable by the current player


:;itemNum : The item number to get info on
== Description ==
 
Returns a bunch of data about a quest reward choice from the quest log.
----
;''Returns''
 
:String name, String texture, Number numItems, Number quality, Boolean isUsable


:;name : The name of the quest item
== Examples ==
:;texture : The texture of the quest item
  local name, texture, numItems, quality, isUsable =
:;numItems : How many of the quest item
    GetQuestLogChoiceInfo(requiredItem.type, i)
:;quality : Quality of the quest item
Result
:;isUsable : If the quest item is usable by the current player
 
----
;''Example''
  local name, texture, numItems, quality, isUsable = GetQuestLogChoiceInfo(requiredItem.type, i);
 
;''Result''
  "Silver Belt", ..., 1, 100, false
  "Silver Belt", ..., 1, 100, false
----
;''Description''
: Returns a bunch of data about a quest reward choice from the quest log.