PotionMaking.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : Quests/Commonlands/PotionMaking.lua
  3. Script Purpose : Handles the quest, "Potion Making"
  4. Script Author : premierio015
  5. Script Date : 26.02.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Arconicus
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill ten wisps and collect their dust", 10, 100, "The bridge leading north from the crossroads will take me to the wisps, but it seems they're only out late at night.", 327, 330163, 330162, 330161, 330194)
  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 killed the wisps and collected their dust.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered enough wisp dust to bring back to the alchemist.")
  28. AddQuestStepChat(Quest, 2, "I need to return to Arconicus", 1, "I should bring the dust to the alchemist.", 11, 330180)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've spoken with the alchemist.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the alchemist the vial of wisp dust.")
  34. AddQuestStepKill(Quest, 3, "I must kill ten dangerous zombies and collect their glands", 10, 100, "The alchemist has asked me to gather some kind of gland inside the skull of a sentient person. He suggested that zombies may still possess the gland.", 109, 330154, 330156, 330758, 330191, 330347, 330271, 330754, 330409, 330155)
  35. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I have killed the zombies and collected their glands.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I have collected what he calls 'glands' from inside their skulls.")
  40. AddQuestStepChat(Quest, 4, "I need to return to Arconicus at the Crossroads", 1, "I need to bring these components back to the alchemist for my payment.", 11, 330180)
  41. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 4, "I've spoken with the alchemist.")
  46. UpdateQuestTaskGroupDescription(Quest, 4, "I've been paid for bringing the alchemist the components he wanted.")
  47. UpdateQuestDescription(Quest, "I've collected the ingredients Arconicus needed for his potion. Apparently he is making a growth potion of some sort, but was too busy to elaborate any further.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. Step3Complete(Quest, QuestGiver, Player)
  57. elseif Step == 4 then
  58. QuestComplete(Quest, QuestGiver, Player)
  59. end
  60. end