Difference between revisions of "LUA:AddQuestStep"

Line 1: Line 1:
'''Syntax'''<br>
+
= LUA Functions: AddQuestStep() =
AddQuestStep(Quest, StepID, StepDescription, Quantity, Percentage, TaskGroupText, icon)<br>
+
Adds a generic quest step to the given quest.
  
'''Details'''<br>
 
This function will add a quest step that is not specific like a AddQuestStepChat or AddQuestStepLocation
 
  
This function is recommended for use with zonescripts and SetLocationProximityFunction, where you need a location outside the existing zone.
+
==== Syntax ====
 +
AddQuestStep(param1, param2, param3, param4, param5, param6, [param7])
  
'''Example'''<br>
 
  
AddQuestStep(Quest, 1, "Find a beach", 1, 100, "", 0)
 
  
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]
+
==== 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 ====
 +
<pre>
 +
 
 +
</pre>

Revision as of 17:15, 11 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