API GetQuestLogRewardMoney

From Wowpedia
Jump to: navigation, search

GetQuestLogRewardMoney returns a number representing the amount of copper rewarded by a particular quest in the quest log.

money = GetQuestLogRewardMoney([questID])

Arguments

QuestID (optional) 
Number - Unique identifier for a quest.

Returns

rewardMoney 
Number - The amount of copper this quest gives as a reward

Example

local rewardMoney= GetQuestLogRewardMoney();

Result

1256300

Details

  • The questID argument is optional. When called without an questID, returns for the most recently viewed quest in the quest log window.
  • Returns 0 if the questID is not currently in the quest log.