You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:AddQuestRewardItem
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: AddQuestRewardItem()
Add an item reward to the given quest.
Syntax
AddQuestRewardItem(param1, param2, [param3])
Parameters
- Required - param1 (Quest), param2 (int32)
- param1 is the quest we are adding a reward to
- param2 is the item id
- Optional - param3 (int8)
- param3 is the amount of the given item
Usage
function Init(Quest)
-- Ad item 12000 to the quest reward
AddQuestRewardItem(Quest, 12000)
end
Players will recieve item 12000 upon completing this quest.
Notes
This item will always be given to the player upon completion of the quest.
param3 will default to 1 if left out.
Also while this function should still work the prefered way to handle quest rewards is in the DB.