Difference between revisions of "LUA:AddQuestStepKill"

(Updated the template to match the newer ones)
Line 1: Line 1:
 +
{{PageHeaderChild|LUA|AddQuestStepKill}}
 +
 +
= LUA Functions: AddQuestStepKill() =
 +
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(s))
 +
: ''param1'' is the quest we want to set the timer for
 +
: ''param2'' is the step id
 +
: ''param3'' is the text that shows in the Journal and Quest helper for the step
 +
: ''param4'' is the quantity needed to complete the step
 +
: ''param5'' is the update percentage
 +
: ''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 or npc's that are used to update the quest
 +
 +
 +
==== Usage ====
 +
<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>
 +
 +
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
 +
 +
''Note:'' This is will be all on one line when you put it in your scrip.
 +
 +
 +
= Old Template =
 +
 
'''Syntax'''<br>
 
'''Syntax'''<br>
 
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))
 
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))
  
 
'''Explination'''<br>
 
'''Explination'''<br>
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>
+
This is a function that allows you to assign an NPC(s) to kill to advance the quest. Here is an example out of the quest, "Kill or be killed"<br>
  
 
   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> incompetent 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)
 
   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> incompetent 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)

Revision as of 12:08, 22 December 2018

LUA - AddQuestStepKill

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


LUA Functions: AddQuestStepKill()

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(s))
param1 is the quest we want to set the timer for
param2 is the step id
param3 is the text that shows in the Journal and Quest helper for the step
param4 is the quantity needed to complete the step
param5 is the update percentage
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 or npc's that are used to update the quest


Usage

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

Note: This is will be all on one line when you put it in your scrip.


Old Template

Syntax
AddQuestStepKill(Quest, StepID, StepText, Quantity, Percentage,TaskGroupText, Icon, NPC ID(s))

Explination
This is a function that allows you to assign an NPC(s) to kill to advance the quest. Here is an example out of the quest, "Kill or be killed"

 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
incompetent 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)

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 break in it.


Back to LUA Functions