running_for_a_candidate.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : running_for_a_candidate.lua
  3. Script Purpose : Handles the quest, "Running For A Candidate"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 17.07.2022
  6. Script Notes :
  7. Zone : Beggar's Court
  8. Quest Giver : Mariana Darkleaf
  9. Preceded by : To Spite a Darkleaf
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Lurina in Beggar's Court.", 1, "I need to tell Lurina Galla that 'Elowyn is a perfect candidate'.", 11, 1370026)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function QuestComplete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've spoken with Lurina.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've given Lurina the message that Mariana had me send.")
  20. UpdateQuestDescription(Quest, "I think I may have stumbled into some intrigue in the district. It seems that Lurina Galla and Mariana Darkleaf have something going on that involves Elowyn the Half-Elf. I wonder if one day I'll find out more about what's going on. No sense bothering Mariana again. For now.")
  21. GiveQuestReward(Quest, Player)
  22. end
  23. function Accepted(Quest, QuestGiver, Player)
  24. FaceTarget(QuestGiver, Player)
  25. Dialog.New(QuestGiver, Player)
  26. Dialog.AddDialog("Ugh. If you'll stop bothering me, then fine! Go find Lurina Galla and tell her I found the perfect candidate, Elowyn. He's ideal! Now, off with you! Go tell Lurina and don't bother me again!")
  27. Dialog.AddOption("Fine.")
  28. Dialog.Start()
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. -- Add dialog here for when the quest is declined
  32. end
  33. function Deleted(Quest, QuestGiver, Player)
  34. -- Remove any quest specific items here when the quest is deleted
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end