becoming_an_enchanter.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_an_enchanter.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 03:09:11
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to make an example of the Seafuries.", 1,100, "I need to find these Seafuries and make an example of them. I should look for a way to do this without directly involving myself.", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("The Seafuries are Lucan's private navy. At least that's how they present themselves. But everyone knows they're ar nothing more than a bunch of pirates. In between smuggling operations, those swashbucklers manage to keep the seas safe from orcs and the Qeynosians, and perhaps even more. When they're not out at sea, they're based out of the Back Alley Brewhouse. Talk to Thuddfoot. He'll tell you more.")
  20. Dialog.AddOption("It will be done, Arcanist.")
  21. Dialog.Start()
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "The Seafuries have been roughed up.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I convinced Bulz the troll to defeat a couple of Seafuries for me. I handled the first mate myself.")
  32. AddQuestStepChat(Quest, 2, "I need to speak with Sonius.", 1, "I need to tell Arcanist Sonius that the job is taken care of.", 11, 1)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I spoke to Arcanist Sonius.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke to Arcanist Sonius.")
  39. UpdateQuestDescription(Quest, "I convinced a troll named Bulz near the Seafuries to attack the men saving me the trouble of doing it myself. Unfortunately a member of their crew was wise to my scheme and attacked me directly. I had to be a little more... direct with him. I reported back to Arcanist Sonius soon afterwards. She was pleased with my work and bestowed upon me the title of Enchanter.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end