GornitPenwiggle.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. local AnIntriguingEye = 5366
  9. local TheMotleyMerchantManifest = 5368
  10. function spawn(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local choice = MakeRandomInt(1, 3)
  15. if choice == 1 then
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1024.mp3", "", "", 0, 0, Spawn)
  17. elseif choice == 2 then
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1024.mp3", "", "", 0, 0, Spawn)
  19. elseif choice == 3 then
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1024.mp3", "", "", 0, 0, Spawn)
  21. end
  22. local conversation = CreateConversation()
  23. if GetQuestStep(Spawn, AnIntriguingEye) == 3 then
  24. AddConversationOption(conversation, "I seek a coin with an eye on it.", "Option2")
  25. elseif GetQuestStep(Spawn, AnIntriguingEye) == 6 then
  26. AddConversationOption(conversation, "Here are your items. ", "Option4")
  27. elseif GetQuestStep(Spawn, TheMotleyMerchantManifest) == 3 then
  28. AddConversationOption(conversation, "I believe you need to sign this manifest. ", "Option7")
  29. end
  30. AddConversationOption(conversation, "Gornit? That's an odd name. ", "Option1")
  31. AddConversationOption(conversation, "I won't bother you. Bye.")
  32. StartConversation(conversation, NPC, Spawn, "Can't you see I'm busy doing something you can't even begin to fathom?")
  33. end
  34. function Option1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/gornit_penwiggle/qey_village06/penwiggle006.mp3", "", "", 503328722, 1485980472, Spawn)
  38. AddConversationOption(conversation, "Thank you.")
  39. StartConversation(conversation, NPC, Spawn, "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.")
  40. end
  41. function Option2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. local conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/gornit_penwiggle/qey_village06/penwiggle001.mp3", "", "", 3479279281, 1205875453, Spawn)
  45. AddConversationOption(conversation, "Spare me. How much to trade? ", "Option3")
  46. AddConversationOption(conversation, "Forget I asked. Farewell.")
  47. StartConversation(conversation, NPC, Spawn, "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...")
  48. end
  49. function Option3(NPC, Spawn)
  50. SetStepComplete(Spawn, AnIntriguingEye, 3)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/gornit_penwiggle/qey_village06/penwiggle002.mp3", "", "", 1597412316, 861955169, Spawn)
  54. AddConversationOption(conversation, "I will be back.")
  55. StartConversation(conversation, NPC, Spawn, "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. ")
  56. end
  57. function Option4(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/gornit_penwiggle/qey_village06/penwiggle003.mp3", "", "", 2188422, 1685073961, Spawn)
  61. AddConversationOption(conversation, "Where is it?", "Option5")
  62. StartConversation(conversation, NPC, Spawn, "Grand! Thanks a bunch, but I have some bad news 'bout your coin. ")
  63. end
  64. function Option5(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. local conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/gornit_penwiggle/qey_village06/penwiggle004.mp3", "", "", 1571183030, 1917018223, Spawn)
  68. AddConversationOption(conversation, "Who is this fellow collector? ", "Option6")
  69. StartConversation(conversation, NPC, Spawn, "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.")
  70. end
  71. function Option6(NPC, Spawn)
  72. SetStepComplete(Spawn, AnIntriguingEye, 6)
  73. FaceTarget(NPC, Spawn)
  74. local conversation = CreateConversation()
  75. AddConversationOption(conversation, "Thanks for the tip. ")
  76. StartConversation(conversation, NPC, Spawn, "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? ")
  77. end
  78. function Option7(NPC, Spawn)
  79. SetStepComplete(Spawn, TheMotleyMerchantManifest, 3)
  80. FaceTarget(NPC, Spawn)
  81. local conversation = CreateConversation()
  82. AddConversationOption(conversation, "Thank you.")
  83. 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. ")
  84. end
  85. function respawn(NPC)
  86. spawn(NPC)
  87. end