KwaStalwart.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. --[[
  2. Script Name : SpawnScripts/Castleview/KwaStalwart.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.29 03:01:43
  5. Script Purpose : Placeholder Parsed Dialog
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1028.mp3", "", "", 0, 0, Spawn)
  22. if GetRace(Spawn)== 4 then
  23. AddConversationOption(conversation, "Hail, kind sir. Need ye a hand to aid thee?")
  24. end
  25. AddConversationOption(conversation, "Good day to you.")
  26. StartConversation(conversation, NPC, Spawn, "Salutations and greetings to ye, noble one.")
  27. end
  28. if convo==3 then
  29. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1028.mp3", "", "", 0, 0, Spawn)
  30. AddConversationOption(conversation, "Nay. I will return with ale in hand!", "dlg_3_1")
  31. StartConversation(conversation, NPC, Spawn, "Have ye the ale to vanquish this thirst?")
  32. end
  33. if convo==6 then
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1028.mp3", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "Thine appreciation is not necessary. Good deeds doth reward themselves. ", "dlg_6_1")
  36. StartConversation(conversation, NPC, Spawn, "Honorable Marr! Ye have brought the libation hither. I must thank thee for thine hasty return.")
  37. end
  38. if convo==7 then
  39. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1028.mp3", "", "", 0, 0, Spawn)
  40. AddConversationOption(conversation, "A bit later, sir. I have given my word to aid another at this time.")
  41. StartConversation(conversation, NPC, Spawn, "Mind ye, another task? I would appreciate if thou wouldst lend your wits and sword to me.")
  42. end
  43. if convo==8 then
  44. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1028.mp3", "", "", 0, 0, Spawn)
  45. AddConversationOption(conversation, "Nay. Where mighten I find the brave Rrak Boldfist?", "dlg_8_1")
  46. StartConversation(conversation, NPC, Spawn, "Have ye sought Rrak Boldfist of the sight his eyes doth catch?")
  47. end
  48. if convo==11 then
  49. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1028.mp3", "", "", 0, 0, Spawn)
  50. AddConversationOption(conversation, "Ogre, he is certain. 'Twas not far trek where he doth spot this brute. I woulds't go and see with mine own eyes this location, if ye allow it.", "dlg_11_1")
  51. StartConversation(conversation, NPC, Spawn, "What word hath thou brought from Rrak of the Ogre?")
  52. end
  53. if convo==12 then
  54. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1028.mp3", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "I shall. For the glory of Marr!", "dlg_12_1")
  56. StartConversation(conversation, NPC, Spawn, "Ye must investigate the locale Down Below upon which the Ogre was spotted.")
  57. end
  58. function dlg_0_1(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  62. AddConversationOption(conversation, "To valor and honor!", "dlg_0_2")
  63. StartConversation(conversation, NPC, Spawn, "Bringing due glory to the name of Marr, I will and do! Our creator hath given unto us the mind and brawn to defeat evil, and aid the helpless. His will be done, every moment, and every breath.")
  64. end
  65. function dlg_0_2(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  69. AddConversationOption(conversation, "Is there trouble afoot?", "dlg_0_3")
  70. StartConversation(conversation, NPC, Spawn, "Valor and honor above all else. I am bound by my word to await a message of great import upon this spot.")
  71. end
  72. function dlg_0_3(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  76. AddConversationOption(conversation, "Thus is he deserving of our glory and praise. I bid you good day, until we meet again.")
  77. StartConversation(conversation, NPC, Spawn, "Pray tell! I know not, but am soon to find out. Marr will guide my sword when needed, as he hath done in the past.")
  78. end
  79. function dlg_0_4(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  83. AddConversationOption(conversation, "Genocide was not to be our fate. ", "dlg_0_5")
  84. StartConversation(conversation, NPC, Spawn, "This Froglok has seen battles, to be sure. Long before this Froglok was tad or egg, we doth had a long standing war against the vile Ogres. Our beloved Gukta was overwhelmed as the first casualty of the expanding Rallosian Empire. Our people were almost completely wiped out by the onslaught. ")
  85. end
  86. function dlg_0_5(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  90. AddConversationOption(conversation, "Cowardice they knew not.", "dlg_0_6")
  91. StartConversation(conversation, NPC, Spawn, "Indeed not. Overwhelmed and unable to defend their city, the survivors were forced to abandon Gukta. Refuge they sought in the lowest portions of the former citadel of Guk. Relentless, the Rallosians continued to pursue the Frogloks. Those that had survived feared dusk was upon them, but would not slacken. ")
  92. end
  93. function dlg_0_6(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  97. AddConversationOption(conversation, "The green mist.", "dlg_0_7")
  98. StartConversation(conversation, NPC, Spawn, "Fought on they did, to protect the tads and maidens amongst them. Prayers to Marr did not go unanswered! Praised he was, by our people's determination and valor. He released upon the Ogres a deadly cloud to deliver us in our moment of most dire need. ")
  99. end
  100. function dlg_0_7(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  104. AddConversationOption(conversation, "Then came the destruction that was the shattering, and the further scattering of our peoples.", "dlg_0_8")
  105. StartConversation(conversation, NPC, Spawn, "Aye. 'Twas rolling through the swamps and cities alike, smiting the Ogres. The rejoicing Frogloks were then able to reclaim Gukta.")
  106. end
  107. function dlg_0_8(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  111. AddConversationOption(conversation, "Until recently?", "dlg_0_9")
  112. StartConversation(conversation, NPC, Spawn, "Come it did, and many evils with it. Villainy is persistent! During the shattering, and up until very recently, the soul of the hateful Rallosian General Urduuk, would not rest. Unknown to anyone, he and his army were in a state of undeath, deep within the Cleft of Thule. There they would stay to enslave and torture any Froglok that ventured in. ")
  113. end
  114. function dlg_0_9(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  118. AddConversationOption(conversation, "Bloody and destructive the wars were, but delivered we were. Bless Marr! ", "dlg_0_10")
  119. StartConversation(conversation, NPC, Spawn, "Aye. For once this blasphemy and injustice was known, wave of mighty wave of adventurers battled valiantly and defeated Urduuk's armies. I was amongst those that battled to release our brethren.")
  120. end
  121. function dlg_0_10(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  125. AddConversationOption(conversation, "A bit later, sir. I am on a quest myself, at this time.")
  126. StartConversation(conversation, NPC, Spawn, "Delivered we were, but not before many wrongs were dealt, and more to be fought there are. Mind ye go fetch a pint for me, and quench my thirst? Grown parched have I with the telling of this tale.")
  127. end
  128. function dlg_1_1(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. conversation = CreateConversation()
  131. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  132. AddConversationOption(conversation, "To valor and honor!", "dlg_1_2")
  133. StartConversation(conversation, NPC, Spawn, "Bringing due glory to the name of Marr, I will and do! Our creator hath given unto us the mind and brawn to defeat evil, and aid the helpless. His will be done, every moment, and every breath.")
  134. end
  135. function dlg_1_2(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. conversation = CreateConversation()
  138. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  139. AddConversationOption(conversation, "Is there trouble afoot?", "dlg_1_3")
  140. StartConversation(conversation, NPC, Spawn, "Valor and honor above all else. I am bound by my word to await a message of great import upon this spot.")
  141. end
  142. function dlg_1_3(NPC, Spawn)
  143. FaceTarget(NPC, Spawn)
  144. conversation = CreateConversation()
  145. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  146. AddConversationOption(conversation, "Thus is he deserving of our glory and praise. I bid you good day, until we meet again.")
  147. StartConversation(conversation, NPC, Spawn, "Pray tell! I know not, but am soon to find out. Marr will guide my sword when needed, as he hath done in the past.")
  148. end
  149. function dlg_2_1(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. conversation = CreateConversation()
  152. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  153. AddConversationOption(conversation, "To valor and honor!", "dlg_2_2")
  154. StartConversation(conversation, NPC, Spawn, "Bringing due glory to the name of Marr, I will and do! Our creator hath given unto us the mind and brawn to defeat evil, and aid the helpless. His will be done, every moment, and every breath.")
  155. end
  156. function dlg_2_2(NPC, Spawn)
  157. FaceTarget(NPC, Spawn)
  158. conversation = CreateConversation()
  159. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  160. AddConversationOption(conversation, "Is there trouble afoot?", "dlg_2_3")
  161. StartConversation(conversation, NPC, Spawn, "Valor and honor above all else. I am bound by my word to await a message of great import upon this spot.")
  162. end
  163. function dlg_2_3(NPC, Spawn)
  164. FaceTarget(NPC, Spawn)
  165. conversation = CreateConversation()
  166. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  167. AddConversationOption(conversation, "Thus is he deserving of our glory and praise. I bid you good day, until we meet again.")
  168. StartConversation(conversation, NPC, Spawn, "Pray tell! I know not, but am soon to find out. Marr will guide my sword when needed, as he hath done in the past.")
  169. end
  170. function dlg_2_4(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  174. AddConversationOption(conversation, "Genocide was not to be our fate. ", "dlg_2_5")
  175. StartConversation(conversation, NPC, Spawn, "This Froglok has seen battles, to be sure. Long before this Froglok was tad or egg, we doth had a long standing war against the vile Ogres. Our beloved Gukta was overwhelmed as the first casualty of the expanding Rallosian Empire. Our people were almost completely wiped out by the onslaught. ")
  176. end
  177. function dlg_2_5(NPC, Spawn)
  178. FaceTarget(NPC, Spawn)
  179. conversation = CreateConversation()
  180. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  181. AddConversationOption(conversation, "Cowardice they knew not.", "dlg_2_6")
  182. StartConversation(conversation, NPC, Spawn, "Indeed not. Overwhelmed and unable to defend their city, the survivors were forced to abandon Gukta. Refuge they sought in the lowest portions of the former citadel of Guk. Relentless, the Rallosians continued to pursue the Frogloks. Those that had survived feared dusk was upon them, but would not slacken. ")
  183. end
  184. function dlg_2_6(NPC, Spawn)
  185. FaceTarget(NPC, Spawn)
  186. conversation = CreateConversation()
  187. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  188. AddConversationOption(conversation, "The green mist.", "dlg_2_7")
  189. StartConversation(conversation, NPC, Spawn, "Fought on they did, to protect the tads and maidens amongst them. Prayers to Marr did not go unanswered! Praised he was, by our people's determination and valor. He released upon the Ogres a deadly cloud to deliver us in our moment of most dire need. ")
  190. end
  191. function dlg_2_7(NPC, Spawn)
  192. FaceTarget(NPC, Spawn)
  193. conversation = CreateConversation()
  194. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  195. AddConversationOption(conversation, "Then came the destruction that was the shattering, and the further scattering of our peoples.", "dlg_2_8")
  196. StartConversation(conversation, NPC, Spawn, "Aye. 'Twas rolling through the swamps and cities alike, smiting the Ogres. The rejoicing Frogloks were then able to reclaim Gukta.")
  197. end
  198. function dlg_2_8(NPC, Spawn)
  199. FaceTarget(NPC, Spawn)
  200. conversation = CreateConversation()
  201. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  202. AddConversationOption(conversation, "Until recently?", "dlg_2_9")
  203. StartConversation(conversation, NPC, Spawn, "Come it did, and many evils with it. Villainy is persistent! During the shattering, and up until very recently, the soul of the hateful Rallosian General Urduuk, would not rest. Unknown to anyone, he and his army were in a state of undeath, deep within the Cleft of Thule. There they would stay to enslave and torture any Froglok that ventured in. ")
  204. end
  205. function dlg_2_9(NPC, Spawn)
  206. FaceTarget(NPC, Spawn)
  207. conversation = CreateConversation()
  208. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  209. AddConversationOption(conversation, "Bloody and destructive the wars were, but delivered we were. Bless Marr! ", "dlg_2_10")
  210. StartConversation(conversation, NPC, Spawn, "Aye. For once this blasphemy and injustice was known, wave of mighty wave of adventurers battled valiantly and defeated Urduuk's armies. I was amongst those that battled to release our brethren.")
  211. end
  212. function dlg_2_10(NPC, Spawn)
  213. FaceTarget(NPC, Spawn)
  214. conversation = CreateConversation()
  215. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  216. AddConversationOption(conversation, "A bit later, sir. I am on a quest myself, at this time.")
  217. StartConversation(conversation, NPC, Spawn, "Delivered we were, but not before many wrongs were dealt, and more to be fought there are. Mind ye go fetch a pint for me, and quench my thirst? Grown parched have I with the telling of this tale.")
  218. end
  219. function dlg_2_11(NPC, Spawn)
  220. FaceTarget(NPC, Spawn)
  221. conversation = CreateConversation()
  222. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  223. AddConversationOption(conversation, "A sweet bog spirit to drink down, will be delivered.")
  224. StartConversation(conversation, NPC, Spawn, "Excellent! Pass the Fountain of Valor. East of here ye will set thine sights upon the Hole in the Wall Tavern, next to the Qeynos Harbor gate. Their bog water spirits would vanquish this thirst nicely.")
  225. end
  226. function dlg_2_12(NPC, Spawn)
  227. FaceTarget(NPC, Spawn)
  228. conversation = CreateConversation()
  229. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  230. AddConversationOption(conversation, "Return, I shall!", "dlg_2_13")
  231. StartConversation(conversation, NPC, Spawn, "Halt, a moment! Do not pay from thine own pockets. Take this coin to exchange for the fine ale.")
  232. end
  233. function dlg_6_1(NPC, Spawn)
  234. FaceTarget(NPC, Spawn)
  235. conversation = CreateConversation()
  236. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  237. AddConversationOption(conversation, "Thank you, brave sir.", "dlg_6_2")
  238. StartConversation(conversation, NPC, Spawn, "Pish! Thou wound me by refusing my gratitude. Take this you must!")
  239. end
  240. function dlg_6_2(NPC, Spawn)
  241. FaceTarget(NPC, Spawn)
  242. conversation = CreateConversation()
  243. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  244. AddConversationOption(conversation, "A bit later, sir. I have given my word to aid another at this time.")
  245. StartConversation(conversation, NPC, Spawn, "Mind ye, another task? I would appreciate if thou wouldst lend your wits and sword to me.")
  246. end
  247. function dlg_6_3(NPC, Spawn)
  248. FaceTarget(NPC, Spawn)
  249. conversation = CreateConversation()
  250. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  251. AddConversationOption(conversation, "What aid may I lend to you, noble sir?", "dlg_6_4")
  252. StartConversation(conversation, NPC, Spawn, "Brought to my diligent ear, it was! The news is grave, and wilt take some careful and immediate attention. ")
  253. end
  254. function dlg_6_4(NPC, Spawn)
  255. FaceTarget(NPC, Spawn)
  256. conversation = CreateConversation()
  257. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  258. AddConversationOption(conversation, "With great haste!")
  259. StartConversation(conversation, NPC, Spawn, "A vile and destructive menace 'twas seen in the Down Below. Description speaks that it was none other then an Ogre. I pray you, inquiry Rrak Boldfist of his sight.")
  260. end
  261. function dlg_7_1(NPC, Spawn)
  262. FaceTarget(NPC, Spawn)
  263. conversation = CreateConversation()
  264. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  265. AddConversationOption(conversation, "What aid may I lend to you, noble sir?", "dlg_7_2")
  266. StartConversation(conversation, NPC, Spawn, "Brought to my diligent ear, it was! The news is grave, and wilt take some careful and immediate attention. ")
  267. end
  268. function dlg_7_2(NPC, Spawn)
  269. FaceTarget(NPC, Spawn)
  270. conversation = CreateConversation()
  271. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  272. AddConversationOption(conversation, "With great haste!")
  273. StartConversation(conversation, NPC, Spawn, "A vile and destructive menace 'twas seen in the Down Below. Description speaks that it was none other then an Ogre. I pray you, inquiry Rrak Boldfist of his sight.")
  274. end
  275. function dlg_7_3(NPC, Spawn)
  276. FaceTarget(NPC, Spawn)
  277. conversation = CreateConversation()
  278. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  279. AddConversationOption(conversation, "Places as that guarentee rest will not find the followers of Marr!")
  280. StartConversation(conversation, NPC, Spawn, "The Down Below is a restless locale. Below us ye find a labyrinth of crypts where unsavory merchants, outcasts and vermin of all shape and size have taken up residence. Tread with care whenever ye enter it!")
  281. end
  282. function dlg_7_4(NPC, Spawn)
  283. FaceTarget(NPC, Spawn)
  284. conversation = CreateConversation()
  285. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  286. AddConversationOption(conversation, "Where mighten I find the brave Rrak Boldfist?", "dlg_7_5")
  287. StartConversation(conversation, NPC, Spawn, "Relentless, we battle such evils. Seek Rrak Boldfist of the sight his eyes doth catch.")
  288. end
  289. function dlg_7_5(NPC, Spawn)
  290. FaceTarget(NPC, Spawn)
  291. conversation = CreateConversation()
  292. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/kwa_stalwart/qey_village04/newbie_path_froglok/kwastalwort044.mp3", "", "", 2180815554, 4004100692, Spawn)
  293. AddConversationOption(conversation, "Thank you, mighty sir! With great haste, I take my leave.", "dlg_7_6")
  294. StartConversation(conversation, NPC, Spawn, "Rrak 'twas to return to The Repository. He gives his aid to the scribe, inside. It is set in the far North East corner of this fine town.")
  295. end
  296. function dlg_8_1(NPC, Spawn)
  297. FaceTarget(NPC, Spawn)
  298. conversation = CreateConversation()
  299. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  300. AddConversationOption(conversation, "Thank you, mighty sir!", "dlg_8_2")
  301. StartConversation(conversation, NPC, Spawn, "Rrak 'twas to return to The Repository. It is set in the far North East corner of this fine town.")
  302. end
  303. function dlg_11_1(NPC, Spawn)
  304. FaceTarget(NPC, Spawn)
  305. conversation = CreateConversation()
  306. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  307. AddConversationOption(conversation, "I shall. For the glory of Marr!", "dlg_11_2")
  308. StartConversation(conversation, NPC, Spawn, "Bless it, whole heartedly! Go and regale me with thy findings soon. ")
  309. end