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...")
 
Line 22: Line 22:
 
</pre>
 
</pre>
  
Advance step 3 of quest 2 for the player by 1.
+
Advance step 2 of quest 3 for the player by 1.

Revision as of 20:20, 15 October 2012

LUA Functions: AddStepProgress()

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


Usage

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

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