You are viewing an old version of this page. Return to the latest version.
Version of 15:04, 11 October 2012 by I need to Update My Profile
Difference between revisions of "LUA:AddQuestPrereqModelType"
(Created page with "= LUA Functions: AddQuestPrereqModelType() = Adds a model type prerequisite to the given quest. ==== Syntax ==== AddQuestPrereqModelType(param1, param2) ==== Parameters ==== ;...") |
|||
| Line 1: | Line 1: | ||
| − | = | + | {{LUAFunction |
| − | Adds a model type prerequisite to the given quest. | + | |Name = AddQuestPrereqModelType |
| − | + | |Description = Adds a model type prerequisite to the given quest. | |
| − | + | |Param1 = Quest | |
| − | = | + | |Param1Desc = is the quest to add the prerequisite to |
| − | + | |Param2 = int16 | |
| − | + | |Param2Desc = is the model type id | |
| − | = | + | |Example = |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
function Init(Quest) | function Init(Quest) | ||
| Line 18: | Line 13: | ||
end | end | ||
</pre> | </pre> | ||
| − | + | |ExampleDesc = Only a player with a model type of 5 could do the quest. | |
| − | Only a player with a model type of 5 could do the quest. | + | |Notes = None |
| + | }} | ||
Latest revision as of 12:19, 30 January 2021
LUA:AllFunctions - AddQuestPrereqModelType
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Adds a model type prerequisite to the given quest.
Syntax
AddQuestPrereqModelType(param1, param2)
Parameters
- Required - param1 (Quest), param2 (int16)
- param1 is the quest to add the prerequisite to
- param2 is the model type id
Example
function Init(Quest)
-- Only players with model type 5 can do this quest
AddQuestPrereqModelType(Quest, 5)
end
Only a player with a model type of 5 could do the quest.
Notes
None