API GetQuestItemInfo

Returns information about a quest's item rewards or requirements. name, texture, count, quality, isUsable = GetQuestItemInfo("type", index)

Arguments

 * type : String - type of the item to query. One of the following values:
 * "required": Items the quest requires the player to gather.
 * "reward": Unconditional quest rewards.
 * "choice": One of the possible quest rewards.


 * index : Number - index of the item of the specified type to return information about, ascending from 1.

Returns

 * name : String - Item name.
 * texture : String - Item icon texture.
 * count : Number - amount of the item required or awarded by the quest.
 * quality : Number - Item quality.
 * isUsable : Flag - 1 if the quest item is usable by the current player, nil otherwise.

Details

 * This function returns information about the current quest: the one for which the  family of events has fired most recently. Quests in the quest log use  and.