No categories assigned
LUA:SetStepFailed
- Last edited 11 years ago by I need to Update My Profile
LUA Functions: SetStepFailed()
This will set the given step as failed
Syntax
SetStepFailed(param1, param2, param3)
Parameters
- Required - param1 (Spawn), param2 (int32), param3 (int32)
- param1 is the player who we are failing a step for
- param2 is the ID for the quest we are failing
- param3 is the step we are failing
Usage
local Quest = 1234
function hailed(NPC, Spawn)
SetStepFailed(Spawn, Quest, 2)
end
When the NPC is hailed it will cause the player to fail step 2 of quest 1234