GornitPenwiggle.lua 4.7 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. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. Dialog.New(NPC, Spawn)
  16. 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!")
  17. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle000.mp3", 2844059086, 1628915067)
  18. if GetQuestStep(Spawn, AnIntriguingEye) == 3 then
  19. Dialog.AddOption("I seek a coin with an eye on it.", "Option2")
  20. elseif GetQuestStep(Spawn, AnIntriguingEye) == 6 then
  21. Dialog.AddOption("Here are your items. ", "Option4")
  22. elseif GetQuestStep(Spawn, TheMotleyMerchantManifest) == 3 then
  23. Dialog.AddOption("I believe you need to sign this manifest. ", "Option7")
  24. end
  25. Dialog.AddOption("Gornit? That's an odd name. ","Option1")
  26. Dialog.AddOption("I won't bother you. Bye.")
  27. Dialog.Start()
  28. end
  29. function Option1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. 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.")
  33. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle006.mp3", 503328722, 1485980472)
  34. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  35. Dialog.AddOption("Thank you.")
  36. Dialog.Start()
  37. end
  38. function Option2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. 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...")
  42. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle001.mp3", 3479279281, 1205875453)
  43. PlayFlavor(NPC, "", "", "scold", 0, 0, Spawn)
  44. Dialog.AddOption("Spare me. How much to trade? ", "Option3")
  45. Dialog.AddOption("Forget I asked. Farewell.")
  46. Dialog.Start()
  47. end
  48. function Option3(NPC, Spawn)
  49. SetStepComplete(Spawn, AnIntriguingEye, 3)
  50. FaceTarget(NPC, Spawn)
  51. Dialog.New(NPC, Spawn)
  52. 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. ")
  53. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle002.mp3", 1597412316, 861955169)
  54. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  55. Dialog.AddOption("I will be back.")
  56. Dialog.Start()
  57. end
  58. function Option4(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. Dialog.New(NPC, Spawn)
  61. Dialog.AddDialog("Grand! Thanks a bunch, but I have some bad news 'bout your coin.")
  62. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle003.mp3", 2188422, 1685073961)
  63. PlayFlavor(NPC, "", "", "smile", 0, 0, Spawn)
  64. Dialog.AddOption("Where is it?", "Option5")
  65. Dialog.Start()
  66. end
  67. function Option5(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. 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.")
  71. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle004.mp3", 1571183030, 1917018223)
  72. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  73. Dialog.AddOption("Who is this fellow collector? ", "Option6")
  74. Dialog.Start()
  75. end
  76. function Option6(NPC, Spawn)
  77. SetStepComplete(Spawn, AnIntriguingEye, 6)
  78. FaceTarget(NPC, Spawn)
  79. Dialog.New(NPC, Spawn)
  80. 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?")
  81. Dialog.AddVoiceover("voiceover/english/gornit_penwiggle/qey_village06/penwiggle004.mp3", 1571183030, 1917018223)
  82. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  83. Dialog.AddOption("Thanks for the tip. ")
  84. Dialog.Start()
  85. end
  86. function Option7(NPC, Spawn)
  87. SetStepComplete(Spawn, TheMotleyMerchantManifest, 3)
  88. FaceTarget(NPC, Spawn)
  89. local conversation = CreateConversation()
  90. AddConversationOption(conversation, "Thank you.")
  91. 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. ")
  92. end
  93. function respawn(NPC)
  94. spawn(NPC)
  95. end