BotanistLith.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/BotanistLith.lua
  3. Script Purpose : Botanist Lith
  4. Script Author : scatman
  5. Script Date : 2009.05.10
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local KERRA = 11
  10. local QUEST_1 = 304
  11. local Earth = 518
  12. function spawn(NPC)
  13. ProvidesQuest(NPC,Earth)
  14. waypoints(NPC)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function waypoints(NPC)
  20. MovementLoopAddLocation(NPC, 585.41, -32.69, 451.28, 2, math.random(6,10))
  21. MovementLoopAddLocation(NPC, 591.6, -32.89, 450.66, 2, 0)
  22. MovementLoopAddLocation(NPC, 596.91, -32.9, 451.12, 2, math.random(6,10))
  23. MovementLoopAddLocation(NPC, 601.87, -33.14, 458.38, 2, 0)
  24. MovementLoopAddLocation(NPC, 601.2, -33.16, 458.64, 2, math.random(6,10))
  25. MovementLoopAddLocation(NPC, 597.68, -33.28, 465.53, 2, math.random(6,10))
  26. MovementLoopAddLocation(NPC, 589.82, -33.3, 461.79, 2, math.random(6,10))
  27. MovementLoopAddLocation(NPC, 596.72, -33.25, 456.47, 2, math.random(6,10))
  28. MovementLoopAddLocation(NPC, 588.61, -33.35, 455.78, 2, math.random(6,10))
  29. MovementLoopAddLocation(NPC, 588.92, -33.33, 455.19, 2, math.random(6,10))
  30. MovementLoopAddLocation(NPC, 584.94, -32.68, 452.84, 2, 0)
  31. end
  32. function hailed(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. if GetRace(Spawn)==11 then
  36. if not HasQuest(Spawn,Earth) and not HasCompletedQuest(Spawn,Earth) or HasQuest(Spawn, QUEST_1) then
  37. Dialog1(NPC, Spawn)
  38. elseif HasQuest(Spawn,Earth) and GetQuestStep(Spawn,Earth) ~= 5 and not GetQuestStep(Spawn,Earth) == 5 then
  39. Dialog8(NPC, Spawn)
  40. elseif GetQuestStep(Spawn,Earth) == 5 or HasCompletedQuest(Spawn,Earth)then
  41. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha000.mp3", "The plant life here is absolutely astounding.", "", 1585352530, 1011819212, Spawn)
  42. end
  43. else
  44. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha000.mp3", "The plant life here is absolutely astounding.", "", 1585352530, 1011819212, Spawn)
  45. end
  46. end
  47. function Dialog1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("The plant life here is absolutely astounding.")
  51. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha000.mp3", 1585352530, 1011819212)
  52. if GetQuestStep(Spawn, QUEST_1)==1 then
  53. Dialog.AddOption("Lakosha Maera sent me.", "Dialog2")
  54. end
  55. if not HasCompletedQuest(Spawn,Earth) then
  56. Dialog.AddOption("What makes it so special?", "Dialog4")
  57. end
  58. Dialog.Start()
  59. end
  60. function Dialog2(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. Dialog.AddDialog("Ah, wonderful. I have not spoken to her in quite some time. What news does she send?")
  64. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha001.mp3", 2621096962, 3551613449)
  65. Dialog.AddOption("Unfortunate news. Someone in Nettleville attempted to perform a Pa'Rok ceremony with tainted dirt.", "Dialog5")
  66. Dialog.Start()
  67. end
  68. function Dialog5(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. Dialog.New(NPC, Spawn)
  71. Dialog.AddDialog("I'm not familiar with that ceremony, was anybody hurt?")
  72. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha002.mp3", 619900214, 1453098884)
  73. Dialog.AddOption("No, but the ceremony was for naught. Lakosha asked me to visit you because the dirt that corrupted the ceremony came from Peat Bog.", "Dialog14")
  74. Dialog.Start()
  75. end
  76. function Dialog14(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. Dialog.New(NPC, Spawn)
  79. Dialog.AddDialog("Oh, I see. I guess that agrees with my findings, unfortunately.")
  80. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha003.mp3", 418560600, 341427965)
  81. Dialog.AddOption("How so?", "Dialog3")
  82. Dialog.Start()
  83. end
  84. function Dialog3(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. Dialog.New(NPC, Spawn)
  87. Dialog.AddDialog("Well... I've been wanting to do some tests on the dirt around here. I don't know what the foreign element is that is causing these rapid changes, but once I isolate it I may have more answers. Would you like to help me collect samples?")
  88. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh003.mp3", 1678486311, 1223720082)
  89. Dialog.AddOption("Sure, I will help.", "Dialog7")
  90. Dialog.AddOption("Not right now.")
  91. Dialog.Start()
  92. end
  93. function Dialog7(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("Great! I'd like some mud samples first of all. I'd also like some samples from the stomachs of the slugs and sludges--they spend enough time ingesting portions of the ground that I'd like to study them as well. Bring me these samples and I can get to work.")
  97. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh004.mp3", 4140283981, 1039664497)
  98. Dialog.AddOption("All right.", "OfferQuest2")
  99. Dialog.Start()
  100. end
  101. function OfferQuest2(NPC,Spawn)
  102. FaceTarget(NPC, Spawn)
  103. OfferQuest(NPC,Spawn,Earth)
  104. end
  105. function Dialog4(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. Dialog.New(NPC, Spawn)
  108. Dialog.AddDialog("Well, to me the interactions between plants dead--and dying--with the living portions of the bog are the most interesting. It can take a plant two or three times as long to die in this environment, though I haven't figured out precisely why. Most people are interested in other things, however.")
  109. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh001.mp3", 3970787488, 1942649410)
  110. Dialog.AddOption("What other things?", "Dialog11")
  111. Dialog.Start()
  112. end
  113. ---------------------
  114. function Dialog8(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. Dialog.New(NPC, Spawn)
  117. Dialog.AddDialog("Have you collected all the samples?")
  118. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh005.mp3", 2061702354, 314216809)
  119. if GetQuestStep(Spawn,Earth)==4 then
  120. Dialog.AddOption("Yes, I have.", "Dialog12")
  121. end
  122. Dialog.AddOption("Still working on it!", "")
  123. Dialog.Start()
  124. end
  125. function Dialog12(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. Dialog.New(NPC, Spawn)
  128. Dialog.AddDialog("Ah, perfect. I can start my tests immediately. Thank you for your help.")
  129. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh006.mp3", 1322390703, 2911971980)
  130. Dialog.AddOption("You're welcome.", "Dialog10")
  131. Dialog.Start()
  132. end
  133. function Dialog10(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. Dialog.New(NPC, Spawn)
  136. Dialog.AddDialog("Hmm... this is interesting. It may mean nothing at all, but each sample you've brought me has trace elements of a mineral not found naturally in the Peat Bog. It is, however, found in abundance in The Caves.")
  137. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh007.mp3", 1536841031, 2449487818)
  138. Dialog.AddOption("What does that mean?", "Dialog13")
  139. Dialog.Start()
  140. end
  141. function Dialog13(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. Dialog.New(NPC, Spawn)
  144. if HasItem(Spawn,4457) then
  145. RemoveItem(Spawn,4457,4)
  146. end
  147. if GetQuestStep(Spawn,Earth)==4 then
  148. SetStepComplete(Spawn, Earth, 4)
  149. end
  150. Dialog.AddDialog("Maybe nothing... just to be safe I think you should let the Qeynos Guard know about this. Speak with Lieutenant Dawson near the gates to Nettleville. She'll decide whether or not this is worth getting in a fuss over. Thanks again for your help. I can't wait to study this more.")
  151. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh008.mp3", 4173156676, 1061657601)
  152. Dialog.AddOption("You're welcome.")
  153. Dialog.Start()
  154. end
  155. function Dialog9(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. Dialog.New(NPC, Spawn)
  158. Dialog.AddDialog("The plant life here is absolutely astounding.")
  159. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh000.mp3", 1130721210, 2119698425)
  160. Dialog.AddOption("What makes it so special?", "Dialog4")
  161. Dialog.Start()
  162. end
  163. function Dialog11(NPC, Spawn)
  164. FaceTarget(NPC, Spawn)
  165. Dialog.New(NPC, Spawn)
  166. Dialog.AddDialog("Well, the animal life in the Peat Bog mostly. I'm not as interested in that as I am the plants, but I must admit the size of the creatures here is rather amazing. It urges the mind to come up with theories on what could've caused something like this.")
  167. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh002.mp3", 1376395536, 341377285)
  168. Dialog.AddOption("Do you have any theories?", "Dialog3")
  169. Dialog.Start()
  170. end
  171. --[[
  172. function dlg_0_1(NPC, Spawn)
  173. FaceTarget(NPC, Spawn)
  174. conversation = CreateConversation()
  175. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha001.mp3", "", "", 2621096962, 3551613449, Spawn)
  176. AddConversationOption(conversation, "Unfortunate news. Someone in Nettleville attempted to perform a Pa'Rok ceremony with tainted dirt.", "dlg_0_2")
  177. StartConversation(conversation, NPC, Spawn, "Ah, wonderful. I have not spoken to her in quite some time. What news does she send?")
  178. end
  179. function dlg_0_2(NPC, Spawn)
  180. FaceTarget(NPC, Spawn)
  181. conversation = CreateConversation()
  182. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha002.mp3", "", "", 619900214, 1453098884, Spawn)
  183. AddConversationOption(conversation, "No, but the ceremony was for naught. Lakosha asked me to visit you because the dirt that corrupted the ceremony came from Peat Bog.", "dlg_0_3")
  184. StartConversation(conversation, NPC, Spawn, "I'm not familiar with that ceremony, was anybody hurt?")
  185. end
  186. function dlg_0_3(NPC, Spawn)
  187. FaceTarget(NPC, Spawn)
  188. conversation = CreateConversation()
  189. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha003.mp3", "", "", 418560600, 341427965, Spawn)
  190. AddConversationOption(conversation, "How so?", "dlg_0_4")
  191. StartConversation(conversation, NPC, Spawn, "Oh, I see. I guess that agrees with my findings, unfortunately.")
  192. end
  193. raw_conversations
  194. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh000.mp3", "The plant life here is absolutely astounding.", "", 1130721210, 2119698425, Spawn)
  195. --]]