LieutenantCervaen.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/LieutenantCervaen.lua
  3. Script Purpose : Lieutenant Cervaen
  4. Script Author : John Adams (updated by Cynnar 2018.06.13 02:06:19)
  5. Script Date : 2009.04.05
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local HALFELF_MENTOR_QUEST_1 = 307 -- A Delivery
  9. local HALFELF_MENTOR_QUEST_2 = 308 -- Dirty Work
  10. local HALFELF_MENTOR_QUEST_3 = 315 -- Reel Him In
  11. local HALFELF_MENTOR_QUEST_4 = 317 -- Thaen Sevellos
  12. local LIEUTENANT_CERVAEN = 1370037
  13. local DELCAIRN_SEBASTIAN = 1370038
  14. function spawn(NPC)
  15. ProvidesQuest(NPC, HALFELF_MENTOR_QUEST_3)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. if HasCompletedQuest(Spawn, HALFELF_MENTOR_QUEST_1) then
  24. if HasCompletedQuest(Spawn, HALFELF_MENTOR_QUEST_2) then
  25. if HasCompletedQuest(Spawn, HALFELF_MENTOR_QUEST_3) then
  26. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/qst_cervaen_quest3complete_2605c4d2.mp3", "Nicely done, I heard it from 'ere. This should put Beggar's Court in a much better state.", "", 2938982399, 3355150485, Spawn)
  27. elseif HasQuest(Spawn, HALFELF_MENTOR_QUEST_3) then
  28. OnQuest3(NPC, Spawn, conversation)
  29. else
  30. OurPlan(NPC, Spawn, conversation)
  31. end
  32. elseif HasQuest(Spawn, HALFELF_MENTOR_QUEST_2) then
  33. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/qst_cervaen_quest1done_b206a1e8.mp3", "Speak with Delcairn for now, please.", "", 3252334581, 753438143, Spawn)
  34. else
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/qst_cervaen_quest1done_b206a1e8.mp3", "Speak with Delcairn for now, please.", "", 3252334581, 753438143, Spawn)
  36. end
  37. elseif HasQuest(Spawn, HALFELF_MENTOR_QUEST_1) then
  38. OnQuest1(NPC, Spawn, conversation)
  39. else
  40. Say(NPC, "Yeah? Whadya need?", Spawn)
  41. end
  42. end
  43. --------------------------------------------------------------------------------------------------------------
  44. -- HALFELF_MENTOR_QUEST_1
  45. --------------------------------------------------------------------------------------------------------------
  46. function OnQuest1(NPC, Spawn, conversation)
  47. if GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_1) == 1 then
  48. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen001.mp3", "", "", 95573357, 894655204, Spawn)
  49. AddConversationOption(conversation, "The Brotherhood Awaits. [hand him the note]", "dlg_7_1")
  50. StartConversation(conversation, NPC, Spawn, "Yes, what do you need?")
  51. elseif GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_1) == 2 then
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/qst_cervaen_quest1done_b206a1e8.mp3", "Speak with Delcairn for now, please.", "", 3252334581, 753438143, Spawn)
  53. end
  54. end
  55. function dlg_7_1(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen002.mp3", "", "", 2727322832, 3944021751, Spawn)
  59. AddConversationOption(conversation, "Yes.", "dlg_7_2")
  60. StartConversation(conversation, NPC, Spawn, "That we do. Are you interested in helping?")
  61. end
  62. function dlg_7_2(NPC, Spawn)
  63. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_1, 1)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen003.mp3", "", "", 1755611144, 3257122999, Spawn)
  67. AddConversationOption(conversation, "I will, thank you.")
  68. StartConversation(conversation, NPC, Spawn, "Good. Speak with Delcairn. He'll tell you what you must know.")
  69. end
  70. --------------------------------------------------------------------------------------------------------------
  71. -- HALFELF_MENTOR_QUEST_2
  72. --------------------------------------------------------------------------------------------------------------
  73. function SebastianTalk1(NPC, Spawn)
  74. local Sebastian = GetSpawn(Spawn, DELCAIRN_SEBASTIAN)
  75. FaceTarget(Sebastian, NPC)
  76. conversation = CreateConversation()
  77. PlayFlavor(Sebastian, "voiceover/english/tutorial_revamp/delcairn_sebastian/fprt_hood04/quests/delcairn/delcairn_tradeoff000.mp3", "", "", 3389160540, 2015613299, Spawn)
  78. AddConversationOption(conversation, "[listen to conversation]", "CervaenTalk2")
  79. StartConversation(conversation, Sebastian, Spawn, "What? What happened?")
  80. end
  81. function SebastianTalk2(NPC, Spawn)
  82. local Sebastian = GetSpawn(Spawn, DELCAIRN_SEBASTIAN)
  83. FaceTarget(Sebastian, NPC)
  84. conversation = CreateConversation()
  85. PlayFlavor(Sebastian, "voiceover/english/tutorial_revamp/delcairn_sebastian/fprt_hood04/quests/delcairn/delcairn_tradeoff001.mp3", "", "", 1732950477, 2016689454, Spawn)
  86. AddConversationOption(conversation, "[listen to conversation]", "CervaenTalk3")
  87. StartConversation(conversation, Sebastian, Spawn, "What?! Revlos' wife is in the ground because of Rommuls, why would he side with him?")
  88. end
  89. function SebastianTalk3(NPC, Spawn)
  90. local Sebastian = GetSpawn(Spawn, DELCAIRN_SEBASTIAN)
  91. FaceTarget(Sebastian, NPC)
  92. conversation = CreateConversation()
  93. PlayFlavor(Sebastian, "voiceover/english/tutorial_revamp/delcairn_sebastian/fprt_hood04/quests/delcairn/delcairn_tradeoff002.mp3", "", "", 2504673641, 4239966724, Spawn)
  94. AddConversationOption(conversation, "[listen to conversation]", "CervaenTalk4")
  95. StartConversation(conversation, Sebastian, Spawn, "To Drundar with Revlos. And Jalya... her loss hurts us. Did Thavian know where they're holding Thaen?")
  96. end
  97. function SebastianTalk4(NPC, Spawn)
  98. local Sebastian = GetSpawn(Spawn, DELCAIRN_SEBASTIAN)
  99. FaceTarget(Sebastian, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(Sebastian, "voiceover/english/tutorial_revamp/delcairn_sebastian/fprt_hood04/quests/delcairn/delcairn004.mp3", "", "", 892666129, 4114076052, Spawn)
  102. AddConversationOption(conversation, "Yes, to the end.", "GoodLoam")
  103. AddConversationOption(conversation, "No, I am sorry.")
  104. StartConversation(conversation, Sebastian, Spawn, "Thank you, Cervaen. You, " .. GetName(Spawn) .. ", we're undermanned, the time to decide is now. Will you help us--to the end?")
  105. end
  106. --------------------------------------------------------------------------------------------------------------------------------------
  107. -- HALFELF_MENTOR_QUEST_3
  108. --------------------------------------------------------------------------------------------------------------------------------------
  109. function OurPlan(NPC, Spawn, conversation)
  110. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen004.mp3", "", "", 890059642, 2034176036, Spawn)
  111. AddConversationOption(conversation, "Where do I fit in?", "dlg_23_1")
  112. StartConversation(conversation, NPC, Spawn, "All right. Our plan revolves around a shipment that's been sitting in Beggar's Court--untouched--for some time now. Rommuls has had his eyes on this shipment ever since it arrived. Obviously it's something important to him, right? Well we looked into it, it's contraband reclaimed from members of the militia in all of Freeport's districts. Rommuls believes some of his men know this, and he's trying to catch any of them in a trap.")
  113. end
  114. function dlg_23_1(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen005.mp3", "", "", 1443615249, 408645931, Spawn)
  118. AddConversationOption(conversation, "All right.", "OfferQuest3")
  119. StartConversation(conversation, NPC, Spawn, "Everywhere. We have some supplies stashed around Beggar's court specifically for times like now. They're in barrels marked by The Brotherhood. Go collect some component packs for me, then return here.")
  120. end
  121. function OfferQuest3(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. OfferQuest(NPC, Spawn, HALFELF_MENTOR_QUEST_3)
  124. end
  125. function OnQuest3(NPC, Spawn, conversation)
  126. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen006.mp3", "", "", 1369664151, 2007400535, Spawn)
  127. if GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_3) == 1 then
  128. AddConversationOption(conversation, "Not yet.")
  129. StartConversation(conversation, NPC, Spawn, "Have you collected the supplies?")
  130. elseif GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_3) == 2 then
  131. AddConversationOption(conversation, "Yes.", "dlg_24_1")
  132. StartConversation(conversation, NPC, Spawn, "Have you collected the supplies?")
  133. elseif GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_3) == 3 then
  134. Say(NPC, "Get to it! This is important.", Spawn)
  135. elseif GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_3) == 4 then
  136. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/qst_cervaen_quest3complete_2605c4d2.mp3", "Nicely done, I heard it from 'ere. This should put Beggar's Court in a much better state.", "", 2938982399, 3355150485, Spawn)
  137. end
  138. end
  139. function dlg_24_1(NPC, Spawn)
  140. FaceTarget(NPC, Spawn)
  141. conversation = CreateConversation()
  142. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen007.mp3", "", "", 1901158863, 3341418842, Spawn)
  143. AddConversationOption(conversation, "Where is the shipment?", "dlg_24_2")
  144. AddConversationOption(conversation, "A bomb? That sounds too dangerous.", "NobodyWillGetHurt")
  145. StartConversation(conversation, NPC, Spawn, "Good. Now I can use these to put together something that will grab Rommuls' attention. You will be its vehicle, " .. GetName(Spawn) .. ". Take this, it's an explosive device, plant it on the shipment that Rommuls has been watching. It doesn't matter if he sees you do it or not, it will get his attention either way. Get clear of the blast. When Rommuls comes running our people will be in place to escort him quickly out of the public eye.")
  146. end
  147. function NobodyWillGetHurt(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. AddConversationOption(conversation, "I can.", "dlg_24_2")
  151. StartConversation(conversation, NPC, Spawn, "Nobody will get hurt, trust me. It's a very low-power explosive. This must be done. Can you do this or not?")
  152. end
  153. function dlg_24_2(NPC, Spawn)
  154. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_3, 2)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lieutenant_cervaen/fprt_hood04/quests/cervaen/cervaen009.mp3", "", "", 591461731, 3072537228, Spawn)
  158. AddConversationOption(conversation, "I will.")
  159. StartConversation(conversation, NPC, Spawn, "The shipment is in the east end of the northern part of Beggar's Court. It's just a few barrels sitting out all alone, they shouldn't be hard to find. I've given the arcane fuse on the bomb a five second timer. Return to Delcairn when you're done")
  160. end