delivery_for_the_temple_of_life.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/NorthQeynos/delivery_for_the_temple_of_life.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 05:05:58
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Gavin Ironforge
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to deliver a box of jewelry to Medic Rowena.", 1, "I need to head over to the Temple of Life in Qeynos North to speak to medic Rowena.", 927, 2220142)
  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("Wonderful! Take this small box to Medic Rowena in the temple. Tell her the Jewel Box sent you. She'll be very pleased, as she's not expecting it until the morrow. You will have some coin upon your return.")
  20. Dialog.AddVoiceover("voiceover/english/gavin_ironforge/qey_north/gavinironforge002.mp3", 2486535171, 583526887)
  21. PlayFlavor(QuestGiver, "", "", "smile", 0, 0, Player)
  22. Dialog.AddOption("I'll be off now!")
  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. UpdateQuestStepDescription(Quest, 1, "I delivered the box of jewelry to Medic Rowena.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "Medic Rowena sends her thanks to Gavin Ironforge for the speedy delivery.")
  34. AddQuestStepChat(Quest, 2, "I need to return to Gavin.", 1, "I need to let Gavin know the box was delivered and tell him about Rowena's reaction.", 11, 2220475)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I've spoken with Gavin Ironforge.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "Gavin Ironforge was pleased to hear about Medic Rowena's interest in the box.")
  41. UpdateQuestDescription(Quest, "Medic Rowena showed great pleasure in the fact that the etchings from Gavin Ironforge were delivered a day early. Surely the blessings of Rodcet Nife shall follow me should the gods ever return to our world. <br> <br>")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end