9
3

LieutenantDarrius.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. --[[
  2. Script Name : SpawnScripts/WestFreeport/LieutenantDarrius.lua
  3. Script Purpose : Lieutenant Darrius
  4. Script Author : Premierio015
  5. Script Date : 2022.04.26
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local InSearchofSpiritkeepers = 5513
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, InSearchofSpiritkeepers)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if HasQuest(Spawn,5865) and not QuestStepIsComplete(Spawn,5865,7)then --FREEPORT OPPORTUNITY
  18. SetStepComplete(Spawn,5865,7)
  19. end
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("The militia has a task for you, citizen. Will you accept the call to duty?")
  23. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/lieutenant_darrius.mp3", 913608800, 3646524676)
  24. if not HasQuest(Spawn, InSearchofSpiritkeepers) and not HasCompletedQuest(Spawn, InSearchofSpiritkeepers) then
  25. Dialog.AddOption("Perhaps. What is the duty?", "Dialog25")
  26. elseif GetQuestStep(Spawn, InSearchofSpiritkeepers) == 2 then
  27. Dialog.AddOption("I have gathered the five scalps from the Wailing Caves.", "Dialog1")
  28. end
  29. Dialog.AddOption("I have found my purpose, Lieutenant. ")
  30. Dialog.Start()
  31. end
  32. function Dialog1(NPC, Spawn)
  33. SetStepComplete(Spawn, InSearchofSpiritkeepers, 2)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("The Overlord wishes to assure that his citizens are well-kept so that they shall be ripe for volunteer duty in the future. Accept this as a show of recognition of your loyal service. Now be on your way. You are, for now, relieved of duty.")
  37. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_return.mp3", 2914740402, 3834860982)
  38. Dialog.AddOption("Thank you sir. For Freeport and Realm!")
  39. Dialog.AddOption("I give the Overlord my thanks for this opportunity to spill the blood of our enemies!")
  40. Dialog.Start()
  41. end
  42. function Dialog2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("The Overlord will not divert resources on suspicion alone. We believe that citizens such as you are capable of accomplishing this task or perishing in the attempt. Either way, the goals of Freeport will be served.")
  46. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_initial5.mp3", 336191891, 2227279881)
  47. Dialog.AddOption("What proof do you require?", "Dialog22")
  48. Dialog.AddOption("How are the goals of Freeport served if its citizens die?", "Dialog13")
  49. Dialog.AddOption("If the Overlord will not commit to this I sure won't either. ")
  50. Dialog.Start()
  51. end
  52. function Dialog3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. Dialog.AddDialog("The militia has a task for you, citizen. Will you accept the call to duty?")
  56. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/lieutenant_darrius.mp3", 913608800, 3646524676)
  57. Dialog.AddOption("That all depends on what the militia needs of me.", "Dialog15")
  58. Dialog.AddOption("Perhaps. What is the duty?", "Dialog25")
  59. Dialog.AddOption("I have found my purpose, Lieutenant. ")
  60. Dialog.Start()
  61. end
  62. function Dialog5(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("Eh! A useless rusty dagger!? Not only is it rusted but it bears many scratches; it looks as if a giant rat clawed at it. Although I consider this evidence of no importance, I do owe you a reward for ridding us of that accursed orc.")
  66. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_return.mp3", 49529721, 694790311)
  67. Dialog.AddOption("Thank you. Good bye.")
  68. Dialog.AddOption("I live to serve Freeport.")
  69. Dialog.Start()
  70. end
  71. function Dialog6(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. Dialog.New(NPC, Spawn)
  74. Dialog.AddDialog("You dare ask for compensation to serve this city! As if we owe you?! Protecting this city and furthering the Overlord's advantage against our enemies is reward enough.")
  75. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_initial4.mp3", 4223754842, 4238638)
  76. Dialog.AddOption("I did not mean to insult the militia or the Overlord...", "Dialog18")
  77. Dialog.AddOption("Reward enough for you, perhaps, but not for me. Good bye.")
  78. Dialog.Start()
  79. end
  80. function Dialog8(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. Dialog.AddDialog("Volunteer duty does not come with the promise of wealth or praise! You should consider it an honor to serve the Overlord. Expecting compensation is as disgusting as it is insulting. Either you will volunteer for the post, or you will face the consequences of insubordination!")
  84. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_initial8.mp3", 2525459114, 258548704)
  85. Dialog.AddOption("Well, what choice do I have then?", "offer")
  86. Dialog.AddOption("Please forgive my foolish words sir. I am not strong enough to aid Freeport in this deed.")
  87. Dialog.Start()
  88. end
  89. function Dialog9(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. Dialog.AddDialog("The militia has a task for you, citizen. Will you accept the call to duty?")
  93. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/lieutenant_darrius.mp3", 913608800, 3646524676)
  94. Dialog.AddOption("That all depends on what the militia needs of me.", "Dialog15")
  95. Dialog.AddOption("I have found my purpose, Lieutenant. ")
  96. Dialog.Start()
  97. end
  98. function Dialog10(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. Dialog.New(NPC, Spawn)
  101. Dialog.AddDialog("This orcish officer has successfully eluded all attempts to destroy him in the past. He knows the militia's tactics far too well, making his existence all the more threatening to our city.")
  102. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_initial2.mp3", 672951317, 275331586)
  103. Dialog.AddOption("If the militia can't handle him, what makes you think I can?", "Dialog24")
  104. Dialog.AddOption("I can't help you.")
  105. Dialog.Start()
  106. end
  107. function Dialog11(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. Dialog.New(NPC, Spawn)
  110. Dialog.AddDialog("Our intelligence spotted Ohrgran's scouts coming and going from the south. We know an encampment of orc soldiers has set up camp in this area. It's only fitting that Ohrgran would return to man his post there.")
  111. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_initial5.mp3", 968282769, 1875532246)
  112. Dialog.AddOption("Sounds simple enough. What do I do when I've completed the task?", "Dialog23")
  113. Dialog.AddOption("How will the militia repay my services?", "Dialog6")
  114. Dialog.Start()
  115. end
  116. function Dialog12(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. Dialog.New(NPC, Spawn)
  119. Dialog.AddDialog("We believe the outpost is inside the Wailing Hill. The superstitious ramblings of the past generations have inspired fear of the region. This fear makes the caverns a secluded, tactical location.")
  120. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_initial4.mp3", 160419880, 1935367161)
  121. Dialog.AddOption("Why can't the militia gather the intelligence on their own?", "Dialog2")
  122. Dialog.AddOption("What proof do you require?", "Dialog22")
  123. Dialog.AddOption("I believe those superstitious ramblings. I am to scared to hear any more.")
  124. Dialog.Start()
  125. end
  126. function Dialog13(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. Dialog.New(NPC, Spawn)
  129. Dialog.AddDialog("Those volunteers who fail in the task are obviously too weak to be among the Overlord's subjects. Weeding out the weak from those worthy to survive is within our objective for success and prosperity. Common sense would dictate no other conclusion.")
  130. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutennatdarrius_x2_initial7.mp3", 1801715795, 2070313269)
  131. Dialog.AddOption("I will prove my strength. Tell me, where is this supposed outpost located?", "Dialog12")
  132. Dialog.AddOption("What proof do you need from these volunteers?", "Dialog22")
  133. Dialog.AddOption("I cannot serve Freeport at this time.")
  134. Dialog.Start()
  135. end
  136. function Dialog14(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. Dialog.New(NPC, Spawn)
  139. Dialog.AddDialog("The militia needs citizens to gather intelligence on a possible orc outpost in the savannah.")
  140. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_initial2.mp3", 1000165102, 2458404038)
  141. Dialog.AddOption("What sort of intelligence are you looking for?", "Dialog19")
  142. Dialog.AddOption("Where is this supposed outpost located?", "Dialog12")
  143. Dialog.AddOption("I am not strong enough to face an orc horde.")
  144. Dialog.Start()
  145. end
  146. function Dialog15(NPC, Spawn)
  147. FaceTarget(NPC, Spawn)
  148. Dialog.New(NPC, Spawn)
  149. Dialog.AddDialog("Our intelligence recently located a known enemy of the city, a Bloodskull officer named Ohrgran Foulgore. This beast is said to have ties to Freeport. ")
  150. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_initial.mp3", 1917194156, 3170978291)
  151. Dialog.AddOption("Why doesn't the militia just capture him?", "Dialog10")
  152. Dialog.AddOption("I am not interested. ")
  153. Dialog.Start()
  154. end
  155. function Dialog17(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. Dialog.New(NPC, Spawn)
  158. Dialog.AddDialog("The militia has a task for you, citizen. Will you accept the call to duty?")
  159. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/lieutenant_darrius.mp3", 913608800, 3646524676)
  160. Dialog.AddOption("Ohrgran is dead and here is your proof.", "Dialog5")
  161. Dialog.AddOption("I have found my purpose, Lieutenant. ")
  162. Dialog.Start()
  163. end
  164. function Dialog18(NPC, Spawn)
  165. FaceTarget(NPC, Spawn)
  166. Dialog.New(NPC, Spawn)
  167. Dialog.AddDialog("Your greed and assumptions are insult enough. Fortunately for you, it is not my duty to punish insults. Now, either you volunteer for the job or begone from my sight.")
  168. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_initial7.mp3", 1677237864, 1224240976)
  169. Dialog.AddOption("Well, I still don't know all the dangers. Where is Ohrgran now?", "Dialog11")
  170. Dialog.AddOption("I'd rather not get involved in military affairs. Good bye.")
  171. Dialog.Start()
  172. end
  173. function Dialog19(NPC, Spawn)
  174. FaceTarget(NPC, Spawn)
  175. Dialog.New(NPC, Spawn)
  176. Dialog.AddDialog("The Overlord requires concrete evidence of an established enemy stronghold in the hills before he orders an invasion. The intelligence you gather will prove or discredit the belief of an organized orc presence in that area.")
  177. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_initial3.mp3", 1630901125, 3610070085)
  178. Dialog.AddOption("Where is this supposed outpost located?", "Dialog12")
  179. Dialog.AddOption("Why can't the militia gather the intelligence?", "Dialog2")
  180. Dialog.AddOption("What proof do you require?", "Dialog22")
  181. Dialog.AddOption("I am afraid I cannot do this for Freeport.")
  182. Dialog.Start()
  183. end
  184. function Dialog20(NPC, Spawn)
  185. FaceTarget(NPC, Spawn)
  186. Dialog.New(NPC, Spawn)
  187. Dialog.AddDialog("Then you accept the task until Ohrgran's death or yours. We expect your return as quickly as possible. The militia does not tolerate unnecessary delays.")
  188. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_accept.mp3", 2988261816, 2878118233)
  189. Dialog.AddOption("Orc blood will be spilled by my blade before the day is done. ")
  190. Dialog.AddOption("Ohrgran's head will be yours in a matter of moments, of that you can be sure.")
  191. Dialog.Start()
  192. end
  193. function Dialog22(NPC, Spawn)
  194. FaceTarget(NPC, Spawn)
  195. Dialog.New(NPC, Spawn)
  196. Dialog.AddDialog("It is suspected that arcane casters play a key role in this outpost. Rumor is they are spiritkeepers. The militia expects no less than five scalps from any orcish spiritkeeper in that region to be presented from each volunteer before their duty is fulfilled.")
  197. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_initial6.mp3", 2779768077, 1213781919)
  198. Dialog.AddOption("What's in it for me if I do volunteer?", "Dialog8")
  199. Dialog.AddOption("This task sounds simple enough. I will bring you the scalps the Overlord requires.", "offer")
  200. Dialog.AddOption("I don't think I'm qualified for this mission, but I'll be sure to return when I'm better able to serve the Overlord.")
  201. Dialog.AddOption("Killing orcs doesn't sound all that exciting at the moment. Good bye.")
  202. Dialog.Start()
  203. end
  204. function Dialog23(NPC, Spawn)
  205. FaceTarget(NPC, Spawn)
  206. Dialog.New(NPC, Spawn)
  207. Dialog.AddDialog("Nothing short of Ohrgran's head will prove the task's end. What say you, citizen? Are you a child fearful of death, or are you prepared to serve the city of Freeport?")
  208. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_initial6.mp3", 4028320081, 1334011396)
  209. Dialog.AddOption("I am prepared to accept this task.", "Dialog20")
  210. Dialog.AddOption("For Freeport and the Overlord, I accept this task.")
  211. Dialog.AddOption("Any excuse to spill orcish blood is a good excuse!", "Dialog20")
  212. Dialog.AddOption("I don't think I'm suited for this task. Good bye.")
  213. Dialog.Start()
  214. end
  215. function Dialog24(NPC, Spawn)
  216. FaceTarget(NPC, Spawn)
  217. Dialog.New(NPC, Spawn)
  218. Dialog.AddDialog("Ohrgran expects a military attack and would take flight before our soldiers invaded. What he does not expect is a civilian strike. Your tactics are unknown to him and your appearance would not alarm his scouts.")
  219. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x1_initial3.mp3", 318298659, 4239777889)
  220. Dialog.AddOption("How will the militia repay my services?", "Dialog6")
  221. Dialog.AddOption("Where is Ohrgran now?", "Dialog11")
  222. Dialog.AddOption("Find another citizen capable of performing such a deed.")
  223. Dialog.Start()
  224. end
  225. function Dialog25(NPC, Spawn)
  226. FaceTarget(NPC, Spawn)
  227. Dialog.New(NPC, Spawn)
  228. Dialog.AddDialog("The militia is looking for volunteers. Do you think yourself strong enough to meet our expectations?")
  229. Dialog.AddVoiceover("voiceover/english/lieutenant_darrius/fprt_west/quests/lieutenantdarrius/lieutenantdarrius_x2_initial.mp3", 1189892841, 4231062400)
  230. Dialog.AddOption("What do you need the volunteers for?", "Dialog14")
  231. Dialog.AddOption("I cannot volunteer at this time.")
  232. Dialog.Start()
  233. end
  234. function offer(NPC, Spawn)
  235. OfferQuest(NPC, Spawn, InSearchofSpiritkeepers)
  236. end