You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:AddQuestPrereqClass"
(Updated to newer template.) |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{LUAFunction |
| − | + | |Name = AddQuestPrereqClass | |
| − | = | + | |Description = Adds a class prerequisite for the given quest. |
| − | Adds a class prerequisite for the given quest. | + | |Param1 = Quest |
| − | + | |Param1Desc = is the quest we are adding a prerequisite to | |
| − | + | |Param2 = int8 | |
| − | + | |Param2Desc = is the id of the adventure class | |
| − | + | |Example = | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | = | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
function Init(Quest) | function Init(Quest) | ||
| Line 47: | Line 13: | ||
end | end | ||
</pre> | </pre> | ||
| + | |ExampleDesc = Only mystics will be allowed to do this quest. | ||
| + | |Notes = While this function should still work it is now prefered to add quest prerequisite data into the DB. | ||
| − | + | [[Reference:ClassRaceIDs| Reference List for Classes and Race id's]] | |
| + | }} | ||
Latest revision as of 12:19, 30 January 2021
LUA:AllFunctions - AddQuestPrereqClass
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
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 adventure class
Example
function Init(Quest)
-- only let mystics do this quest
AddQuestPrereqClass(Quest, 19)
end
Only mystics will be allowed to do this quest.
Notes
While this function should still work it is now prefered to add quest prerequisite data into the DB.