BotanistLith.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. Updated 5/5/20. Much information couldn't be verified through online and in game sources, so some creativity was
  8. involved with some of the dialogue. It should fulfill the general purpose. Change as you feel is required.
  9. Mahalo, Darksinga.
  10. --]]
  11. local KERRA = 11
  12. local QUEST_1 = 518
  13. function spawn(NPC)
  14. ProvidesQuest(NPC, QUEST_1)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if HasCompletedQuest(Spawn, QUEST_1) then
  23. Quest1Completed(NPC, Spawn, conversation)
  24. elseif HasQuest(Spawn, QUEST_1) then
  25. OnQuest1(NPC, Spawn, conversation)
  26. else
  27. if GetRace(Spawn) == KERRA then
  28. else
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha000.mp3", "", "", 1585352530, 1011819212, Spawn)
  30. AddConversationOption(conversation, "Lakosha Maera sent me.", "dlg_0_1")
  31. StartConversation(conversation, NPC, Spawn, "The plant life here is absolutely astounding.")
  32. end
  33. end
  34. end
  35. function dlg_0_1(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha001.mp3", "", "", 2621096962, 3551613449, Spawn)
  39. AddConversationOption(conversation, "Unfortunate news. Someone in Nettleville attempted to perform a Pa'Rok ceremony with tainted dirt.", "dlg_0_2")
  40. StartConversation(conversation, NPC, Spawn, "Ah, wonderful. I have not spoken to her in quite some time. What news does she send?")
  41. end
  42. function dlg_0_2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha002.mp3", "", "", 619900214, 1453098884, Spawn)
  46. 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")
  47. StartConversation(conversation, NPC, Spawn, "I'm not familiar with that ceremony, was anybody hurt?")
  48. end
  49. function dlg_0_3(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/botanist_lith/qey_adv04_bog/quests/nareh/nareh_lakosha003.mp3", "", "", 418560600, 341427965, Spawn)
  53. AddConversationOption(conversation, "How so?", "dlg_0_4")
  54. StartConversation(conversation, NPC, Spawn, "Oh, I see. I guess that agrees with my findings, unfortunately.")
  55. end
  56. function dlg_0_4(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "Yes, of course.", "dlg_0_5")
  60. StartConversation(conversation, NPC, Spawn, "The very ground that the bogs crawl across is becoming contaminated. I need some of their bodies, and the mud they crawl over, to be sure. Can you help?")
  61. end
  62. function dlg_0_5(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. AddConversationOption(conversation, "Easy enough! I will be back shortly.", "OfferQuest1")
  66. StartConversation(conversation, NPC, Spawn, "Fantastic! I need the stomach contents of bog slugs and sludges. I also need a few mud samples. Once I can examine all the evidence, we will know how to move forward.")
  67. end
  68. function OfferQuest1(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. OfferQuest(NPC, Spawn, QUEST_1)
  71. end
  72. function Quest1Completed(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Say(NPC, "Go speak to Lieutenant Dawson near the Nettleville gate.", Spawn)
  75. end
  76. function OnQuest1(NPC, Spawn, conversation)
  77. if (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 4) then
  78. AddConversationOption(conversation, "Yes, I have collected the components you requested.", "dlg_1_1")
  79. elseif (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 5) then
  80. AddConversationOption(conversation, "No. I need to speak with Dawson.", Spawn)
  81. else
  82. AddConversationOption(conversation, "No, not yet.")
  83. end
  84. StartConversation(conversation, NPC, Spawn, "Yes? Do you have an update?")
  85. end
  86. function dlg_1_1 (NPC, Spawn, conversation)
  87. SetStepComplete(Spawn, QUEST_1, 4)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. AddConversationOption(conversation, "I will go right away.", Spawn)
  91. StartConversation(conversation, NPC, Spawn, "It is as I expected... This evidence suggests foreign substances are being introduced into the Peat Bog. I'm concerned that these substances have originated in the Caves. Speak with Lieutenant Dawson immediately. I must get back to my work.")
  92. end
  93. --[[ raw_conversations
  94. 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)
  95. --]]