No categories assigned

LUA:AddQuestPrereqClass

Revision as of 15:06, 15 January 2019 by Cynnar (talk | contribs) (Removed original after verification of new template)

LUA - AddQuestPrereqClass

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


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.