DeputyHopple.lua 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/DeputyHopple.lua
  3. Script Purpose : Deputy Hopple
  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. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_0_1")
  23. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  24. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  25. if convo==1 then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_1_1")
  28. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  29. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  30. end
  31. if convo==2 then
  32. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  33. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_2_1")
  34. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  35. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  36. end
  37. if convo==3 then
  38. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_3_1")
  40. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  41. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  42. end
  43. if convo==4 then
  44. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  45. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_4_1")
  46. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  47. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  48. end
  49. if convo==6 then
  50. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1024.mp3", "", "", 0, 0, Spawn)
  51. AddConversationOption(conversation, "It's always a good day to kill a goblin.", "dlg_6_1")
  52. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  53. end
  54. if convo==9 then
  55. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  56. AddConversationOption(conversation, "Er, I suppose so. Deputy Nettlebrine sent me to talk to you about museum fundraisers.", "dlg_9_1")
  57. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  58. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  59. end
  60. if convo==10 then
  61. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  62. AddConversationOption(conversation, "Er, I suppose so. Deputy Nettlebrine sent me to talk to you about museum fundraisers.", "dlg_10_1")
  63. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  64. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  65. end
  66. if convo==13 then
  67. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0, Spawn)
  68. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_13_1")
  69. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  70. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  71. end
  72. if convo==14 then
  73. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1006.mp3", "", "", 0, 0, Spawn)
  74. AddConversationOption(conversation, "You've never seen this quality before!", "dlg_14_1")
  75. AddConversationOption(conversation, "I'm still working at it.")
  76. StartConversation(conversation, NPC, Spawn, "How's your contest entry coming along?")
  77. end
  78. if convo==15 then
  79. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  80. AddConversationOption(conversation, "I'm still working at it.", "dlg_15_1")
  81. StartConversation(conversation, NPC, Spawn, "How's your contest entry coming along?")
  82. end
  83. if convo==16 then
  84. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  85. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_16_1")
  86. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  87. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  88. end
  89. end
  90. function dlg_0_1(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  94. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_0_2")
  95. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  96. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  97. AddConversationOption(conversation, "On second thought, never mind.")
  98. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  99. end
  100. function dlg_1_1(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  104. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_1_2")
  105. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  106. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  107. AddConversationOption(conversation, "On second thought, never mind.")
  108. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  109. end
  110. function dlg_3_1(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  114. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_3_2")
  115. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  116. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  117. AddConversationOption(conversation, "On second thought, never mind.")
  118. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  119. end
  120. function dlg_3_2(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1006.mp3", "", "", 0, 0, Spawn)
  124. AddConversationOption(conversation, "I'm interested in entering one of your fundraising contests.", "dlg_3_3")
  125. AddConversationOption(conversation, "It's always a good day to kill a goblin.")
  126. StartConversation(conversation, NPC, Spawn, "It's a beautiful day to kill a goblin!")
  127. end
  128. function dlg_3_3(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. conversation = CreateConversation()
  131. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  132. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_3_4")
  133. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  134. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  135. AddConversationOption(conversation, "On second thought, never mind.")
  136. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  137. end
  138. function dlg_4_1(NPC, Spawn)
  139. FaceTarget(NPC, Spawn)
  140. conversation = CreateConversation()
  141. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  142. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_4_2")
  143. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  144. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  145. AddConversationOption(conversation, "On second thought, never mind.")
  146. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  147. end
  148. function dlg_9_1(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. conversation = CreateConversation()
  151. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  152. AddConversationOption(conversation, "That sounds great!", "dlg_9_2")
  153. StartConversation(conversation, NPC, Spawn, "Really! That's splendid! I hate killing goblins anyway. I'll do anything to get reassigned away from this wretched outpost. I've come up with a handful of fundraising contests. Instead of feats of strength, I thought we might go the traditional route of getting some items donated and then selling them off for a profit. I've even arranged for some really nice prizes.")
  154. end
  155. function dlg_10_1(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. conversation = CreateConversation()
  158. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  159. AddConversationOption(conversation, "That sounds great!", "dlg_10_2")
  160. StartConversation(conversation, NPC, Spawn, "Really! That's splendid! I hate killing goblins anyway. I'll do anything to get reassigned away from this wretched outpost. I've come up with a handful of fundraising contests. Instead of feats of strength, I thought we might go the traditional route of getting some items donated and then selling them off for a profit. I've even arranged for some really nice prizes.")
  161. end
  162. function dlg_10_2(NPC, Spawn)
  163. FaceTarget(NPC, Spawn)
  164. conversation = CreateConversation()
  165. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  166. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_10_3")
  167. AddConversationOption(conversation, "Fundraiser Two: Sewing a Sampler")
  168. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  169. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  170. AddConversationOption(conversation, "I'm not so good with these sorts of things.")
  171. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  172. end
  173. function dlg_10_3(NPC, Spawn)
  174. FaceTarget(NPC, Spawn)
  175. conversation = CreateConversation()
  176. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  177. AddConversationOption(conversation, "I'll get right to work.")
  178. StartConversation(conversation, NPC, Spawn, "Really? You want to do this? I find sewing so tedious. I suppose we all have our niches in life, though. Do your best work on a tailored broadcloth cap; fancy it up however you like. The first prize in this category is a pattern for your very own matching shawl.")
  179. end
  180. function dlg_13_1(NPC, Spawn)
  181. FaceTarget(NPC, Spawn)
  182. conversation = CreateConversation()
  183. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  184. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_13_2")
  185. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  186. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  187. AddConversationOption(conversation, "On second thought, never mind.")
  188. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  189. end
  190. function dlg_13_2(NPC, Spawn)
  191. FaceTarget(NPC, Spawn)
  192. conversation = CreateConversation()
  193. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  194. AddConversationOption(conversation, "Wild apple muffins! Coming right up!", "dlg_13_3")
  195. StartConversation(conversation, NPC, Spawn, "I'm so glad you picked this one! I'm the only judge and I love apples! You have to make three wild apple muffins: one for display and two for the tasting. The first prize for this one is my own secret family recipe for apple pie!")
  196. end
  197. function dlg_14_1(NPC, Spawn)
  198. FaceTarget(NPC, Spawn)
  199. conversation = CreateConversation()
  200. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  201. AddConversationOption(conversation, "You won't raise too many funds this way.", "dlg_14_2")
  202. StartConversation(conversation, NPC, Spawn, "Great! And good news for you -- you're the only person who entered! You automatically win!")
  203. end
  204. function dlg_16_1(NPC, Spawn)
  205. FaceTarget(NPC, Spawn)
  206. conversation = CreateConversation()
  207. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  208. AddConversationOption(conversation, "Fundraiser One: Apples Away", "dlg_16_2")
  209. AddConversationOption(conversation, "Fundraiser Three: Table for Two")
  210. AddConversationOption(conversation, "Fundraiser Four: Feyiron Dagger of Doom")
  211. AddConversationOption(conversation, "On second thought, never mind.")
  212. StartConversation(conversation, NPC, Spawn, "If you're handy with your hands, you're more than welcome to participate in our fundraisers. I suppose you could pay someone else to make these things for you, though I sure wouldn't want to! Every item submitted will be sold with the profits going toward our museum building fund. There's a prize for first place in each category!")
  213. end