PriestessXaliea.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/PriestessXaliea.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.25 03:09:32
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Bones = 5754
  10. function spawn(NPC)
  11. ProvidesQuest(NPC,Bones)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, Bones) and not HasCompletedQuest(Spawn, Bones) then
  16. Dialog1(NPC, Spawn)
  17. elseif GetQuestStep(Spawn, Bones) < 2 and not HasCompletedQuest(Spawn, Bones) then
  18. Dialog6(NPC, Spawn)
  19. elseif GetQuestStep(Spawn, Bones) == 2 and not HasCompletedQuest(Spawn, Bones) then
  20. Dialog7(NPC, Spawn)
  21. elseif HasCompletedQuest(Spawn, Bones) then
  22. PlayFlavor(NPC, "voiceover/english/priestess_xaliea/tutorial_island02_fvo_hail1.mp3", "Yeah, yeah. Heal this, cure that. Keep moving.", "sniff", 3735315332, 426916800, Spawn)
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function Dialog1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("The life of a priestess isn't all posies and butterflies, you know? We aren't just here to heal and give you blessings.")
  32. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_01.mp3", 1619628529, 3389802510)
  33. PlayFlavor(NPC,"","","scold",0,0,Spawn)
  34. Dialog.AddOption("You aren't?", "Dialog2")
  35. Dialog.Start()
  36. end
  37. function Dialog2(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("No! There's so much more to our way of life. We constantly battle against the ever rising ranks of the undead. If it wasn't for us, you'd all have your brains sucked out by a legion of zombies!")
  41. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_02.mp3", 2464873714, 2323246094)
  42. PlayFlavor(NPC,"","","no",0,0,Spawn)
  43. Dialog.AddOption("Why don't you let out some steam and go take down some skeletons or something?", "Dialog3")
  44. Dialog.Start()
  45. end
  46. function Dialog3(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("I can't leave my post.")
  50. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_04.mp3", 585972363, 27232816)
  51. Dialog.AddOption("Sorry to hear that.", "Dialog4")
  52. Dialog.Start()
  53. end
  54. function Dialog4(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Hmm, but you can get around freely, can't you? Maybe you could help an old priestess relive her glory days?")
  58. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_05.mp3", 2300229103, 3393998851)
  59. PlayFlavor(NPC,"","","ponder",0,0,Spawn)
  60. Dialog.AddOption("How do you propose I do that?", "Dialog5")
  61. Dialog.AddOption("Not today, sorry.")
  62. Dialog.Start()
  63. end
  64. function Dialog5(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("Go find these skeletons and slay them. If you bring me three bone chips from them, I'll make this all worth your while.")
  68. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_firsttalk_06.mp3", 3310184043, 4007538840)
  69. Dialog.AddOption("I'll do it.", "QuestOffer")
  70. Dialog.AddOption("Not right now.")
  71. Dialog.Start()
  72. end
  73. function QuestOffer(NPC,Spawn)
  74. OfferQuest(NPC,Spawn,Bones)
  75. FaceTarget(NPC, Spawn)
  76. end
  77. function Dialog6(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. Dialog.New(NPC, Spawn)
  80. Dialog.AddDialog("I can hear them, out there in the distance. Their bones are rattling and crackling. Oh! How I want to feel them crumble beneath my grasp. Hurry up, bring me those bone chips!")
  81. PlayFlavor(NPC,"","","scheme",0,0,Spawn)
  82. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_secondtalk_01.mp3", 125454777, 4152864248)
  83. Dialog.AddOption("I will do so.")
  84. Dialog.Start()
  85. end
  86. function Dialog7(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. Dialog.New(NPC, Spawn)
  89. Dialog.AddDialog("Ah, the sweet smell of death! They're so dry and brittle, just like I remembered. Thank you.")
  90. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_finaltalk_01.mp3", 3450984862, 1970143622)
  91. PlayFlavor(NPC,"","","cackle",0,0,Spawn)
  92. Dialog.AddOption("You're welcome.", "Dialog8")
  93. Dialog.Start()
  94. end
  95. function Dialog8(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. Dialog.New(NPC, Spawn)
  98. Dialog.AddDialog("Here, take these coins. This should be more than what the merchant would give you for these beauties.")
  99. Dialog.AddVoiceover("voiceover/english/priestess_xaliea/tutorial_island01/xaliea/xaliea_ally_finaltalk_02.mp3", 1023024209, 1047449217)
  100. PlayFlavor(NPC,"","","thanks",0,0,Spawn)
  101. Dialog.AddOption("Thank you.")
  102. Dialog.Start()
  103. SetStepComplete(Spawn, Bones, 2)
  104. end