Difference between revisions of "LUA:AddQuestStepKill"

 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''Syntax'''<br>
+
{{LUAFunction
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))
+
|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.
'''Explination'''<br>
+
|Param1 = Quest
This is a function that allows you to assign an NPC(s) to killto advance the quest. Here is an example out of the quest, "Kill or be killed"<br>
+
|Param1Desc = is the quest id
 
+
|Param2 = StepID
  AddQuestStepKill(Quest, 1, "Anthony Glavias must be relived of his duty as a member of the Freeport Militia.", 1, 100, "Militia member, Anthony Glvias, has proven to be too<br> incompetant to serve in the Freeport Militia. He must be relived of his duty. He is currently stationed West of the Fountain of the Fallen Soldier.", 0, 1390013)
+
|Param2Desc = is the step id
 
+
|Param3 = StepText
Keep in mind you will want that all to be one line, but for the sake of keeping it all on the page here I added a brake in it.
+
|Param3Desc = is the text that shows in the Journal and Quest helper for the step
[http://www.eq2emulator.net/wiki/index.php/Developer:LUA_Functions Back to LUA Functions]
+
|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>
 +
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>
 +
|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
 +
|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