Difference between revisions of "LUA:AddQuestStepObtainItem"

(Added header)
(Removed old Layout)
Line 23: Line 23:
 
==== Usage ====  
 
==== 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)
 
   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>
 
AddQuestStepObtainItem(Quest, StepID, StepText, Quantity, Percentage, TaskGroupText, Icon, Item ID(s))<br>
 
 
'''Explination'''<br>
 
This function will add a step in your quest that requires you to obtain an item(s) to advance the quest.<br>
 
 
'''Example'''<br>
 
  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)
 
 
 
 
 
 
  
  
 
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]
 
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]

Revision as of 18:45, 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)


Back to LUA Functions