Difference between revisions of "LUA:AddQuestPrereqFaction"

(New page: Not currently functional.)
 
Line 1: Line 1:
Not currently functional.
+
= 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 ====
 +
<pre>
 +
function Init(Quest)
 +
    -- only allow players with -1000 to 100 with faction 200 do this quest
 +
    AddQuestPrereqFaction(Quest, 200, -1000, 100)
 +
end
 +
</pre>
 +
 
 +
Only players with -1000 to 100 with faction 200 can do this quest.

Revision as of 22:50, 10 October 2012

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.