You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:AddQuestPrereqClass"
(New page: I don't think this one has been worked in yet... ~Xan) |
|||
| Line 1: | Line 1: | ||
| − | + | = LUA Functions: AddQuestPrereqClass() = | |
| + | Adds a class prerequisite for the given quest. | ||
| + | |||
| + | ==== Syntax ==== | ||
| + | AddQuestPrereqClass(param1, param2) | ||
| + | |||
| + | ==== Parameters ==== | ||
| + | ; Required - ''param1'' (Quest), ''param2'' (int8) | ||
| + | : ''param1'' is the quest we are adding a prerequisite to | ||
| + | : ''param2'' is the id of the class | ||
| + | |||
| + | ==== Usage ==== | ||
| + | <pre> | ||
| + | function Init(Quest) | ||
| + | -- only let mystics do this quest | ||
| + | AddQuestPrereqClass(Quest, 19) | ||
| + | end | ||
| + | </pre> | ||
| + | |||
| + | Only mystics will be allowed to do this quest. | ||
Revision as of 22:38, 10 October 2012
LUA Functions: AddQuestPrereqClass()
Adds a class prerequisite for the given quest.
Syntax
AddQuestPrereqClass(param1, param2)
Parameters
- Required - param1 (Quest), param2 (int8)
- param1 is the quest we are adding a prerequisite to
- param2 is the id of the class
Usage
function Init(Quest)
-- only let mystics do this quest
AddQuestPrereqClass(Quest, 19)
end
Only mystics will be allowed to do this quest.