9
3

FarmerWalcott.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. local CrudeMap = 5644
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, ThereMite)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. require "SpawnScripts/Generic/DialogModule"
  18. function hailed(NPC, Spawn)
  19. Dialog1(NPC, Spawn)
  20. end
  21. function Dialog1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. Dialog.New(NPC, Spawn)
  24. Dialog.AddDialog("Oh! My poor crops! What will I do with all these ravenous beetles scurrying about?")
  25. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott000.mp3", 1905672247, 2052203858)
  26. if HasQuest(Spawn, ThereMite) == false and HasCompletedQuest(Spawn, ThereMite) == false then
  27. Dialog.AddOption("Sounds like you need a beetle charmer. ", "Dialog6")
  28. end
  29. if GetQuestStep(Spawn,TheHalfEatenOrderSlip)==1 then
  30. Dialog.AddOption("I found this slip with your name on it. ", "Dialog14")
  31. end
  32. if GetQuestStep(Spawn,TheHalfEatenOrderSlip)==3 then
  33. Dialog.AddOption("You have two less scarecrows.", "Dialog11")
  34. end
  35. if GetQuestStep(Spawn,ThereMite)==2 then
  36. Dialog.AddOption("I have done my best.", "Dialog17")
  37. end
  38. if GetQuestStep(Spawn,CrudeMap)==1 then
  39. Dialog.AddOption("I found this map on a gnoll. ", "Dialog2")
  40. end
  41. if GetQuestStep(Spawn,TheHalfEatenOrderSlip)==6 then
  42. Dialog.AddOption("I have brought you your components.", "Dialog8")
  43. end
  44. Dialog.AddOption("I am sorry I cannot help you. Farewell.")
  45. Dialog.Start()
  46. PlayFlavor(NPC,"","","sigh",0,0,Spawn)
  47. end
  48. function Dialog2(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("Just a minute here ... this looks like a child's sketch of me fields! Just what was this gnoll doing? ")
  52. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott007.mp3", 2816178732, 3621841778)
  53. Dialog.AddOption("The gnoll was creating scarecrows, evil ones! ", "Dialog18")
  54. Dialog.AddOption("I don't want to get involved. Farewell. ")
  55. Dialog.Start()
  56. PlayFlavor(NPC,"","","confused",0,0,Spawn)
  57. end
  58. function Dialog3(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. OfferQuest(NPC,Spawn,ThereMite)
  61. end
  62. function Dialog6(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("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!")
  66. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott001.mp3", 2875116766, 2106137000)
  67. if GetLevel(Spawn) >=6 then
  68. Dialog.AddOption("Then today is your lucky day. Here I am! ", "Dialog3")
  69. end
  70. Dialog.AddOption("If I see any I will send them your way. Farewell.")
  71. Dialog.Start()
  72. PlayFlavor(NPC,"","","nod",0,0,Spawn)
  73. end
  74. function Dialog8(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. SetStepComplete(Spawn, CrudeMap, 6)
  78. Dialog.AddDialog("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! ")
  79. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott010.mp3", 3414706112, 3583405611)
  80. Dialog.AddOption("I am glad I could help. ")
  81. Dialog.Start()
  82. PlayFlavor(NPC,"","","smile",0,0,Spawn)
  83. end
  84. function Dialog11(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. Dialog.New(NPC, Spawn)
  87. SetStepComplete(Spawn, TheHalfEatenOrderSlip, 3)
  88. Dialog.AddDialog("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. ")
  89. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott006.mp3", 3891109775, 3345154753)
  90. Dialog.AddOption("Farewell, farmer. ")
  91. Dialog.Start()
  92. PlayFlavor(NPC,"","","thanks",0,0,Spawn)
  93. end
  94. function Dialog13(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. Dialog.New(NPC, Spawn)
  97. SetStepComplete(Spawn, TheHalfEatenOrderSlip, 1)
  98. Dialog.AddDialog("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. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott009.mp3", 970639118, 3821730719)
  100. Dialog.AddOption("I will collect the items.")
  101. Dialog.Start()
  102. end
  103. function Dialog14(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. Dialog.New(NPC, Spawn)
  106. Dialog.AddDialog("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!")
  107. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott004.mp3", 1213446973, 2066498477)
  108. Dialog.AddOption("It's all in a day's work for us adventurers. ", "Dialog16")
  109. Dialog.AddOption("I don't have time to chat with you.")
  110. Dialog.Start()
  111. end
  112. function Dialog16(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. Dialog.New(NPC, Spawn)
  115. Dialog.AddDialog("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.")
  116. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott005.mp3", 3107851027, 3585937746)
  117. Dialog.AddOption("I will hack a couple down for you.")
  118. Dialog.Start()
  119. end
  120. function Dialog17(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. Dialog.New(NPC, Spawn)
  123. Dialog.AddDialog("Yes! You did a great job, adventurer! The crops live another day. Please take this for your kind deeds. ")
  124. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott003.mp3", 2680820592, 3831371965)
  125. Dialog.AddOption("Not a problem. Anything for an Antonican.")
  126. Dialog.Start()
  127. SetStepComplete(Spawn,ThereMite,2)
  128. PlayFlavor(NPC,"","","clap",0,0,Spawn)
  129. end
  130. function Dialog18(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. Dialog.New(NPC, Spawn)
  133. Dialog.AddDialog("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. ")
  134. Dialog.AddVoiceover("voiceover/english/farmer_walcott/antonica/farmerwalcott008.mp3", 1206894627, 4263746663)
  135. Dialog.AddOption("I'll help you any way I can. ", "Dialog13")
  136. Dialog.AddOption("You must fight it without me. Farewell.")
  137. Dialog.Start()
  138. end