9
3

GornitPenwiggle.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. --[[
  2. Script Name : SpawnScripts/Baubbleshire/GornitPenwiggle.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.03 04:10:05
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local AnIntriguingEye = 5366
  10. local TheMotleyMerchantManifest = 5368
  11. function spawn(NPC)
  12. SetInfoStructString(NPC, "action_state", "drinking_idle")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. Dialog.New(NPC, Spawn)
  17. Dialog.AddDialog("Can't you see I'm busy? I'm the kegkeeper of the tavern, and as you can see, these lot drink a lot ... Ha! ... Made a funny!")
  18. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle000.mp3", 2844059086, 1628915067)
  19. if GetQuestStep(Spawn, AnIntriguingEye) == 3 then
  20. Dialog.AddOption("I seek a coin with an eye on it.", "Option2")
  21. elseif GetQuestStep(Spawn, AnIntriguingEye) == 6 then
  22. Dialog.AddOption("Here are your items. ", "Option4")
  23. elseif GetQuestStep(Spawn, TheMotleyMerchantManifest) == 3 then
  24. Dialog.AddOption("I believe you need to sign this manifest. ", "Option7")
  25. end
  26. Dialog.AddOption("Gornit? That's an odd name. ","Option1")
  27. Dialog.AddOption("I won't bother you. Bye.")
  28. Dialog.Start()
  29. end
  30. function Option1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("I agree! But what's a stout to do? My grandparents granted me this atrocious name. They say it was the name of a ferocious giant, a pirate even! Saw it on a journey once, they say. Even spoke to him! Tall tales I say.")
  34. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle006.mp3", 503328722, 1485980472)
  35. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  36. Dialog.AddOption("Thank you.")
  37. Dialog.Start()
  38. end
  39. function Option2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("Looking for my coin? I earned that coin in a grand battle. I was taking on ten of the fiercest and nastiest rats, armed only with me trusty pen and no place to run so I...")
  43. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle001.mp3", 3479279281, 1205875453)
  44. PlayFlavor(NPC, "", "", "scold", 0, 0, Spawn)
  45. Dialog.AddOption("Spare me. How much to trade? ", "Option3")
  46. Dialog.AddOption("Forget I asked. Farewell.")
  47. Dialog.Start()
  48. end
  49. function Option3(NPC, Spawn)
  50. SetStepComplete(Spawn, AnIntriguingEye, 3)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("Trade, eh? I guess that coin can be passed on for a price, right? I didn't go down into the dark of the Down Below for a coin. Here's a list of items I need from there. Fill my list and the coin is yours. ")
  54. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle002.mp3", 1597412316, 861955169)
  55. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  56. Dialog.AddOption("I will be back.")
  57. Dialog.Start()
  58. end
  59. function Option4(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. Dialog.New(NPC, Spawn)
  62. Dialog.AddDialog("Grand! Thanks a bunch, but I have some bad news 'bout your coin.")
  63. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle003.mp3", 2188422, 1685073961)
  64. PlayFlavor(NPC, "", "", "smile", 0, 0, Spawn)
  65. Dialog.AddOption("Where is it?", "Option5")
  66. Dialog.Start()
  67. end
  68. function Option5(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. Dialog.New(NPC, Spawn)
  71. Dialog.AddDialog("Well, now...I was sitting here shining the little trinket, when a fellow collector snatched it from me. Said he knew the rightful owners and that I oughta' forget all 'bout it.")
  72. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle004.mp3", 1571183030, 1917018223)
  73. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  74. Dialog.AddOption("Who is this fellow collector? ", "Option6")
  75. Dialog.Start()
  76. end
  77. function Option6(NPC, Spawn)
  78. SetStepComplete(Spawn, AnIntriguingEye, 6)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. Dialog.AddDialog("Sorry, mate. Trade is my life, and if I off and told you his name, I'd never be able to do business at the Collector's Trove again. Wait ... forget I said Collector's Trove will ya?")
  82. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle004.mp3", 1571183030, 1917018223)
  83. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  84. Dialog.AddOption("Thanks for the tip. ")
  85. Dialog.Start()
  86. end
  87. function Option7(NPC, Spawn)
  88. SetStepComplete(Spawn, TheMotleyMerchantManifest, 3)
  89. FaceTarget(NPC, Spawn)
  90. local conversation = CreateConversation()
  91. AddConversationOption(conversation, "Thank you.")
  92. StartConversation(conversation, NPC, Spawn, "Ah! Yes, of course ... I need to sign for that quill delivery. Yep! That's all it is. Simple ... legal ... quills. ")
  93. end
  94. function respawn(NPC)
  95. spawn(NPC)
  96. end