9
3

KylanithDLar.lua 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/KylanithDLar.lua
  3. Script Purpose : Kylanith D`Lar
  4. Script Author : John Adams//Dorbin (Restructured w/ DialogMod & garbled 15/10/2023)
  5. Script Date : 2008.09.29 (20.7.2022 by torsten)
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/UnknownLanguage.lua")
  10. local TheStolenArtifactsofThex = 5683
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, TheStolenArtifactsofThex)
  13. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. if GetFactionAmount(Spawn,12) <0 then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "","","shakefist",0,0, Spawn)
  22. elseif not HasLanguage(Spawn,2)then
  23. FaceTarget(NPC, Spawn)
  24. Garbled(NPC,Spawn)
  25. else
  26. end
  27. end
  28. function hailed(NPC, Spawn)
  29. if GetFactionAmount(Spawn,12) <0 then
  30. FaceTarget(NPC, Spawn)
  31. PlayFlavor(NPC, "","","shakefist",0,0, Spawn)
  32. else
  33. if not HasLanguage(Spawn,2)then
  34. FaceTarget(NPC, Spawn)
  35. Garbled(NPC,Spawn)
  36. else
  37. Dialog1(NPC,Spawn)
  38. end
  39. end
  40. end
  41. function Dialog1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("They call this the Age of Destiny. It's the age of someone's or some empire's claim to destiny. The world is in ruins. And now here we are, in Freeport, begging for acceptance and the embrace of its mighty walls.")
  45. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/qst_kylanith_hail.mp3", 387692981, 2731095766)
  46. Dialog.AddLanguage(2)
  47. Dialog.AddOption("I cannot chat now. Farewell.")
  48. if not HasQuest(Spawn, TheStolenArtifactsofThex) and not HasCompletedQuest(Spawn, TheStolenArtifactsofThex) then
  49. Dialog.AddOption("Freeport is strong! Qeynos is weak!", "Dialog2")
  50. elseif GetQuestStep(Spawn, TheStolenArtifactsofThex) == 5 then
  51. Dialog.AddOption("I could only find four monuments.", "Dialog8")
  52. elseif GetQuestStep(Spawn, TheStolenArtifactsofThex) == 7 then
  53. Dialog.AddOption("I found the last monument, but it was illegible.", "Dialog9")
  54. end
  55. Dialog.Start()
  56. end
  57. function Dialog2(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("Qeynos or Freeport? There was no choice for my kind. The Antonicans fear the greatness of the Teir'Dal. And the Overlord? I believe he knows he cannot rule us, but better to keep an eye on us than let us claim our destiny. We only exist within Longshadow Alley by the will of the Foci, not Lucan!")
  61. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/quests/kylanithdlar/kylanith_lore_01.mp3", 1570701615, 3622138466)
  62. PlayFlavor(NPC, "","","shrug",0,0, Spawn)
  63. Dialog.AddLanguage(2)
  64. Dialog.AddOption("Careful! Do not speak the Overlord's name or we shall both die!", "Dialog3")
  65. Dialog.AddOption("I cannot chat now. Farewell.")
  66. Dialog.Start()
  67. end
  68. function Dialog3(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. Dialog.New(NPC, Spawn)
  71. Dialog.AddDialog("I would rather welcome death than give Lucan allegiance! To those who bask in the light, we have done little more than pose a threat to their existence. He and his puppet they call Foci will tremble when Neriak roars again! Our past grandeur shall rise again.")
  72. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/quests/kylanithdlar/kylanith_lore_02.mp3", 1956578837, 2860993398)
  73. PlayFlavor(NPC, "","","stare",0,0, Spawn)
  74. Dialog.AddLanguage(2)
  75. Dialog.AddOption("What grandeur?", "Dialog4")
  76. Dialog.AddOption("I cannot chat now. Farewell.")
  77. Dialog.Start()
  78. end
  79. function Dialog4(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. Dialog.New(NPC, Spawn)
  82. Dialog.AddDialog("The grandeur of an empire that spans greater than the Shattered Lands. An empire that has existed longer than man or elf ruled these lands. All that most know of us is a city called Neriak, never knowing truth.")
  83. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/quests/kylanithdlar/kylanith_lore_03.mp3", 4093915268, 1190295502)
  84. Dialog.AddLanguage(2)
  85. Dialog.AddOption("What happened to Neriak?", "Dialog5")
  86. Dialog.AddOption("I cannot chat now. Farewell.")
  87. Dialog.Start()
  88. end
  89. function Dialog5(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. Dialog.AddDialog("Many say it has been consumed by the Underfoot that once sheltered it. Crushed under the weight of the falling surface as quakes rend this land asunder, creating what we now know as the Shattered Lands. We know only of the relics that remain.")
  93. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/quests/kylanithdlar/kylanith_lore_09.mp3", 1273569291, 3869823159)
  94. PlayFlavor(NPC, "","","orate",0,0, Spawn)
  95. Dialog.AddLanguage(2)
  96. Dialog.AddOption("What relics?", "Dialog6")
  97. Dialog.AddOption("I cannot chat now. Farewell.")
  98. Dialog.Start()
  99. end
  100. function Dialog6(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. Dialog.New(NPC, Spawn)
  103. Dialog.AddDialog("The Ashlands, or should I say, Nektulos? That was once the surface territory of the dark elf empire. It is littered with remnants of that ancient occupation. Even here in Freeport you can find dark elf artifacts.")
  104. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/quests/kylanithdlar/kylanith_lore_10.mp3", 1404555822, 3452180553)
  105. Dialog.AddLanguage(2)
  106. if CanReceiveQuest(Spawn,TheStolenArtifactsofThex)then
  107. Dialog.AddOption("Where can I find these relics in Freeport?", "Dialog7")
  108. end
  109. Dialog.AddOption("I cannot chat now. Farewell.")
  110. Dialog.Start()
  111. end
  112. function Dialog7(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. Dialog.New(NPC, Spawn)
  115. Dialog.AddDialog("Gossip is circulating that within the walls of Freeport our ancient allies have betrayed us yet again! The wretched oafs of Big Bend have claimed five artifacts of Thexian past. I must know if this is true!")
  116. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/quests/kylanithdlar/kylanith_lore_11.mp3", 568372124, 1694164407)
  117. Dialog.AddLanguage(2)
  118. Dialog.AddOption("I can find the five artifacts.", "Offer")
  119. Dialog.AddOption("I cannot chat now. Farewell.")
  120. Dialog.Start()
  121. end
  122. function Offer(NPC,Spawn)
  123. OfferQuest(NPC,Spawn,TheStolenArtifactsofThex)
  124. FaceTarget(NPC, Spawn)
  125. end
  126. function Dialog8(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. Dialog.New(NPC, Spawn)
  129. Dialog.AddDialog("I was afraid of that. Recent reports from fellow Thexians have placed another Thex monument being used as a grave marker within the graveyard of Freeport. Go there and seek it out. ")
  130. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/quests/kylanithdlar/kylanith_lore_12.mp3", 250824677, 1536158300)
  131. Dialog.AddLanguage(2)
  132. Dialog.AddOption("I shall find the gravestone.","Update7")
  133. Dialog.Start()
  134. end
  135. function Update7(NPC,Spawn)
  136. SetStepComplete(Spawn,TheStolenArtifactsofThex,5)
  137. end
  138. function Dialog9(NPC, Spawn)
  139. FaceTarget(NPC, Spawn)
  140. Dialog.New(NPC, Spawn)
  141. Dialog.AddDialog("I'm pleased with your find. Now my fellow Thexians and I can conspire to retrieve these artifacts. No one will dare claim such things in the future, lest they encounter the wrath of the Thexians.")
  142. Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/language/thexian/lan_5_kylanith_x1_initial02.mp3", 3166325585, 1383277729)
  143. Dialog.AddLanguage(2)
  144. Dialog.AddOption("Farewell Kylanith.")
  145. Dialog.Start()
  146. SetStepComplete(Spawn,TheStolenArtifactsofThex,7)
  147. end