Difference between revisions of "LUA:AddStepProgress"

(Created page with "= LUA Functions: AddStepProgress() = Advances the players quest step. ==== Syntax ==== AddStepProgress(param1, param2, param3, param4) ==== Parameters ==== ; Required - ''par...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= LUA Functions: AddStepProgress() =
+
{{LUAFunction
Advances the players quest step.
+
|Name = AddStepProgress
 
+
|Description = Advances the players quest step.
 
+
|Param1 = Spawn
==== Syntax ====
+
|Param1Desc = is the player whos quest we are updating, must be a player
AddStepProgress(param1, param2, param3, param4)
+
|Param2 = int32
 
+
|Param2Desc = is the quest id
 
+
|Param3 = int32
==== Parameters ====
+
|Param3Desc = is the step id
; Required - ''param1'' (Spawn), ''param2'' (int32), ''param3'' (int32), ''param4'' (int32)
+
|Param4 = int32
: ''param1'' is the player whos quest we are updating, must be a player
+
|Param4Desc = is the progress we are adding
: ''param2'' is the quest id
+
|Example =
: ''param3'' is the step id
 
: ''param4'' is the progress we are adding
 
 
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function hailed(NPC, Spawn)
 
function hailed(NPC, Spawn)
Line 21: Line 16:
 
end
 
end
 
</pre>
 
</pre>
 
+
|ExampleDesc = Advance step 2 of quest 3 for the player by 1.
Advance step 3 of quest 2 for the player by 1.
+
|Notes = None
 +
}}

Latest revision as of 12:09, 30 January 2021


LUA:AllFunctions - AddStepProgress

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Advances the players quest step.

Syntax

AddStepProgress(param1, param2, param3, param4)

Parameters

Required - param1 (Spawn), param2 (int32), param3 (int32), param4 (int32)
param1 is the player whos quest we are updating, must be a player
param2 is the quest id
param3 is the step id
param4 is the progress we are adding


Example

function hailed(NPC, Spawn)
    AddStepProgress(Spawn, 3, 2, 1)
end

Advance step 2 of quest 3 for the player by 1.

Notes

None