9
3

TheSageofAges.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. --[[
  2. Script Name : SpawnScripts/MaidensGulchRescueOfTheSage/TheSageofAges.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 06:06:17
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[
  9. Script Name : SpawnScripts/MaidensGulch:RescueoftheSage/TheSageofAges.lua
  10. Script Purpose : The Sage of Ages
  11. Script Author : Dorbin
  12. Script Date : 2022.06.01
  13. Script Notes : Auto-Generated Conversation from PacketParser Data
  14. --]]
  15. require "SpawnScripts/Generic/DialogModule"
  16. local Drag = 5577
  17. function spawn(NPC)
  18. ProvidesQuest(NPC,Drag)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function hailed(NPC, Spawn)
  24. Dialog8(NPC, Spawn)
  25. --RandomGreeting(NPC, Spawn)
  26. end
  27. function RandomGreeting(NPC, Spawn)
  28. local choice = MakeRandomInt(1,3)
  29. if choice == 1 then
  30. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1012.mp3", 0, 0, Spawn)
  31. elseif choice == 2 then
  32. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1012.mp3", 0, 0, Spawn)
  33. elseif choice == 3 then
  34. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1012.mp3", 0, 0, Spawn)
  35. end
  36. end
  37. function Dialog1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("You do not fathom the danger you are willing to enter. Nagafen resides in the very depths of Solusek's Eye. The Fire Giants are loyal to the Lord Nagafen and will destroy any intruders that set foot within their realm.")
  41. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages007.mp3", 3694642980, 1868050010)
  42. Dialog.AddOption("I can handle a few Fire Giants. ", "Dialog2")
  43. Dialog.AddOption("I guess you are right, it is too dangerous. ")
  44. Dialog.Start()
  45. end
  46. function Dialog2(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("I can see that you won't be dissuaded from pursuing this rash idea. I will relent my position. Please, speak with the Lord Nagafen on my behalf and discover why he seeks my death. I fear there is much more afoot than any of us realize.")
  50. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages008.mp3", 2465179461, 455719688)
  51. Dialog.AddOption("How do we gain audience with Nagafen? ", "Dialog5")
  52. Dialog.Start()
  53. end
  54. function Dialog3(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("There are few Dragons still active in this world. The Age of War and the Age of Cataclysms have taken their tolls on the Dragons as well and they too are recovering. However, there are a few who gained in the destruction. The Lord Nagafen and the Lady Vox have prospered as others have declined in power. These Drakota must have been sent by the Lord Nagafen as he would be the only one to possess the power to do so.")
  58. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages004.mp3", 2067884252, 2225233530)
  59. Dialog.AddOption("Why would he send them after you? ", "Dialog7")
  60. Dialog.Start()
  61. end
  62. function Dialog4(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("I am known as the Sage of Ages, a neutral historian charged with scribing the events of history so that their lessons will not be forgotten, or repeated. It surprises me that these creatures would be sent to attack me.")
  66. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages002.mp3", 1537502806, 3355505267)
  67. Dialog.AddOption("These Drakota were sent? ", "Dialog9")
  68. Dialog.Start()
  69. end
  70. function Dialog5(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. Dialog.New(NPC, Spawn)
  73. Dialog.AddDialog("You must travel down into the heart of Solusek's Eye. There you will find the Gong of Ro. Sound the Gong and you will be transported to the lair of the red dragon. Please, be careful. I will travel to the Tower of the Coldwind Oracles near the city of Qeynos. Please seek me there when you have spoken with the Lord Nagafen. Go with my blessing.")
  74. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages009.mp3", 2590078637, 2100670433)
  75. Dialog.AddOption("Thank you, Sage. We will meet with you soon. ","QuestOffer")
  76. Dialog.Start()
  77. end
  78. function Dialog5(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. OfferQuest(NPC,Spawn,Drag)
  81. end
  82. function Dialog6(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. Dialog.New(NPC, Spawn)
  85. Dialog.AddDialog("I would not send you on such a quest. I will not have the blood of my rescuers on my hands by asking such a thing. It is far too dangerous to send anyone into the lair of Nagafen, and I will not do so to satisfy my own curiosity or my own peace of mind. ")
  86. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages006.mp3", 3400315577, 964328151)
  87. Dialog.AddOption("It is more than that. Your life is in danger.", "Dialog1")
  88. Dialog.AddOption("You are probably right. Farewell Sage. ")
  89. Dialog.Start()
  90. end
  91. function Dialog7(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. Dialog.AddDialog("I know not why he has done this thing and it greatly worries me. Maybe he believes I know too much, or he detests the truths I write. I wish to know what has caused him this distress, but I fear for my own existence if I were to come any closer to his lair.")
  95. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages005.mp3", 4078633044, 89702173)
  96. if not HasQuest(Spawn,Drag) and not HasCompletedQuest(Spawn,Drag) and GetLevel(Spawn)>=45 then
  97. Dialog.AddOption("We can approach him for you.", "Dialog6")
  98. end
  99. Dialog.AddOption("Good luck talking to him. ")
  100. Dialog.Start()
  101. end
  102. function Dialog8(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. Dialog.New(NPC, Spawn)
  105. Dialog.AddDialog("Thank you my friends, thank you! I do not understand why those Drakota attacked me. I cannot be of any threat to them; I am but a humble chronicler!")
  106. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages001.mp3", 934589931, 3209079029)
  107. Dialog.AddOption("Who are you? ", "Dialog4")
  108. Dialog.Start()
  109. end
  110. function Dialog9(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. Dialog.New(NPC, Spawn)
  113. Dialog.AddDialog("Yes, Drakota rarely act of their own initiative. They are weapons used by Dragonkind to fulfill their own designs. I do not know what I could have done to anger the Scalelords. I only scribe the truth and have done so for many centuries.")
  114. Dialog.AddVoiceover("the_sage_of_ages/draconic/sage_of_ages003.mp3", 3064215098, 761918483)
  115. Dialog.AddOption("Who could have sent these? ", "Dialog3")
  116. Dialog.Start()
  117. end