No categories assigned

LUA:AddQuestRewardCoin

Revision as of 15:21, 11 October 2012 by Jabantiz (talk | contribs)

LUA Functions: AddQuestRewardCoin()

Adds coin to the reward from the given quest.


Syntax

AddQuestRewardCoin(param1, param2, param3, param4, param5)


Parameters

Required - param1 (Quest), param2 (int32), param3 (int32), param4 (int32), param5 (int32)
param1 is the quest we are adding a coin reward to
param2 is the amount of copper
param3 is the amount of silver
param4 is the amount of gold
param5 is the amount of plat

Usage

function Init(Quest)
    -- Add a coin reward to the quest
    AddQuestRewardCoin(Quest, 1, 72, 15, 2)
end

Add a reward of 2 plat 15 gold 72 silver and 1 copper to the quest.


Notes

While this function should still work it is now prefered to add quest reward data into the DB.