lure.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : lure.lua
  3. Script Purpose : Handles the quest, "Lure"
  4. Script Author : Dorbin
  5. Script Date : 2/27/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Forest Ruins
  8. Quest Giver : Lieutenant Germain
  9. Preceded by : Uncover the Caches
  10. Followed by : Reinforcements
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect the head of Malox.", 1, 100, "Lieutenant Germain has asked one final thing of me within the Forest Ruins: the head of Malox.", 1221, 1960066)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have the head of Malox.")
  27. AddQuestStepChat(Quest, 2, "I need to return to Lieutenant Germain.", 1, "Lieutenant Germain has asked one final thing of me within the Forest Ruins: the head of Malox.", 11, 1960005)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  32. UpdateQuestStepDescription(Quest, 2, "I have spoken with Lieutenant Germain.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I have obtained the head of Malox.")
  34. UpdateQuestDescription(Quest, "I have slain Malox and taken his head. Lieutenant Germain says that we were lucky that we stopped them when we did, but that there may still be much work ahead of us.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end