FarmerWalcott.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. function spawn(NPC)
  10. ProvidesQuest(NPC, ThereMite)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if GetQuestStep(Spawn, ThereMite) == 2 then
  23. SetStepComplete(Spawn, ThereMite, 2)
  24. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott003.mp3", "", "", 2680820592, 3831371965, Spawn)
  25. AddConversationOption(conversation, "Not a problem. Anything for an Antonican.")
  26. StartConversation(conversation, NPC, Spawn, "Yes! You did a great job, adventurer! The crops live another day. Please take this for your kind deeds. ")
  27. else
  28. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott000.mp3", "", "", 1905672247, 2052203858, Spawn)
  29. if HasQuest(Spawn, ThereMite) == false and HasCompletedQuest(Spawn, ThereMite) == false then
  30. AddConversationOption(conversation, "Sounds like you need a beetle charmer. ", "dlg_1_1")
  31. end
  32. AddConversationOption(conversation, "I found this map on a gnoll. ")
  33. AddConversationOption(conversation, "I am sorry I cannot help you. Farewell.")
  34. StartConversation(conversation, NPC, Spawn, "Oh! My poor crops! What will I do with all these ravenous beetles scurrying about?")
  35. end
  36. end
  37. function dlg_1_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott001.mp3", "", "", 2875116766, 2106137000, Spawn)
  41. AddConversationOption(conversation, "Then today is your lucky day. Here I am! ", "dlg_1_2")
  42. AddConversationOption(conversation, "If I see any I will send them your way. Farewell.")
  43. 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!")
  44. end
  45. function dlg_1_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott002.mp3", "", "", 1854564329, 3891746852, Spawn)
  49. AddConversationOption(conversation, "I will end your mite problems.", "Quest1")
  50. 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.")
  51. end
  52. function Quest1(NPC, Spawn)
  53. OfferQuest(NPC, Spawn, ThereMite)
  54. end
  55. function dlg_2_1(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott004.mp3", "", "", 1213446973, 2066498477, Spawn)
  59. AddConversationOption(conversation, "It's all in a day's work for us adventurers. ")
  60. AddConversationOption(conversation, "I don't have time to chat with you.")
  61. 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!")
  62. end
  63. function dlg_3_2(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott005.mp3", "", "", 3107851027, 3585937746, Spawn)
  67. AddConversationOption(conversation, "I will hack a couple down for you.", "dlg_3_3")
  68. 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.")
  69. end
  70. function dlg_6_1(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott006.mp3", "", "", 3891109775, 3345154753, Spawn)
  74. AddConversationOption(conversation, "Farewell, farmer. ")
  75. 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. ")
  76. end
  77. function dlg_10_1(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  81. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  82. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_10_2")
  83. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  84. end
  85. function dlg_10_2(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. conversation = CreateConversation()
  88. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott008.mp3", "", "", 1206894627, 4263746663, Spawn)
  89. AddConversationOption(conversation, "I'll help you any way I can. ", "dlg_10_3")
  90. AddConversationOption(conversation, "You must fight it without me. Farewell.")
  91. 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. ")
  92. end
  93. function dlg_10_3(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott009.mp3", "", "", 970639118, 3821730719, Spawn)
  97. AddConversationOption(conversation, "I will collect the items.", "dlg_10_4")
  98. 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. ")
  99. end
  100. function dlg_12_1(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott010.mp3", "", "", 3414706112, 3583405611, Spawn)
  104. AddConversationOption(conversation, "I am glad I could help. ")
  105. 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! ")
  106. end
  107. function dlg_18_1(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  111. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  112. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_18_2")
  113. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  114. end
  115. function dlg_19_1(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  119. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  120. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_19_2")
  121. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  122. end
  123. function dlg_19_2(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. conversation = CreateConversation()
  126. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott008.mp3", "", "", 1206894627, 4263746663, Spawn)
  127. AddConversationOption(conversation, "I'll help you any way I can. ", "dlg_19_3")
  128. AddConversationOption(conversation, "You must fight it without me. Farewell.")
  129. 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. ")
  130. end
  131. function dlg_20_1(NPC, Spawn)
  132. FaceTarget(NPC, Spawn)
  133. conversation = CreateConversation()
  134. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", "", "", 2816178732, 3621841778, Spawn)
  135. AddConversationOption(conversation, "The gnoll was creating scarecrows, evil ones! ")
  136. AddConversationOption(conversation, "I don't want to get involved. Farewell. ", "dlg_20_2")
  137. StartConversation(conversation, NPC, Spawn, "Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  138. end
  139. function dlg_20_2(NPC, Spawn)
  140. FaceTarget(NPC, Spawn)
  141. conversation = CreateConversation()
  142. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott008.mp3", "", "", 1206894627, 4263746663, Spawn)
  143. AddConversationOption(conversation, "I'll help you any way I can. ", "dlg_20_3")
  144. AddConversationOption(conversation, "You must fight it without me. Farewell.")
  145. 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. ")
  146. end
  147. function dlg_20_3(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott009.mp3", "", "", 970639118, 3821730719, Spawn)
  151. AddConversationOption(conversation, "I will collect the items.", "dlg_20_4")
  152. 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. ")
  153. end
  154. function dlg_26_1(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/farmer_walcott/antonica/farmerwalcott010.mp3", "", "", 3414706112, 3583405611, Spawn)
  158. AddConversationOption(conversation, "I am glad I could help. ")
  159. 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! ")
  160. end