9
3

DrundMordgraahlSkullsprain.lua 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : SpawnScripts/Freeport/DrundMordgraahlSkullsprain.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.07.15 06:07:33
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheLostReligionOfFallenGate = 5317
  9. local QuestItemID = 5487 -- copied glyphs item
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TheLostReligionOfFallenGate)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. local conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/mordgraahl_skullsprain.mp3", "", "scold", 1415851457, 630090694, Spawn)
  17. if not HasQuest(Spawn, TheLostReligionOfFallenGate) and not HasCompletedQuest(Spawn, TheLostReligionOfFallenGate) then
  18. AddConversationOption(conversation, "I was hoping I could be of some use to the temple. ", "Option1")
  19. elseif GetQuestStep(Spawn, TheLostReligionOfFallenGate) == 2 and HasItem(Spawn, QuestItemID) then
  20. AddConversationOption(conversation, "I bring you images of the glyphs of the Gong of Uglan.", "Option11")
  21. end
  22. AddConversationOption(conversation, "I didn't mean any offense. I'll be going now.")
  23. StartConversation(conversation, NPC, Spawn, "Commoner! You dare to speak so freely to a Drund in this place of reverence?! You best have good reason for this intrusion.")
  24. end
  25. function Option1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. local conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial.mp3", "", "", 1140746236, 979548360, Spawn)
  29. AddConversationOption(conversation, "What sort of assistance do you need?", "Option2")
  30. AddConversationOption(conversation, "I cannot serve the Drund this day. ")
  31. StartConversation(conversation, NPC, Spawn, "Are you? It seems the winds of war have brought us together, as I need assistance.")
  32. end
  33. function Option2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial2.mp3", "", "", 3104011062, 2485385696, Spawn)
  37. AddConversationOption(conversation, "What do you want me to look for?", "Option3")
  38. AddConversationOption(conversation, "I will not enter Fallen Gate. ")
  39. StartConversation(conversation, NPC, Spawn, "I've heard rumors of the discovery of Neriak's foreign quarter. Adventurers in the local tavern call it Fallen Gate. I want you to go into this lost domain and look for something.")
  40. end
  41. function Option3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. local conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial3.mp3", "", "", 2490590703, 3276928304, Spawn)
  45. AddConversationOption(conversation, "The First Gate is now called the Fallen Gate? It doesn't sound too safe.", "Option4")
  46. AddConversationOption(conversation, "What was the social change?", "Option5")
  47. AddConversationOption(conversation, "I cannot aid you in your quest for the artifact.")
  48. StartConversation(conversation, NPC, Spawn, "I've read historical accounts of a great artifact given to an ogre warlord during the Age of Cataclysms. This artifact was created for this ogre during a time of social change within the First Gate of Neriak.")
  49. end
  50. function Option4(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial5.mp3", "", "", 3929421173, 3114535005, Spawn)
  54. AddConversationOption(conversation, "What else do you know about this Fallen Gate?", "Option5")
  55. AddConversationOption(conversation, "I don't think I can do this mission for the Drund.")
  56. StartConversation(conversation, NPC, Spawn, "The First Gate of Neriak is located deep beneath the surface world. A powerful arcane device was smuggled into the district where it unleashed a quake so massive that the caverns of the First Gate fell and sealed this place off from the living.")
  57. end
  58. function Option5(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. local conversation = CreateConversation()
  61. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial4.mp3", "", "", 2177041203, 3449909881, Spawn)
  62. AddConversationOption(conversation, "Why are you interested in this lost religion?", "Option6")
  63. AddConversationOption(conversation, "Who is the lost god?", "Option7")
  64. StartConversation(conversation, NPC, Spawn, "Ancient records state that ogres and trolls of the First Gate worshipped a lost deity. This was not long before the city's disappearance. When the great First Gate perished, so too did the secrets of this lost religion and their deity.")
  65. end
  66. function Option6(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. local conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial7.mp3", "", "", 2719750723, 2664538050, Spawn)
  70. AddConversationOption(conversation, "Who is the lost god?", "Option7")
  71. AddConversationOption(conversation, "What if the records are wrong?", "Option8")
  72. AddConversationOption(conversation, "What does it matter? Almost everyone belives the gods to be dead anyway.")
  73. StartConversation(conversation, NPC, Spawn, "If this religion was followed by the dark elves or trolls alone, then I certainly wouldn't give spit about it. But the records didn't say that dark elves and trolls worshipped this new deity; it said that ogres worshipped it.")
  74. end
  75. function Option7(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. local conversation = CreateConversation()
  78. -- need "DontKnow" animation here
  79. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial6.mp3", "", "", 2552193369, 2565419806, Spawn)
  80. AddConversationOption(conversation, "Why are you interested in this lost religion?", "Option9")
  81. StartConversation(conversation, NPC, Spawn, "How can I know who the deity is if the religion died before it could leave Neriak? The religion disappeared three centuries ago.")
  82. end
  83. function Option8(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. local conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial8.mp3", "", "doh", 618927212, 1141537925, Spawn)
  87. AddConversationOption(conversation, "What is the artifact you seek?", "Option10")
  88. AddConversationOption(conversation, "I have heard tales. Fallen Gate is certain death. Count me out!")
  89. StartConversation(conversation, NPC, Spawn, "Why do you think I'm not going down there myself? Because I'm a coward? I'm a scholar first and warrior second. If I was certain of the religion's activity, then I would request the Drunds plan an expedition.")
  90. end
  91. function Option9(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. local conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/optional1/drund_mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial9.mp3", "", "", 2803931381, 1089581073, Spawn)
  95. AddConversationOption(conversation, "What if the records are wrong?", "Option8")
  96. AddConversationOption(conversation, "Who is the lost god?", "Option7")
  97. StartConversation(conversation, NPC, Spawn, "The opinions of others do not concern me or my purpose. All I care about is the history of my people and completing what sparse records we have of this piece of our past.")
  98. end
  99. function Option10(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. local conversation = CreateConversation()
  102. PlayFlavor(NPC, "voiceover/english/optional1/mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_initial10.mp3", "", "", 951862517, 1442427286, Spawn)
  103. AddConversationOption(conversation, "I will help the Drunds, but how?", "offer")
  104. AddConversationOption(conversation, "This quest for lost religions and gods is a fool's quest. Good bye.")
  105. StartConversation(conversation, NPC, Spawn, "The artifact is a magical gong called the Gong of Uglan. It is said that dark elf blacksmiths crafted this artifact out of a magical alloy and rewarded it to the ogre warlord Uglan for a deed ... a mysterious deed.")
  106. end
  107. function Option11(NPC, Spawn)
  108. SetStepComplete(Spawn, TheLostReligionOfFallenGate, 2)
  109. FaceTarget(NPC, Spawn)
  110. local conversation = CreateConversation()
  111. PlayFlavor(NPC, "voiceover/english/optional1/drund_mordgraahl_skullsprain/fprt_north/quests/mordgraahlskullsprain/mordgraahlskullsprain_x1_return.mp3", "", "", 3642193573, 351825200, Spawn)
  112. AddConversationOption(conversation, "I thank the Dismal Rage and the Drund sect for allowing me the honor to assist.")
  113. StartConversation(conversation, NPC, Spawn, "Excellent! The Drund thank you. This evidence shall convince the entire Dismal Rage to commit to an expedition. The union of our faiths shall aid us in our destiny and prepare us to exterminate the benevolent and weak faiths of this realm")
  114. end
  115. function offer(NPC, Spawn)
  116. OfferQuest(NPC, Spawn, TheLostReligionOfFallenGate)
  117. end
  118. function respawn(NPC)
  119. spawn(NPC)
  120. end