GornitPenwiggle.lua 5.2 KB

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