AngeliasCorrespondence.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/StarcrestCommune/AngeliasCorrespondence.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.24 08:06:17
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver: Angelia Clayton
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I should take the note to Karrie Clayton in Nettleville.", 1, "I should take this note from Angelia Clayton to her sister Karrie in Nettleville.", 11,2330021)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Nettleville")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Thank you friend! I've not heard from Karrie in a long time. I hope your visit finds her well.")
  21. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  22. Dialog.AddVoiceover("voiceover/english/angelia_clayton/qey_village02/angeliaclayton002.mp3", 4258865427, 3710093138)
  23. Dialog.AddOption("I'll head that way shortly.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 1, "I delivered the note to Karrie Clayton.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I delivered the note to Karrie Clayton.")
  36. UpdateQuestZone(Quest,"Starcrest Commune")
  37. AddQuestStepChat(Quest, 2, "I should return to Angelia Clayton in Starcrest.", 1, "I should return to Angelia Clayton with her sister Karrie's message in Starcrest Commune.", 11,2340029)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 2, "I returned to Angelia.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Angelia.")
  44. UpdateQuestDescription(Quest, "I took the note from Angelia to Karrie who turned out to be doing quite well with her tips. I then returned to Angelia with the response from her sister. I wonder if Angelia will go join her sister as a backup dancer. She was nice enough to get me a few drinks in thanks.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end