lion_mane_helm.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : Quests/TheCommonlands/lion_mane_helm.lua
  3. Script Purpose : Handles the quest, "Lion Mane Helm"
  4. Script Author : premierio015
  5. Script Date : 01.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : an unfinished helm(Item)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect and crush the wings of stone beetles", 10, 100, "If I'm going to turn this unfinished helmet into something a little nicer, I'll need to add a few things to it. I should start by getting some wings from stone beetles in the commonlands to make some paint.", 86, 330745, 330070, 330066)
  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've collected enough wings to create a sticky paint for the helm.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've found a number of different things that I was able to add to my helm, turning it into a Lion Mane Helm.")
  28. AddQuestStep(Quest, 2, "I need to harvest twenty Desert Roots from the Commonlands", 20, 100, "I'll need to make a paint for the helmet.", 2513)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've gathered enough roots to make another paint for the helm.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've made a paint for the helmet.")
  34. AddQuestStepKill(Quest, 3, "I need to kill the savannah lions in the Commonlands until I find a suitable mane for the helm", 1, 100, "I need to find a lion mane to attach to the helm.", 182, 330117)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "I've found a perfect mane to be used with my helm.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I've found a mane.")
  41. UpdateQuestDescription(Quest, "Through much effort, I've been able to turn the unfinished helmet into to a nice Lion Mane Helm. <br> <br>")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end