9
3

IgnarSteadirt.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. --[[
  2. Script Name : IgnarSteadirt.lua
  3. Script Purpose : Ignar Steadirt
  4. Script Author : Jabantiz
  5. Script Date : 08/29/2019
  6. Script Notes : Auto-Generated from a chat log using SpawnScriptDesigner
  7. --]]
  8. local LordGrimrotsScythe = 5522
  9. local greetingsTable = { "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3",
  10. "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3",
  11. "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3"};
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, LordGrimrotsScythe)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. if not HasQuest(Spawn, LordGrimrotsScythe) and not HasCompletedQuest(Spawn, LordGrimrotsScythe) then
  21. Option0(NPC, Spawn)
  22. elseif GetQuestStep(Spawn, LordGrimrotsScythe) == 1 or GetQuestStep(Spawn, LordGrimrotsScythe) == 2 or GetQuestStep(Spawn, LordGrimrotsScythe) == 3 or GetQuestStep(Spawn, LordGrimrotsScythe) == 4 then
  23. Reports_Progress(NPC, Spawn)
  24. elseif GetQuestStep(Spawn, LordGrimrotsScythe) == 6 then
  25. Reports_Progress2(NPC, Spawn)
  26. elseif GetQuestStep(Spawn, LordGrimrotsScythe) == 7 and GetQuestStep(Spawn, LordGrimrotsScythe) == 8 then
  27. Reports_Progress3(NPC, Spawn)
  28. elseif GetQuestStep(Spawn, LordGrimrotsScythe) == 9 then
  29. PlayFlavor(NPC, "voiceover/english/ignar_steadirt/antonica/quest/045_dwarf_ignar_steadirt_g1_onstage7_68f3d9e4.mp3", "Well? Have you spoken with the dwarven centurion yet? His name's Grimbold Steadirt -- you can't miss him, he's near the gates to Firemyst.", "", 1513486151, 2077778983, Spawn)
  30. elseif HasCompletedQuest(Spawn, LordGrimrotsScythe) then
  31. Quest_Completed(NPC, Spawn)
  32. end
  33. end
  34. function Option0(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. AddConversationOption(conversation, "Is that why you are here?", "Option1")
  37. AddConversationOption(conversation, "Well, not me. At least, not right now.", "refuse")
  38. StartConversation(conversation, NPC, Spawn, "The great Qeynos Claymore -- folks come from all over to pray here.")
  39. end
  40. function Reports_Progress(NPC, Spawn)
  41. PlayFlavor(NPC, greetingsTable[math.random(#greetingsTable)], "", "", 0, 0, Spawn)
  42. local conversation = CreateConversation()
  43. if GetQuestStep(Spawn, LordGrimrotsScythe) == 4 or GetQuestStep(Spawn, LordGrimrotsScythe) == 5 then
  44. AddConversationOption(conversation, "Yes, I've spoken with your three knights.", "Option5")
  45. end
  46. AddConversationOption(conversation, "Not yet, I'll be back when I've spoken to all three knights.")
  47. StartConversation(conversation, NPC, Spawn, "Got all three reports for me, eh?")
  48. end
  49. function Reports_Progress2(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. AddConversationOption(conversation, "I fought the Sabertooth rune casters, but found only part of Lord Grimrot's war scythe.", "Option10")
  52. AddConversationOption(conversation, "Not yet. I will return when I've done as you asked.")
  53. StartConversation(conversation, NPC, Spawn, "What news do you have? And speak up, will you? I can barely hear you with all the noise around this monument!")
  54. end
  55. function Reports_Progress3(NPC, Spawn)
  56. local conversation = CreateConversation()
  57. if GetQuestStep(Spawn, LordGrimrotsScythe) == 8 then
  58. AddConversationOption(conversation, "I found the remaining piece of Lord Grimrot's scythe.", "Option13")
  59. end
  60. AddConversationOption(conversation, "Not yet. I will continue the fight!")
  61. StartConversation(conversation, NPC, Spawn, "Yes? Oh, it's you again! Have you gotten the final piece of the scythe?")
  62. end
  63. function Option1(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. local conversation = CreateConversation()
  66. AddConversationOption(conversation, "Who are your enemies?", "Option2")
  67. StartConversation(conversation, NPC, Spawn, "I came here seeking strength to defeat my enemies.")
  68. end
  69. function Option2(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. local conversation = CreateConversation()
  72. AddConversationOption(conversation, "Do you need help?", "Option3")
  73. AddConversationOption(conversation, "Wish I had time to help. Perhaps later.", "refuse2")
  74. StartConversation(conversation, NPC, Spawn, "I pray for the strength to conquer the undead, but they are not just my enemies; the undead are the enemies of us all. Several days ago, patrols were sent to see how our battle against the undead was faring. And I -- I have the most disagreeable task of all. I have to stand here and wait for the reports to return. Me! Standing around waiting when there's undead to cleave! Pah!")
  75. end
  76. function Option3(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. local conversation = CreateConversation()
  79. AddConversationOption(conversation, "I could be persuaded.", "Option4")
  80. AddConversationOption(conversation, "No, I'd rather not.")
  81. StartConversation(conversation, NPC, Spawn, "That's why I'm praying. Perhaps my prayers have been answered. Are you here to help me?")
  82. end
  83. function Option4(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. local conversation = CreateConversation()
  86. AddConversationOption(conversation, "Start what?", "offer")
  87. AddConversationOption(conversation, "No, not right now.", "refuse3")
  88. StartConversation(conversation, NPC, Spawn, "Excellent. Are you ready to start?")
  89. end
  90. function Option5(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. local conversation = CreateConversation()
  93. if GetQuestStep(Spawn, LordGrimrotsScythe) == 4 then
  94. AddConversationOption(conversation, "The gnolls have Lord Grimrot's war scythe and are using it to resurrect him for a new undead battle against Qeynos.", "Option7")
  95. AddConversationOption(conversation, "Morte's a human! You didn't tell me that!", "Option6")
  96. end
  97. AddConversationOption(conversation, "I'll be right back.")
  98. StartConversation(conversation, NPC, Spawn, "Anything interesting? The last reports were hardly worth waiting for, but a good soldier never lets his guard down -- ever!")
  99. end
  100. function Option6(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. local conversation = CreateConversation()
  103. AddConversationOption(conversation, "I have the reports, before I forget to tell you.", "Option5")
  104. AddConversationOption(conversation, "I suppose so.")
  105. StartConversation(conversation, NPC, Spawn, "Ah, yes, Morte. He's a good lad, if a bit addled. He really wants to become a blacksmith, but I hate to tell him ... he's already too old for anyone to take him on as an apprentice. Still, it's good for us to have our dreams, isn't it? He dreams of fire and tongs, while I dream of returning to battle.")
  106. end
  107. function Option7(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. local conversation = CreateConversation()
  110. AddConversationOption(conversation, "What can I do to help you?", "Option8")
  111. AddConversationOption(conversation, "I'll have to continue this later.")
  112. StartConversation(conversation, NPC, Spawn, "What!? Lord Grimrot? It can't be ... Pestilence -- that's his war scythe, found after all these years? I never credited the gnolls with having any brains, and this proves it! If they go through with this, it could mean another War of Plagues!")
  113. end
  114. function Option8(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. local conversation = CreateConversation()
  117. AddConversationOption(conversation, "I'll destroy the scythe.", "Option9")
  118. StartConversation(conversation, NPC, Spawn, "We must get that scythe at any cost. A large-scale invasion won't do us any good; they might just try to hurry up whatever it is they're doing. No, we've got to get a small force to find Pestilence and destroy it. ")
  119. end
  120. function Option9(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. local conversation = CreateConversation()
  123. SetStepComplete(Spawn, LordGrimrotsScythe, 4)
  124. PlayAnimation(NPC, 121)
  125. AddConversationOption(conversation, "Don't worry -- I will be back.")
  126. StartConversation(conversation, NPC, Spawn, "You might want to bring along some trusted companions, for I'm sure the gnolls will have this thing hidden -- from each other, as well as from outsiders like us! If they're trying to do some fancy spellwork, their rune casters will be involved. Watch for their guards too.")
  127. end
  128. function Option10(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. local conversation = CreateConversation()
  131. AddConversationOption(conversation, "So I need to find the other part with the Darkpaws?", "Option11")
  132. StartConversation(conversation, NPC, Spawn, "I wonder whether each group has a piece of the scythe ... that might explain their sudden cooperation:An uneasy truce until they unleash Lord Grimrot. I'll bet they need each other to get this to work. And you know this actually ties in with the last reports, of those Darkpaws and Sabertooth gnolls suddenly getting friendly toward each other.")
  133. end
  134. function Option11(NPC, Spawn)
  135. FaceTarget(NPC, Spawn)
  136. local conversation = CreateConversation()
  137. AddConversationOption(conversation, "And then...?", "Option12")
  138. StartConversation(conversation, NPC, Spawn, "It looks that way, my friend. Just as the Sabertooth gnolls protect their rune casters, so do the Darkpaws. A small group is the best way to achieve success. And then...")
  139. end
  140. function Option12(NPC, Spawn)
  141. SetStepComplete(Spawn, LordGrimrotsScythe, 6)
  142. FaceTarget(NPC, Spawn)
  143. local conversation = CreateConversation()
  144. AddConversationOption(conversation, "...haunt us. Yes, I know. I'll take care of the scythe.")
  145. StartConversation(conversation, NPC, Spawn, "And then, well, we'll have stopped them, won't we? Anyway, it's best to take things one step at a time. We'll deal with what comes after we destroy the entire scythe -- if there is anything, mind you. The undead have a way of coming back to ... well, you know...")
  146. end
  147. function Option13(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. local conversation = CreateConversation()
  150. AddConversationOption(conversation, "Well...no, I'm not sure.", "Option14")
  151. StartConversation(conversation, NPC, Spawn, "That's one less thing for me to worry about. Thank you! The undead continue to stir, though, which disturbs me. You're sure you destroyed all pieces of Pestilence?")
  152. end
  153. function Option14(NPC, Spawn)
  154. SetStepComplete(Spawn, LordGrimrotsScythe, 8)
  155. FaceTarget(NPC, Spawn)
  156. local conversation = CreateConversation()
  157. AddConversationOption(conversation, "I'll take a look.")
  158. StartConversation(conversation, NPC, Spawn, "Either way, there's no denying that the undead are restless over in Firemyst Gully -- that's where untold numbers of 'em were buried in the War of Plagues. In fact, maybe you could go over and see if the dwarven centurion at the Firemyst gate needs anything. I'm afraid my lot is to stay here. Go find glory in battle, farewell.")
  159. end
  160. function Quest_Completed(NPC, Spawn)
  161. FaceTarget(NPC, Spawn)
  162. local conversation = CreateConversation()
  163. PlayAnimation(NPC, 121)
  164. AddConversationOption(conversation, "Farewell.")
  165. StartConversation(conversation, NPC, Spawn, "I keep telling myself this is an important part of the battle -- to stay here and gather data. Ah, well. I appreciate your visits.")
  166. end
  167. function refuse1(NPC, Spawn)
  168. PlayFlavor(NPC, "voiceover/english/ignar_steadirt/antonica/quest/045_dwarf_ignar_steadirt_g1_shame_b6fbc6ba.mp3", "That is a shame. Please leave me to my prayers.", "", 2730895874, 3053314534, Spawn)
  169. end
  170. function refuse2(NPC, Spawn)
  171. PlayFlavor(NPC, "", "Hmm, I'll keep praying then. Good day.", "", 1689589577, 4560189, Spawn)
  172. end
  173. function refuse3(NPC, Spawn)
  174. PlayFlavor(NPC, "", "Return when you are ready, but be quick. They grow stronger by the hour.", "", 1689589577, 4560189, Spawn)
  175. end
  176. function offer(NPC, Spawn)
  177. OfferQuest(NPC, Spawn, LordGrimrotsScythe)
  178. end