Difference between revisions of "LUA:SetStepFailed"
(Created page with "= LUA Functions: SetStepFailed() = This will set the given step as failed ==== Syntax ==== SetStepFailed(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Quest),...") |
|||
| Line 4: | Line 4: | ||
==== Syntax ==== | ==== Syntax ==== | ||
| − | SetStepFailed(param1, param2) | + | SetStepFailed(param1, param2, param3) |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' ( | + | ; Required - ''param1'' (Spawn), ''param2'' (int32), ''param3'' (int32) |
| − | : ''param1'' is the quest | + | : ''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 ==== | ==== Usage ==== | ||
<pre> | <pre> | ||
| − | function | + | local Quest = 1234 |
| − | SetStepFailed(Quest, 2) | + | function hailed(NPC, Spawn) |
| + | SetStepFailed(Spawn, Quest, 2) | ||
end | end | ||
</pre> | </pre> | ||
| − | + | When the NPC is hailed it will cause the player to fail step 2 of quest 1234 | |
Latest revision as of 20:53, 20 July 2014
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