9
3

verths_delivery.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/Nettleville/verths_delivery.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.24 12:06:59
  5. Script Purpose :
  6. Zone : Nettleville
  7. Quest Giver: Verth
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I should meet Aves.", 1, "I should get down to the Nettleville Dock and meet up with Verth's brother, Aves.", 11, 2330008)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  20. Dialog.AddDialog("Good choice! My brother's name is Aves and he doesn't like to wait. Hurry along now!")
  21. Dialog.AddVoiceover("voiceover/english/verth/qey_village01/verth002.mp3", 4028969194, 2237905916)
  22. Dialog.AddOption("I'll be back shortly.")
  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 Step1Complete(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 met up with Aves.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I met Verth's brother, Aves, down by the docks.")
  35. AddQuestStepChat(Quest, 2, "I need to decide what to do with this contraband.", 1 , "I can deliver this crate of Freeport stout to Verth as discussed OR find authorities interested in this contraband.", 655, 2330051,2330022)
  36. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 2, "I delivered the contraband.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I delivered the contraband. Did I make the right decision?")
  42. UpdateQuestDescription(Quest, "I have gotten rid of the contraband given to me by Aves. I wonder if I did the right thing.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end