9
3

DeputyNettlebrine.lua 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/DeputyNettlebrine.lua
  3. Script Purpose : Deputy Nettlebrine
  4. Script Author : Cynnar/Patrick_Boyd
  5. Script Date : 2020.9.7
  6. Script Notes : Updated to include WatchYourStepInTheTSPartIV quest complete. Still has bugs
  7. --]]
  8. local WatchYourStepInTheTSPartIV = 102
  9. local StartofSomethingBig = 118
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasQuest(Spawn, StartofSomethingBig) then
  19. PlayFlavor(NPC, "", "Greetings, stranger!", "", 1689589577, 4560189, Spawn)
  20. AddConversationOption(conversation, "No, not yet.")
  21. StartConversation(conversation, NPC, Spawn, "How's it going? Any luck getting back the artifacts?")
  22. elseif HasQuest(Spawn, WatchYourStepInTheTSPartIV) and GetQuestStep(Spawn, WatchYourStepInTheTSPartIV) == 1 then
  23. PlayFlavor(NPC, "", "Greetings, stranger!", "", 1689589577, 4560189, Spawn)
  24. AddConversationOption(conversation, "I have a letter for you.", "dlg_5_0")
  25. StartConversation(conversation, NPC, Spawn, "How can I help you?")
  26. else
  27. //This seems to be a bug... anyone know what the default conversation is supposed to be?
  28. PlayFlavor(NPC, "", "Greetings, stranger!", "", 1689589577, 4560189, Spawn)
  29. AddConversationOption(conversation, "No, not yet.")
  30. StartConversation(conversation, NPC, Spawn, "How's it going? Any luck getting back the artifacts?")
  31. end
  32. end
  33. function dlg_0_1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  37. AddConversationOption(conversation, "No. Was I supposed to?", "dlg_0_2")
  38. StartConversation(conversation, NPC, Spawn, "Nicely done, friend! These'll sell tickets to our fish fry, that's for sure! Have you thought of any other fundraising ideas we can use?")
  39. end
  40. function dlg_0_2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "I'll go ask him first, then.", "dlg_0_3")
  45. StartConversation(conversation, NPC, Spawn, "No, no. I was just hoping. Maybe you might run over to see Deputy Hopple or Deputy Stoutgut? They're both on the Fundraising Committee and I haven't gotten their ideas yet. They're stationed over near the wall. Deputy Hopple's the more dependable of the two, though that's not saying much.")
  46. end
  47. function dlg_1_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  51. AddConversationOption(conversation, "I can do that.")
  52. StartConversation(conversation, NPC, Spawn, "Unless we have some fundraisers. We're going to hold a fish fry and can always use some fresh fish, if you'd like to hunt some up for us. Something big, that'll feed a whole crowd!")
  53. end
  54. function dlg_2_1(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  58. AddConversationOption(conversation, "Sure, what do you need?", "dlg_2_2")
  59. AddConversationOption(conversation, "Perhaps later.")
  60. StartConversation(conversation, NPC, Spawn, "It's progressing nicely. The whole museum plan is in the committee right now, thanks to your help! I do have one other small thing you might do for me, if you have time.")
  61. end
  62. function dlg_2_2(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  66. AddConversationOption(conversation, "A baked badger?", "dlg_2_3")
  67. StartConversation(conversation, NPC, Spawn, "One of the deputies stationed out by the Lazy Drain's been moping lately. His partner kind of disappeared on him and Deputy Kegie -- that's the one who's left -- is a bit anxious. Maybe you might cheer him up with a visit? Oh! And he sure likes baked badger. Maybe you could take him one as a sort of gift?")
  68. end
  69. function dlg_2_3(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  73. AddConversationOption(conversation, "No problem.", "dlg_2_4")
  74. StartConversation(conversation, NPC, Spawn, "You don't have to bake it yourself, of course. Just pick one up on your way to see Deputy Kegie. He's in the wagon alongside the Drain, this side of the wall.")
  75. end
  76. function dlg_4_1(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  80. AddConversationOption(conversation, "I suppose I can help.", "dlg_4_2")
  81. AddConversationOption(conversation, "I haven't got time to help.")
  82. StartConversation(conversation, NPC, Spawn, "Don't I wish! I've been trying to get a museum built to honor our fallen and tell folks the history of our beloved old Misty Thicket and Rivervale! Say...you don't have time to help ME out instead, do you?")
  83. end
  84. function dlg_4_2(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  88. AddConversationOption(conversation, "I'll see what I can do.", "dlg_4_3")
  89. StartConversation(conversation, NPC, Spawn, "Terrific! You see, I'm trying to gather up some of the artifacts from the old days. The wagon I'd been storing the items in was smashed to bits and those mischievous fairies and sirens conspired to get all my artifacts! I've been able to get most of them, but there's still a few missing. Could you look around and get them back for me?")
  90. end
  91. function dlg_5_0(NPC, Spawn)
  92. SetStepComplete(Spawn, WatchYourStepInTheTSPartIV, 1)
  93. end
  94. --[[ raw_conversations
  95. PlayFlavor(NPC, "", "Greetings, stranger!", "", 1689589577, 4560189, Spawn)
  96. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1023.mp3", "", "", 0, 0, Spawn)
  97. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1023.mp3", "", "", 0, 0, Spawn)
  98. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1023.mp3", "", "", 0, 0, Spawn)
  99. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1005.mp3", "", "", 0, 0, Spawn)
  100. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1005.mp3", "", "", 0, 0, Spawn)
  101. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1005.mp3", "", "", 0, 0, Spawn)
  102. --]]