delivery_for_the_temple_of_life.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/gavin_ironforge/qey_north/gavinironforge002.mp3", "", "smile", 2486535171, 583526887, Player)
  19. AddConversationOption(conversation, "I'll make sure Rowena receives this.")
  20. StartConversation(conversation, QuestGiver, Player, "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 is not expecting it until tomorrow! You will have some coin upon your return.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I delivered the box of jewelry to Medic Rowena.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "Medic Rowena sends her thanks to Gavin Ironforge for the speedy delivery.")
  31. 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)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 2, "I've spoken with Gavin Ironforge.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "Gavin Ironforge was pleased to hear about Medic Rowena's interest in the box.")
  38. 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>")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end