DeputyKegie.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/DeputyKegie.lua
  3. Script Purpose : Deputy Kegie
  4. Script Author : Cynnar
  5. Script Date : 2015.02.24
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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. local choice = math.random(1,1)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "", "Don't come closer or I'll sic my hound on you!", "", 1689589577, 4560189, Spawn)
  24. else
  25. end
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "This isn't worth it.", "dlg_0_1")
  28. StartConversation(conversation, NPC, Spawn, "I'm warning you! Identify yourself or pay the ultimate price!")
  29. if convo==1 then
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  31. AddConversationOption(conversation, "No. It was a halfling. I stopped him in his tracks.", "dlg_1_1")
  32. AddConversationOption(conversation, "I don't know. No. Probably not.")
  33. StartConversation(conversation, NPC, Spawn, "Who's taking it? Have you found the culprit? It's those Mistcallers, isn't it?")
  34. end
  35. if convo==2 then
  36. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  37. AddConversationOption(conversation, "Deputy, about your...", "dlg_2_1")
  38. AddConversationOption(conversation, "This isn't worth it.")
  39. StartConversation(conversation, NPC, Spawn, "I'm warning you! Identify yourself or pay the ultimate price!")
  40. end
  41. if convo==3 then
  42. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  43. AddConversationOption(conversation, "You really need a companion.", "dlg_3_1")
  44. AddConversationOption(conversation, "This isn't worth it.")
  45. StartConversation(conversation, NPC, Spawn, "I'm warning you! Identify yourself or pay the ultimate price!")
  46. end
  47. if convo==4 then
  48. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "Calm down, Deputy! Nettlebrine sent me. With badgers.", "dlg_4_1")
  50. AddConversationOption(conversation, "This isn't worth it.")
  51. StartConversation(conversation, NPC, Spawn, "I'm warning you! Identify yourself or pay the ultimate price!")
  52. end
  53. if convo==5 then
  54. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "Are you sure 'they' are the problem?", "dlg_5_1")
  56. AddConversationOption(conversation, "Not yet.")
  57. StartConversation(conversation, NPC, Spawn, "Have you gotten rid of them? Have you?")
  58. end
  59. if convo==6 then
  60. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "It's me again, Deputy.", "dlg_6_1")
  62. AddConversationOption(conversation, "This isn't worth it.")
  63. StartConversation(conversation, NPC, Spawn, "I'm warning you! Identify yourself or pay the ultimate price!")
  64. end
  65. if convo==7 then
  66. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  67. AddConversationOption(conversation, "This isn't worth it.", "dlg_7_1")
  68. StartConversation(conversation, NPC, Spawn, "I'm warning you! Identify yourself or pay the ultimate price!")
  69. end
  70. if convo==12 then
  71. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  72. AddConversationOption(conversation, "This isn't worth it.", "dlg_12_1")
  73. StartConversation(conversation, NPC, Spawn, "I'm warning you! Identify yourself or pay the ultimate price!")
  74. end
  75. end
  76. function dlg_1_1(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  80. AddConversationOption(conversation, "Er, no.", "dlg_1_2")
  81. StartConversation(conversation, NPC, Spawn, "That's great news! Well, not great, but at least good! Was he stealing the halflings, too?")
  82. end
  83. function dlg_1_2(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  87. AddConversationOption(conversation, "I'll let you know if I see anything suspicious.", "dlg_1_3")
  88. StartConversation(conversation, NPC, Spawn, "I was hoping we could solve all the disappearances at once.")
  89. end
  90. function dlg_2_1(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  94. AddConversationOption(conversation, "Where?", "dlg_2_2")
  95. AddConversationOption(conversation, "Oh, good grief.")
  96. StartConversation(conversation, NPC, Spawn, "Duck!")
  97. end
  98. function dlg_2_2(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  102. AddConversationOption(conversation, "Not a problem.", "dlg_2_3")
  103. StartConversation(conversation, NPC, Spawn, "Look out! They're coming in from the sky...kill them! They're coming to carry us all away! Stop them!")
  104. end
  105. function dlg_3_1(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  109. AddConversationOption(conversation, "Isn't it your job to find lost animals?", "dlg_3_2")
  110. AddConversationOption(conversation, "No.")
  111. StartConversation(conversation, NPC, Spawn, "Oh! Have you found my little lost hound?")
  112. end
  113. function dlg_3_2(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  117. AddConversationOption(conversation, "Where did you last see him?", "dlg_3_3")
  118. StartConversation(conversation, NPC, Spawn, "First the deputies, then the jum jum and now my hound! I'm next! I'm doomed! Doomed!")
  119. end
  120. function dlg_3_3(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. PlayFlavor(NPC, "deputy_kegie/enchanted/solo_kegie/quest_kegie018.mp3", "", "", 2432998480, 1014829086, Spawn)
  124. AddConversationOption(conversation, "I'll take a look.", "dlg_3_4")
  125. StartConversation(conversation, NPC, Spawn, "A couple of nights ago. I saw Mutton -- that's his name, Mutton -- chasing some badgers along the path. It was definitely after Deputy Mirebrook disappeared. I heard Mutton howling...but I was to afraid to see what was wrong. Perhaps he went back to his trainer, Deputy Huckfar?")
  126. end
  127. function dlg_4_1(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. conversation = CreateConversation()
  130. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  131. AddConversationOption(conversation, "I am?", "dlg_4_2")
  132. AddConversationOption(conversation, "Maybe later. I'll be back.")
  133. StartConversation(conversation, NPC, Spawn, "Have they found out what happened to Deputy Mirebrook? Wait. Did you say badgers? You're here to help me!")
  134. end
  135. function dlg_4_2(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. conversation = CreateConversation()
  138. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  139. AddConversationOption(conversation, "What have I gotten into this time?", "dlg_4_3")
  140. StartConversation(conversation, NPC, Spawn, "Thank you! You've no idea...I've been trying to keep my eye peeled, in case Deputy Mirebrook returns. They came in the middle of the night and I haven't seen him since! You must kill them!")
  141. end
  142. function dlg_4_3(NPC, Spawn)
  143. FaceTarget(NPC, Spawn)
  144. conversation = CreateConversation()
  145. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  146. AddConversationOption(conversation, "Whoa! All right! I'll take care of them.", "dlg_4_4")
  147. StartConversation(conversation, NPC, Spawn, "They're in the water, poisoning it! I told Mirebrook to stay away from them, but he wouldn't listen! Don't let them take me!")
  148. end
  149. function dlg_5_1(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. conversation = CreateConversation()
  152. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  153. AddConversationOption(conversation, "Never mind.", "dlg_5_2")
  154. StartConversation(conversation, NPC, Spawn, "You mean...there might be others out there?! Oh, no! Quick! Quick! Bar the doors! Lock the windows! Help!")
  155. end
  156. function dlg_6_1(NPC, Spawn)
  157. FaceTarget(NPC, Spawn)
  158. conversation = CreateConversation()
  159. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  160. AddConversationOption(conversation, "Why are you so jumpy?", "dlg_6_2")
  161. AddConversationOption(conversation, "Look out behind you! Just kidding.")
  162. StartConversation(conversation, NPC, Spawn, "What is it? What are you reporting this time?")
  163. end
  164. function dlg_6_2(NPC, Spawn)
  165. FaceTarget(NPC, Spawn)
  166. conversation = CreateConversation()
  167. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  168. AddConversationOption(conversation, "The jum jum?", "dlg_6_3")
  169. StartConversation(conversation, NPC, Spawn, "You'd be jumpy, too, if your partner disappeared one day! Poof! Gone! Those Mistcallers may not have got him, but something did! Just like something got the jum jum.")
  170. end
  171. function dlg_6_3(NPC, Spawn)
  172. FaceTarget(NPC, Spawn)
  173. conversation = CreateConversation()
  174. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  175. AddConversationOption(conversation, "Get a grip on yourself! I'll see what I can find out.", "dlg_6_4")
  176. StartConversation(conversation, NPC, Spawn, "Do you know who took it? The barrels, they're empty! All over the world, barrels going empty! First they're stealing the halflings...and now the jum jum! It's the end of the world! The end!")
  177. end
  178. --[[ raw_conversations
  179. PlayFlavor(NPC, "", "Don't come closer or I'll sic my hound on you!", "", 1689589577, 4560189, Spawn)
  180. --]]