You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:AddQuestStepKill"
(Updated the template to match the newer ones) |
|||
| Line 1: | Line 1: | ||
| − | {{ | + | {{LUAFunction |
| − | + | |Name = AddQuestStepKill | |
| − | = | + | |Description = 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. |
| − | This is a function that allows you to assign an NPC(s) to kill to advance the quest. | + | |Param1 = Quest |
| − | Is used to set the step complete when you have to kill a spawn. | + | |Param1Desc = is the quest id |
| − | + | |Param2 = StepID | |
| − | + | |Param2Desc = is the step id | |
| − | + | |Param3 = StepText | |
| − | + | |Param3Desc = is the text that shows in the Journal and Quest helper for the step | |
| − | + | |Param4 = Quantity | |
| − | + | |Param4Desc = is the quantity required | |
| − | + | |Param5 = Percentage | |
| − | + | |Param5Desc = is the percentage update will happen | |
| − | + | |Param6 = TaskgroupText | |
| − | + | |Param6Desc = is the text for the description that shows in the journal above the steps | |
| − | + | |Param7 = Icon | |
| − | + | |Param7Desc = is the icon that shows up in the journal below the step | |
| − | + | |Param8 = NPC ID | |
| − | + | |Param8Desc = is the id of the NPC(s) that are used to update the quest | |
| − | + | |Example = | |
| − | |||
| − | |||
| − | |||
| − | |||
<pre> | <pre> | ||
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) | 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) | ||
</pre> | </pre> | ||
| − | + | |ExampleDesc = 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 | |
| − | 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 |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | = | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | ' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 13:27, 27 January 2021
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