Difference between revisions of "LUA:AddQuestStepObtainItem"

(Fix parameter numbers)
(Added header)
Line 1: Line 1:
 +
{{PageHeaderChild|LUA|AddCoin}}
 +
 
= LUA Functions: AddQuestStepObtainItem() =
 
= LUA Functions: AddQuestStepObtainItem() =
 
Adds a step in your quest that requires you to obtain an item(s) to advance the quest.
 
Adds a step in your quest that requires you to obtain an item(s) to advance the quest.
Line 8: Line 10:
  
 
==== Parameters ====
 
==== Parameters ====
; Required - ''param1'' (Quest), ''param2'' (int32), ''param3'' (string), ''param4'' (int32), ''param5'' (float), ''param6'' (string), ''param7'' (int32), ''param8'' (int32)
+
; Required - ''param1'' (Quest), ''param2'' (int32), ''param3'' (string), ''param4'' (int32), ''param5'' (float), ''param6'' (string), ''param7'' (int16), ''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
Line 15: Line 17:
 
: ''param5'' is the percentage
 
: ''param5'' is the percentage
 
: ''param6'' is the taskgroup string
 
: ''param6'' is the taskgroup string
; Optional - ''param7'' (int16)
 
 
: ''param7'' is the icon for the step
 
: ''param7'' is the icon for the step
 
: ''param2'' is the Item id
 
: ''param2'' is the Item id

Revision as of 18:42, 9 June 2018

LUA - AddCoin

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


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 (int16), 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
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