You are viewing an old version of this page. Return to the latest version.
Version of 14:55, 11 October 2012 by I need to Update My Profile
No categories assigned
LUA:AddQuestPrereqItem
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: AddQuestPrereqItem()
Adds an item prerequisite to the given quest.
Syntax
AddQuestPrereqItem(param1, param2, [param3])
Parameters
- Required - param1 (Quest), param2 (int32)
- param1 is the quest we are adding a prerequisite to
- param2 is the item id
- Optional - param3 (int8)
- param3 is the amount of the item
Usage
function Init(Quest)
-- Only players with 2 of item 17 can do this quest
AddQuestPrereqItem(Quest, 17, 2)
end
Only a player with 2 of item 17 can do the quest.
Notes
param3 defaults to 1 if left out.