You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:AddQuestStepObtainItem"
(Started updating the layout to match the others) |
(Fix parameter numbers) |
||
| Line 8: | Line 8: | ||
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Quest), ''param2'' (int32), ''param3'' (string), ''param4'' (int32), ''param5'' (float), ''param6'' (string), '' | + | ; Required - ''param1'' (Quest), ''param2'' (int32), ''param3'' (string), ''param4'' (int32), ''param5'' (float), ''param6'' (string), ''param7'' (int32), ''param8'' (int32) |
: ''param1'' is the quest we are adding a step to | : ''param1'' is the quest we are adding a step to | ||
: ''param2'' is the step id | : ''param2'' is the step id | ||
Revision as of 18:13, 9 June 2018
Contents
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), param7 (int32), param8 (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)