FarmerWalcott.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. --[[
  2. Script Name : SpawnScripts/Antonica/FarmerWalcott.lua
  3. Script Purpose : Farmer Walcott
  4. Script Author : geordie0511
  5. Script Date : 2019.03.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ThereMite = 458
  9. local TheHalfEatenOrderSlip = 5520
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, ThereMite)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if GetQuestStep(Spawn, ThereMite) == 2 then
  20. SetStepComplete(Spawn, ThereMite, 2)
  21. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott003.mp3", "", "", 2680820592, 3831371965, Spawn)
  22. AddConversationOption(conversation, "Not a problem. Anything for an Antonican.")
  23. StartConversation(conversation, NPC, Spawn, "Yes! You did a great job, adventurer! The crops live another day. Please take this for your kind deeds. ")
  24. else
  25. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott000.mp3", "", "", 1905672247, 2052203858, Spawn)
  26. if HasQuest(Spawn, ThereMite) == false and HasCompletedQuest(Spawn, ThereMite) == false then
  27. AddConversationOption(conversation, "Sounds like you need a beetle charmer. ", "dlg_1_1")
  28. elseif GetQuestStep(Spawn, TheHalfEatenOrderSlip) == 1 then
  29. AddConversationOption(conversation, "I found this slip with your name on it.", "slip")
  30. elseif GetQuestStep(Spawn, TheHalfEatenOrderSlip) == 3 then
  31. AddConversationOption(conversation, "You have two less scarecrows.", "slip3")
  32. end
  33. AddConversationOption(conversation, "I found this map on a gnoll. ")
  34. AddConversationOption(conversation, "I am sorry I cannot help you. Farewell.")
  35. StartConversation(conversation, NPC, Spawn, "Oh! My poor crops! What will I do with all these ravenous beetles scurrying about?")
  36. end
  37. end
  38. function dlg_1_1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott001.mp3", "", "", 2875116766, 2106137000, Spawn)
  42. AddConversationOption(conversation, "Then today is your lucky day. Here I am! ", "dlg_1_2")
  43. AddConversationOption(conversation, "If I see any I will send them your way. Farewell.")
  44. StartConversation(conversation, NPC, Spawn, "A beetle charmer would be grand -- if there were such a thing. I would be satisfied just hiring an adventurer to stomp a bunch of the beetles. Oh my poor barley!")
  45. end
  46. function dlg_1_2(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott002.mp3", "", "", 1854564329, 3891746852, Spawn)
  50. AddConversationOption(conversation, "I will end your mite problems.", "Quest1")
  51. StartConversation(conversation, NPC, Spawn, "Thank the lost gods! I know you can't exterminate all these pests, but please do your best. I'll reward you with what I can. Don't worry, little barley ... help is on the way.")
  52. end
  53. function Quest1(NPC, Spawn)
  54. OfferQuest(NPC, Spawn, ThereMite)
  55. end
  56. function dlg_2_1(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott004.mp3", "", "", 1213446973, 2066498477, Spawn)
  60. AddConversationOption(conversation, "It's all in a day's work for us adventurers. ")
  61. AddConversationOption(conversation, "I don't have time to chat with you.")
  62. StartConversation(conversation, NPC, Spawn, "I saw a moat rat chewing that slip this morning. I thought I would never get it back! You must be an amazing hero to face moat rats with such ease!")
  63. end
  64. function dlg_3_2(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott005.mp3", "", "", 3107851027, 3585937746, Spawn)
  68. AddConversationOption(conversation, "I will hack a couple down for you.", "dlg_3_3")
  69. StartConversation(conversation, NPC, Spawn, "I can use a person with your strength and bravado. See those evil looking scarecrows in my fields? I sure would appreciate it if you would get rid of 'em for me.")
  70. end
  71. function dlg_6_1(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott006.mp3", "", "", 3891109775, 3345154753, Spawn)
  75. AddConversationOption(conversation, "Farewell, farmer. ")
  76. StartConversation(conversation, NPC, Spawn, "Thank you for your help, adventurer. There was no way a simple farmer could face such creatures and live. Now maybe I can get some work done around here. ")
  77. end
  78. function dlg_10_1(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  82. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  83. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_10_2")
  84. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  85. end
  86. function dlg_10_2(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott008.mp3", "", "", 1206894627, 4263746663, Spawn)
  90. AddConversationOption(conversation, "I'll help you any way I can. ", "dlg_10_3")
  91. AddConversationOption(conversation, "You must fight it without me. Farewell.")
  92. StartConversation(conversation, NPC, Spawn, "Aha! Recently, my scarecrows came to life with fierce rage! I had no idea how this happened. I think I know how I can fight it. ")
  93. end
  94. function dlg_10_3(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott009.mp3", "", "", 970639118, 3821730719, Spawn)
  98. AddConversationOption(conversation, "I will collect the items.", "dlg_10_4")
  99. StartConversation(conversation, NPC, Spawn, "You can handle the wilderness better than a simple farmer. I'll need a few components. Collect them for me so I can begin my plan. ")
  100. end
  101. function dlg_12_1(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott010.mp3", "", "", 3414706112, 3583405611, Spawn)
  105. AddConversationOption(conversation, "I am glad I could help. ")
  106. StartConversation(conversation, NPC, Spawn, "Fantastic! Now I can bring to life a good scarecrow, one who I can place in the fields and who will destroy the evil ones! ")
  107. end
  108. function dlg_18_1(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  112. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  113. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_18_2")
  114. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  115. end
  116. function dlg_19_1(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  120. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  121. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_19_2")
  122. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  123. end
  124. function dlg_19_2(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott008.mp3", "", "", 1206894627, 4263746663, Spawn)
  128. AddConversationOption(conversation, "I'll help you any way I can. ", "dlg_19_3")
  129. AddConversationOption(conversation, "You must fight it without me. Farewell.")
  130. StartConversation(conversation, NPC, Spawn, "Aha! Recently, my scarecrows came to life with fierce rage! I had no idea how this happened. I think I know how I can fight it. ")
  131. end
  132. function dlg_20_1(NPC, Spawn)
  133. FaceTarget(NPC, Spawn)
  134. conversation = CreateConversation()
  135. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  136. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  137. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_20_2")
  138. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  139. end
  140. function dlg_20_2(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott008.mp3", "", "", 1206894627, 4263746663, Spawn)
  144. AddConversationOption(conversation, "I'll help you any way I can. ", "dlg_20_3")
  145. AddConversationOption(conversation, "You must fight it without me. Farewell.")
  146. StartConversation(conversation, NPC, Spawn, "Aha! Recently, my scarecrows came to life with fierce rage! I had no idea how this happened. I think I know how I can fight it. ")
  147. end
  148. function dlg_20_3(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. conversation = CreateConversation()
  151. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott009.mp3", "", "", 970639118, 3821730719, Spawn)
  152. AddConversationOption(conversation, "I will collect the items.", "dlg_20_4")
  153. StartConversation(conversation, NPC, Spawn, "You can handle the wilderness better than a simple farmer. I'll need a few components. Collect them for me so I can begin my plan. ")
  154. end
  155. function dlg_26_1(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. conversation = CreateConversation()
  158. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott010.mp3", "", "", 3414706112, 3583405611, Spawn)
  159. AddConversationOption(conversation, "I am glad I could help. ")
  160. StartConversation(conversation, NPC, Spawn, "Fantastic! Now I can bring to life a good scarecrow, one who I can place in the fields and who will destroy the evil ones! ")
  161. end
  162. function slip(NPC, Spawn)
  163. FaceTarget(NPC, Spawn)
  164. conversation = CreateConversation()
  165. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott004.mp3", "", "", 1213446973, 2066498477, Spawn)
  166. AddConversationOption(conversation, "It's all in a day's work for us adventurers. ", "slip2")
  167. AddConversationOption(conversation, "I don't have time to chat with you.")
  168. StartConversation(conversation, NPC, Spawn, "I saw a moat rat chewing that slip this morning. I thought I would never get it back! You must be an amazing hero to face moat rats with such ease!")
  169. end
  170. function slip2(NPC, Spawn)
  171. SetStepComplete(Spawn, TheHalfEatenOrderSlip, 1)
  172. FaceTarget(NPC, Spawn)
  173. conversation = CreateConversation()
  174. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott005.mp3", "", "", 3107851027, 3585937746, Spawn)
  175. AddConversationOption(conversation, "I will hack a couple down for you.")
  176. StartConversation(conversation, NPC, Spawn, "I can use a person with your strength and bravado. See those evil looking scarecrows in my fields? I sure would appreciate it if you would get rid of 'em for me.")
  177. end
  178. function slip3(NPC, Spawn)
  179. SetStepComplete(Spawn, TheHalfEatenOrderSlip, 3)
  180. FaceTarget(NPC, Spawn)
  181. conversation = CreateConversation()
  182. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott006.mp3", "", "", 3891109775, 3345154753, Spawn)
  183. AddConversationOption(conversation, "Farewell, farmer. ")
  184. StartConversation(conversation, NPC, Spawn, "Thank you for your help, adventurer. There was no way a simple farmer could face such creatures and live. Now maybe I can get some work done around here. ")
  185. end