Difference between revisions of "LUA:AddQuestStepObtainItem"

(Started updating the layout to match the others)
Line 1: Line 1:
 +
= LUA Functions: AddQuestStepObtainItem() =
 +
Adds a step in your quest that requires you to obtain an item(s) to advance the quest.
 +
 +
 +
==== Syntax ====
 +
AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))
 +
 +
 +
==== Parameters ====
 +
; Required - ''param1'' (Quest), ''param2'' (int32), ''param3'' (string), ''param4'' (int32), ''param5'' (float), ''param6'' (string), ''param2'' (int32), ''param2'' (int32)
 +
: ''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
 +
: ''param2'' is the Item id
 +
 +
 +
==== Usage ====
 +
  AddQuestStepObtainItem(Quest, 2, "I must collect five skulls of fallen Iksar.", 5, 100, "I Must gather several Iksar skulls scattered across the Scale Yard.", 91, 2797)
 +
 +
 +
==== Old Layout ====
 +
 
'''Syntax'''<br>
 
'''Syntax'''<br>
 
AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))<br>
 
AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))<br>

Revision as of 18:09, 9 June 2018

LUA Functions: AddQuestStepObtainItem()

Adds a step in your quest that requires you to obtain an item(s) to advance the quest.


Syntax

AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))


Parameters

Required - param1 (Quest), param2 (int32), param3 (string), param4 (int32), param5 (float), param6 (string), param2 (int32), param2 (int32)
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
param2 is the Item id


Usage

 AddQuestStepObtainItem(Quest, 2, "I must collect five skulls of fallen Iksar.", 5, 100, "I Must gather several Iksar skulls scattered across the Scale Yard.", 91, 2797)


Old Layout

Syntax
AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))

Explination
This function will add a step in your quest that requires you to obtain an item(s) to advance the quest.

Example

 AddQuestStepObtainItem(Quest, 2, "I must collect five skulls of fallen Iksar.", 5, 100, "I Must gather several Iksar skulls scattered across the Scale Yard.", 91, 2797)




Back to LUA Functions