Difference between revisions of "LUA:AddQuestStep"

Line 22: Line 22:
 
==== Usage ====
 
==== Usage ====
 
<pre>
 
<pre>
 
+
function Init(Quest)
 +
    AddQuestStep(Quest, 1, "Find Bob", 1, 100, "I need to head to the mine and find Bob. The mine is in the east.", 0)
 +
end
 
</pre>
 
</pre>

Revision as of 16:12, 15 October 2012

LUA Functions: AddQuestStep()

Adds a generic quest step to the given quest.


Syntax

AddQuestStep(param1, param2, param3, param4, param5, param6, [param7])


Parameters

Required - param1 (Quest), param2 (int32), param3 (string), param4 (int32), param5 (float), param6 (string)
param1 is the quest we are adding a step to
param2 is the step id
param3 is the step description
param4 is the quantity
param5 is the percentage
param6 is the taskgroup string
Optional - param7 (int16)
param7 is the icon for the step


Usage

function Init(Quest)
    AddQuestStep(Quest, 1, "Find Bob", 1, 100, "I need to head to the mine and find Bob. The mine is in the east.", 0)
end