You are viewing an old version of this page. Return to the latest version.
Version of 12:46, 12 September 2013 by I need to Update My Profile
No categories assigned
LUA:SetRequiredQuest
- Last edited 9 years ago by I need to Update My Profile
LUA Functions: SetRequiredQuest()
Sets a spawn as required for the given quest
Syntax
SetRequiredQuest(param1, param2, [param3])
Parameters
- Required - param1 (Spawn), param2 (int32)
- param1 is the spawn we want to set
- param2 is the quest ID that requires it
- Optional - param3 (int32)
- param3 is the step that requires it
Usage
function spawn(Spawn)
SetRequiredQuest(Spawn, 1234, 5)
end
When the NPC spawns it will be set as required for step 5 of quest 1234