API GetQuestChoiceRewardCurrency

From Wowpedia
Jump to: navigation, search

Returns the currency reward of a given quest option.

currencyId, texture, quantity = GetQuestChoiceRewardCurrency(optionIndex, currencyIndex)

Arguments

optionIndex 
Number - index of the quest choice option to return information about, ascending from 1.
currencyIndex 
Number - index of the currency reward to return information about, ascending from 1.

Returns

currencyId 
Number - currency ID of this reward currency, nil if the arguments do not correspond to a reward.
texture 
String - fragment of a texture path for this reward, e.g. "inv_misc_coin_18" for [Lesser Charm of Good Fortune].
quantity 
Number - amount of this currency the quest option offers as a reward.

Patch history

Mists of Pandaria Patch 5.2.0 (2013-03-05): Added.

See also