9
3

death_certificate.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/NorthFreeport/death_certificate.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.07.04 03:07:09
  5. Script Purpose :
  6. Zone : NorthFreeport
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must give the death certificate to merchant Talia.", 1, "I should give merchant Talia the death certificate of her late husband. Talia is known to sell her wares in the Ruins.", 75, 8420035)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("I wouldn't take these warnings lightly ... Watch yourself, not everyone in Freeport is as forgiving as I. Take this death certificate to merchant Talia. You'll find her peddling her wares in the ruins.")
  20. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  21. Dialog.AddVoiceover("voiceover/english/missionary_g_zule/fprt_north/qst_gzule006.mp3", 3179072985, 1240800573)
  22. Dialog.AddOption("Understood. I'll see she gets this certificate.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 1, "I have given the death certificate to merchant Talia.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I have given merchant Talia the death certificate of her deceased husband, guard Barel.")
  35. UpdateQuestDescription(Quest, "I have given the death certificate of guard Barel to merchant Talia at the request of missionary G'Zule.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end