No categories assigned
LUA:AddQuestStepKill
- Last edited 4 years ago by Vlash Nytefall
LUA:AllFunctions - AddQuestStepKill
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
This is a function that allows you to assign an NPC(s) to kill to advance the quest. Is used to set the step complete when you have to kill a spawn.
Syntax
AddQuestStepKill(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 (NPC ID)
- param1 is the quest id
- param2 is the step id
- param3 is the text that shows in the Journal and Quest helper for the step
- param4 is the quantity required
- param5 is the percentage update will happen
- param6 is the text for the description that shows in the journal above the steps
- param7 is the icon that shows up in the journal below the step
- param8 is the id of the NPC(s) that are used to update the quest
Example
AddQuestStepKill(Quest, 1, "I need to kill four Haoaeran poachers.", 4, 100, "Tykor Gi'Lok wants me to kill the Haoaeran poachers that are moving in.", 611, 2630020, 2630505, 2630866)
This is from the quest Poaching the Poachers and requires you to kill 4 Haoaeran Poachers with an id of 2630020, 2630505, or 2630866. It will update every time you kill a Haoaeran Poacher with one of those id's
Notes
You can add as many NPC id's as needed and each one separated with a comma