You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:AddQuestStepSpell
- Last edited 4 years ago by Vlash Nytefall
Syntax
AddQuestStepSpell(Quest, StepID, StepText, Quantity, Percentage, TaskgroupText, Icon, Spell ID(s))
Explination
This function will complete the quest step when you cast a specific spell. This is widely used for spells that interact with objects such as, "Take the box, Whack the hive, ect..."
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
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)
For the sake of the example I have put a break in there but you would want this all to be a single line. The spell ID 5022 is the spell "take shackles" which is required by this quest when taking shackles off a wall. The shackles on the wall are a "sign" and have a primary command of "take shackles".