No categories assigned

LUA:AddQuestPrereqFaction

Revision as of 22:50, 10 October 2012 by Jabantiz (talk | contribs)

LUA Functions: AddQuestPrereqFaction()

Adds a faction prerequisite to the given quest.

Syntax

AddQuestPrereqFaction(param1, param2, param3, param4)

Parameters

Required - param1 (Quest), param2 (int32), param3 (sint32), param4 (sint32)
param1 is the quest we are adding a prerequisite to
param2 is the faction id
param3 is the min amount of faction needed
param4 is the max amount of faction

Usage

function Init(Quest)
    -- only allow players with -1000 to 100 with faction 200 do this quest
    AddQuestPrereqFaction(Quest, 200, -1000, 100)
end

Only players with -1000 to 100 with faction 200 can do this quest.