No categories assigned
LUA:AddQuestStepSpell
- Last edited 4 years ago by Vlash Nytefall
LUA:AllFunctions - AddQuestStepSpell
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Completes the quest step when you cast a specific spell.
Syntax
AddQuestStepSpell(param1, param2, param3, param4, param5, param6, param7, param8)
Parameters
- Required - param1 (Quest), param2 (StepID), param3 (StepText), param4 (Quantity), param5 (Percentage), param6 (TaskgroupText), param7 (Icon), param8 (Spell ID)
- param1 is the quest id
- param2 is the step id
- param3 is the step text
- param4 is the quantity required
- param5 is the percentage update will happen
- param6 is the task group text
- param7 is the icon
- param8 is the spell id the player needs to cast
Example
AddQuestStepSpell(Quest, 4, "I need to take the shackles off the wall.", 1, 100, "It Appears that the Iksar were once enslave by the Overlord. However, after proving their mettle<br> during the Battle of Defiance, the Iksar were allowed to live freely in the Scale Yard. I am to take the old shackles from the time of enslavement and cast them into the sea!", 0, 5022)
Sets step 4 of the quest and is only required to preform 1 time and updates 100 percent when using spell id 5022.
Notes
This is widely used for spells that interact with objects such as, "Take the box, Whack the hive, ect..."