9
3

Rikantus.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. --[[
  2. Script Name : SpawnScripts/Antonica/Rikantus.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.21 09:07:19
  5. Script Purpose :
  6. :
  7. --]]
  8. local ScrawlingsInTheDark = 5329
  9. local TheTrialsOfSirMorgan = 5330
  10. local TheHiddenRiddle = 5331
  11. function spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, ScrawlingsInTheDark) and not HasCompletedQuest(Spawn, ScrawlingsInTheDark) then
  16. local conversation = CreateConversation()
  17. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus000.mp3", "", "", 1901210985, 121957326, Spawn)
  18. AddConversationOption(conversation, "You're very kind, but how safe can a cemetery be? ", "Option1")
  19. AddConversationOption(conversation, "This place gives me the creeps. I am going. ")
  20. StartConversation(conversation, NPC, Spawn, "My camp is your camp, traveler. Sit, sit ... rest a spell. Perhaps the evils of the countryside will subside whilst you warm your belly with some eidolon stew.")
  21. elseif GetQuestStep(Spawn, ScrawlingsInTheDark) < 5 then
  22. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/quest/020_human_male_rikantus_incomplete_fc0224e5.mp3", "I sent you on your way. Do not return until you have what I desire.", "", 532105714, 2356318843, Spawn)
  23. elseif GetQuestStep(Spawn, ScrawlingsInTheDark) == 5 then
  24. Option5(NPC, Spawn)
  25. elseif HasCompletedQuest(Spawn, ScrawlingsInTheDark) and not HasQuest(Spawn, TheTrialsOfSirMorgan) and not HasCompletedQuest(Spawn, TheTrialsOfSirMorgan) then
  26. Option8(NPC, Spawn)
  27. elseif GetQuestStep(Spawn, TheTrialsOfSirMorgan) == 15 then
  28. Option9(NPC, Spawn)
  29. elseif HasCompletedQuest(Spawn, TheTrialsOfSirMorgan) and not HasCompletedQuest(Spawn, TheHiddenRiddle) then
  30. Option11(NPC, Spawn)
  31. end
  32. end
  33. function Option1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus001.mp3", "", "", 3613823523, 1875879979, Spawn)
  37. AddConversationOption(conversation, "Thank you. So what brings an old man into the wilderness? ", "Option2")
  38. AddConversationOption(conversation, "This place gives me the creeps. I am going. ")
  39. StartConversation(conversation, NPC, Spawn, "Do not fear Evernight Cemetery. It is nothing but an old forgotten plot of land now. Nothing to fear here. The dead have long since dug their way out and found their way home or found their way to vengeance. Now how about that stew? My best batch yet.")
  40. end
  41. function Option2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. local conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus002.mp3", "", "", 4016493170, 1510119490, Spawn)
  45. AddConversationOption(conversation, "So you risk your life for heavy coin? ", "Option3")
  46. AddConversationOption(conversation, "You're rathed to be out here and so am I. Farewell.")
  47. StartConversation(conversation, NPC, Spawn, "I'm glad you asked. I am a trader of rare trinkets and a haggler of oddities. Only within the undiscovered territories will I find lost treasures the likes of which attract only the highest profits.")
  48. end
  49. function Option3(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. local conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus003.mp3", "", "", 2196343128, 4289160442, Spawn)
  53. AddConversationOption(conversation, "What do you have for sale? ", "Option4")
  54. AddConversationOption(conversation, "I am afraid I can stay no longer. Farewell.")
  55. StartConversation(conversation, NPC, Spawn, "Profit is not always measured in the tangible. I carry only the rarest of goods and require the greatest of value in trade. Often times the most valuable possessions cannot be contained within a coin purse. Perhaps we can haggle?")
  56. end
  57. function Option4(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus004.mp3", "", "", 1663634136, 3735069894, Spawn)
  61. AddConversationOption(conversation, "What do you wish me to do in exchange for such a trinket? ", "offer")
  62. AddConversationOption(conversation, "I cannot help you. I must leave.")
  63. StartConversation(conversation, NPC, Spawn, "You are not ready to behold one of my curios, but we may well have business to discuss. You are an explorer, an adventurer of the wilds. I am but an old man with a walking stick. Help me and I will offer you a sliver of wonder ... a trinket more priceless than all the platinum on Norrath.")
  64. end
  65. function Option5(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. local conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus006.mp3", "", "", 2543025307, 3679314881, Spawn)
  69. AddConversationOption(conversation, "What is this book and why did the gnolls have it? ", "Option6")
  70. AddConversationOption(conversation, "I have no time for your words. Farewell.")
  71. StartConversation(conversation, NPC, Spawn, "The Scrawlings of Chirannis are mine yet again. Never shall we let it drift from embrace until the cursed words and foul creed are needed again.")
  72. end
  73. function Option6(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. local conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus006.mp3", "", "", 2543025307, 3679314881, Spawn)
  77. AddConversationOption(conversation, "You promised me a reward.", "Option7")
  78. AddConversationOption(conversation, "I have no time for your words. Farewell.")
  79. StartConversation(conversation, NPC, Spawn, "The scratches within this ghastly tome have traveled far to meet the ears of gnolls. It speaks to them of origins and guides them to a foreboding destiny. The gnolls regard this as their newfound highest writ from the dog lord, Chirannis. They shall be very displeased that the sacred words were stolen from their lair.")
  80. end
  81. function Option7(NPC, Spawn)
  82. SetStepComplete(Spawn, ScrawlingsInTheDark, 5)
  83. FaceTarget(NPC, Spawn)
  84. local conversation = CreateConversation()
  85. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus008.mp3", "", "", 2038978809, 4230232989, Spawn)
  86. AddConversationOption(conversation, "Farewell.")
  87. StartConversation(conversation, NPC, Spawn, "Here is your reward, a trinket from my personal vaults. It may appear old and tattered, but the wisdom within shall lead to great fortune.")
  88. end
  89. function Option8(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. local conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus009.mp3", "", "", 1847543773, 266333460, Spawn)
  93. AddConversationOption(conversation, "I will examine the trinket. Farewell.")
  94. StartConversation(conversation, NPC, Spawn, "I have given you a rare trinket, traveler. Take your time to examine its riddles and let it lead you to fortune.")
  95. end
  96. function Option9(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. local conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus010.mp3", "", "", 4196671453, 2147837790, Spawn)
  100. AddConversationOption(conversation, "Your book led me to no fortune. ", "Option10")
  101. AddConversationOption(conversation, "I cannot rest right now. I must go.")
  102. StartConversation(conversation, NPC, Spawn, "Back again so soon? Perhaps you're hungry. I was just about to prepare some patchwork goulash. Nothing feeds a ravenous hunger like a bowl of patchwork goulash.")
  103. end
  104. function Option10(NPC, Spawn)
  105. SetStepComplete(Spawn, TheTrialsOfSirMorgan, 15)
  106. FaceTarget(NPC, Spawn)
  107. local conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus011.mp3", "", "", 1018819553, 3991155928, Spawn)
  109. AddConversationOption(conversation, "All i have is this amulet. Take it. It's worthless.", "Option11")
  110. AddConversationOption(conversation, "I don't have time to talk. Farewell.")
  111. StartConversation(conversation, NPC, Spawn, "So, you read \"The Trials of Sir Morgan.\" Such a brave knight he was, loved by all. If you read his tale, then fortune has just begun.")
  112. end
  113. function Option11(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. local conversation = CreateConversation()
  116. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus012.mp3", "", "", 3588173678, 2145543554, Spawn)
  117. AddConversationOption(conversation, "It's yours? But the book said it came from the Keep of Immortality?", "Option12")
  118. AddConversationOption(conversation, "I don't have time to talk. Farewell.")
  119. StartConversation(conversation, NPC, Spawn, "The Amulet of Ullkorruuk! I once held this many ages ago. I mean, many decades ago. Forgive an old man's memory. I meant to say my family held this long ago when I had a home. With it comes an ancient curse, a curse that cannot be lifted. I shall see that it makes its way home, should I ever return.")
  120. end
  121. function Option12(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. local conversation = CreateConversation()
  124. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus013.mp3", "", "", 3290450870, 3371711202, Spawn)
  125. AddConversationOption(conversation, "What is the Riddle of Saryrn?", "Option13")
  126. AddConversationOption(conversation, "I don't have time for your stories. Farewell. ")
  127. StartConversation(conversation, NPC, Spawn, "The Keep of Immortality housed many wondrous artifacts. Its master was known to associate with my ancestors. The master was a mage called Valdoartus Varsoon and if he holds this, then he must surely hold the Riddle of Saryrn.")
  128. end
  129. function Option13(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. local conversation = CreateConversation()
  132. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus014.mp3", "", "", 3295215206, 1663469634, Spawn)
  133. AddConversationOption(conversation, "If I find this box for you, will you grant me true fortune?", "Option14")
  134. AddConversationOption(conversation, "I don't have time for your stories. Farewell.")
  135. StartConversation(conversation, NPC, Spawn, "The riddle is a puzzle box made of rare metals and forged over time in a vat of planar blood. Silly myth. It is nothing more than an ancient toy. It is nothing special at all, but it is a memento of my heritage.")
  136. end
  137. function Option14(NPC, Spawn)
  138. if not HasQuest(Spawn, TheHiddenRiddle) then
  139. OfferQuest(NPC, Spawn, TheHiddenRiddle)
  140. end
  141. FaceTarget(NPC, Spawn)
  142. local conversation = CreateConversation()
  143. PlayFlavor(NPC, "voiceover/english/optional1/rikantus/antonica/rikantus015.mp3", "", "", 89864911, 2778083584, Spawn)
  144. AddConversationOption(conversation, "I will return with the puzzle box. ")
  145. StartConversation(conversation, NPC, Spawn, "Return to me the Riddle of Saryrn, and you will have your fortune. I promise this or may my soul be cursed to walk this land for eternity.")
  146. end
  147. function offer(NPC, Spawn)
  148. OfferQuest(NPC, Spawn, ScrawlingsInTheDark)
  149. end
  150. function respawn(NPC)
  151. spawn(NPC)
  152. end