9
3

ElsabethiaHartsunder.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/ElsabethiaHartsunder.lua
  3. Script Purpose : Elsabethia Hartsunder
  4. Script Author : Dorbin
  5. Script Date : 2022.04.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. ProvidesQuest(NPC,5545)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11)>0 then
  17. Dialog2(NPC, Spawn)
  18. PlayAnimation(NPC,539)
  19. end
  20. end
  21. function Dialog1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. Dialog.New(NPC, Spawn)
  24. PlayFlavor(NPC, "", "", "shrug", 0, 0, Spawn)
  25. Dialog.AddDialog("I'm not entirely certain. I've only been able to identify the species that carry the infection. The malady has eluded any real research because it dies with the host. What I need are some living hosts to study...")
  26. Dialog.AddVoiceover("voiceover/english/optional5/elsabethia_hartsunder/qey_north/elsabethia_hartsunder002.mp3", 2822933996, 1733168788)
  27. if not HasQuest(Spawn,5545) and not HasCompletedQuest(Spawn,5545) and GetLevel(Spawn) >= 10 then
  28. Dialog.AddOption("Maybe I can help you.", "Dialog4")
  29. end
  30. Dialog.AddOption("Good luck with your research.")
  31. Dialog.Start()
  32. end
  33. function Dialog2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1021.mp3", "", "", 0, 0, Spawn)
  37. Dialog.AddDialog("Forgive me but I must return to my work. Please speak with one of the other priests. I'm certain they will be more than happy to assist you.")
  38. -- Dialog.AddVoiceover("voiceover/english/optional5/elsabethia_hartsunder/qey_north/elsabethia_hartsunder000.mp3", 2808880606, 3373507880)
  39. if not HasQuest(Spawn,5545) and not HasCompletedQuest(Spawn,5545) and GetLevel(Spawn) >= 10 then
  40. Dialog.AddOption("What is your work?", "Dialog3")
  41. end
  42. if HasCompletedQuest(Spawn,5545)then
  43. Dialog.AddOption("How is your research going?", "DoneDialog")
  44. end
  45. if GetQuestStep(Spawn,5545)==4 then
  46. Dialog.AddOption("I have the diseaed materials you requested.","QuestTurnIn")
  47. end
  48. Dialog.Start()
  49. end
  50. function Dialog3(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  54. Dialog.AddDialog("I'm overseeing the research of a new infection spreading among the vermin populace in the catacombs. We've learned from the past years that prevention is the best cure for any ailment.")
  55. Dialog.AddVoiceover("voiceover/english/optional5/elsabethia_hartsunder/qey_north/elsabethia_hartsunder001.mp3", 3349903032, 985226807)
  56. Dialog.AddOption("What type of infection?", "Dialog1")
  57. Dialog.AddOption("I'll let you get back to your work.")
  58. Dialog.Start()
  59. end
  60. function Dialog4(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  64. Dialog.AddDialog("Your help would come as a blessing. The tomb leeches, giant burrowers, and tomb vermin that infest the Vermin's Snye catacomb are the species that carry the infection. I need a live specimen from each of these host species to progress in my research.")
  65. Dialog.AddVoiceover("voiceover/english/optional5/elsabethia_hartsunder/qey_north/elsabethia_hartsunder003.mp3", 3285881813, 3232967682)
  66. Dialog.AddOption("I'll retrieve the live specimens for you.", "Dialog5")
  67. Dialog.AddOption("I don't think I can be of assistance. Good luck.")
  68. Dialog.Start()
  69. end
  70. function Dialog5(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. OfferQuest(NPC,Spawn,5545)
  73. Dialog.New(NPC, Spawn)
  74. Dialog.AddDialog("Please be careful transporting the diseased creatures. I would hate for you to become infected.")
  75. Dialog.AddVoiceover("voiceover/english/optional5/elsabethia_hartsunder/qey_north/elsabethia_hartsunder004.mp3", 1012652125, 593920710)
  76. Dialog.AddOption("I understand and thank you.")
  77. Dialog.Start()
  78. end
  79. function QuestTurnIn(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. SetStepComplete(Spawn,5545,4)
  82. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  83. Dialog.New(NPC, Spawn)
  84. Dialog.AddDialog("Ahh ... You have a good soul, child. You performed a brave and merciful act down in the sewers. Remember, sometimes death is the only cure, no matter how much it hurts you. Though we couldn't save those poor diseased creatures, we can try to stop the illness from spreading by finding its source.")
  85. Dialog.AddVoiceover("voiceover/english/optional5/elsabethia_hartsunder/qey_north/elsabethia_hartsunder005.mp3", 1012652125, 593920710)
  86. Dialog.AddOption("Thank you. I'm glad I could help.")
  87. Dialog.Start()
  88. end
  89. function DoneDialog(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  92. Dialog.New(NPC, Spawn)
  93. Dialog.AddDialog("The specimens you brought me have helped immensely. Hopefully, I'm on the cusp of a breakthrough and will be able to better help the infected here in the city.")
  94. Dialog.AddVoiceover("voiceover/english/optional5/elsabethia_hartsunder/qey_north/elsabethia_hartsunder006.mp3", 1012652125, 593920710)
  95. Dialog.AddOption("I'm glad to hear it. Good luck!")
  96. Dialog.Start()
  97. end