No categories assigned
LUA:AddQuestPrereqItem
- Last edited 4 years ago by Vlash Nytefall
LUA:AllFunctions - AddQuestPrereqItem
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Adds an item prerequisite to the given quest.
Syntax
AddQuestPrereqItem(param1, param2, [opt param1])
Parameters
- Required - param1 (Quest), param2 (int32)
- param1 is the quest we are adding a prerequisite to
- param2 is the item id
- Optional - opt param1 (int8)
- opt param1 is the amount of the item, defaults to 1 if left out.
Example
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
None