No categories assigned

LUA:AddQuestPrereqModelType

Revision as of 15:04, 11 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: AddQuestPrereqModelType() = Adds a model type prerequisite to the given quest. ==== Syntax ==== AddQuestPrereqModelType(param1, param2) ==== Parameters ==== ;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: AddQuestPrereqModelType()

Adds a model type prerequisite to the given quest.


Syntax

AddQuestPrereqModelType(param1, param2)

Parameters

Required - param1 (Quest), param2 (int16)
param1 is the quest we are adding a prerequisite to
param2 is the model type id

Usage

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.