CaptainStonnacky.lua 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. --[[
  2. Script Name : SpawnScripts/Butcherblock/CaptainStonnacky.lua
  3. Script Purpose : Captain Stonnacky <The Far Seas Trading Company>
  4. Script Author : jakejp
  5. Script Date : 2018.06.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local CoinForTheCaptain = 255
  9. local CaptainSays = 267
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, CaptainSays)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if HasQuest (Spawn, CoinForTheCaptain) and GetQuestStep(Spawn, CoinForTheCaptain) == 1 and HasCompletedQuest(Spawn, CaptainSays) == false then
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  21. AddConversationOption(conversation, "Um, Dockmaster Highpebble wanted me to give you this sack of coin. I believe it's the week's pay for your crew.", "dlg_4_1")
  22. AddConversationOption(conversation, "Hmm, perhaps I should come back another time...")
  23. StartConversation(conversation, NPC, Spawn, "Yarr! An' after I asked if he wanted ta kiss the captain's daughter, he closed his eyes an' puckered up. Well, naturally I let the cat out o' the bag then! Har har har...")
  24. elseif HasQuest (Spawn, CoinForTheCaptain) == true and GetQuestStep(Spawn, CoinForTheCaptain) == 1 and HasCompletedQuest(Spawn, CaptainSays) == true then
  25. SetStepComplete(Spawn, CoinForTheCaptain, 1)
  26. SetStepComplete(Spawn, CoinForTheCaptain, 2)
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "Um, Dockmaster Highpebble wanted me to give you this sack of coin. I believe it's the week's pay for your crew.")
  29. AddConversationOption(conversation, "Hmm, perhaps I should come back another time...")
  30. StartConversation(conversation, NPC, Spawn, "Yarr! An' after I asked if he wanted ta kiss the captain's daughter, he closed his eyes an' puckered up. Well, naturally I let the cat out o' the bag then! Har har har...")
  31. elseif HasQuest (Spawn, CaptainSays) == false and GetQuestStep(Spawn, CoinForTheCaptain) == 2 and HasCompletedQuest(Spawn, CaptainSays) == false and HasQuest(Spawn, CaptainSays) == false then
  32. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  33. AddConversationOption(conversation, "Um, Dockmaster Highpebble wanted me to give you this sack of coin. I believe it's the week's pay for your crew.", "dlg_4_1_b")
  34. AddConversationOption(conversation, "Hmm, perhaps I should come back another time...")
  35. StartConversation(conversation, NPC, Spawn, "Yarr! An' after I asked if he wanted ta kiss the captain's daughter, he closed his eyes an' puckered up. Well, naturally I let the cat out o' the bag then! Har har har...")
  36. elseif HasQuest(Spawn, CaptainSays) == true and GetQuestStep(Spawn, CaptainSays) <= 3 then
  37. Say(NPC, "Arrrr you sure you spoke with all me crew yet, matey?")
  38. elseif HasQuest(Spawn, CaptainSays) and GetQuestStep(Spawn, CaptainSays) == 4 then
  39. SetStepComplete(Spawn, CaptainSays, 4)
  40. SetStepComplete(Spawn, CoinForTheCaptain, 2)
  41. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  42. AddConversationOption(conversation, "Uh, Cap'n? There is the small matter of the gold you promised to pay me...", "dlg_9_1")
  43. StartConversation(conversation, NPC, Spawn, "Ahoy ye return! Me hearties 'ave all reported in an are ready to work. We'll be on the trail of that salty dog, Blackguard the Pirate in no time! No quarter for 'im! Har har! Now, where's me ship at...")
  44. elseif HasQuest(Spawn, CoinForTheCaptain) == false and HasCompletedQuest(Spawn, CaptainSays) == true then
  45. Say(NPC, "Your days are numbered, Pirate Blackguard! Soon as the ship is ready, I'm settin' out find ye! Yarrr!!!")
  46. else
  47. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1048.mp3", "", "", 0, 0, Spawn)
  48. AddConversationOption(conversation, "Riiiight.")
  49. StartConversation(conversation, NPC, Spawn, "Yarr! An' after I asked if he wanted ta kiss the captain's daughter, he closed his eyes an' puckered up. Well, naturally I let the cat out o' the bag then! Har har har...")
  50. end
  51. end
  52. function dlg_4_1(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. SetStepComplete(Spawn, CoinForTheCaptain, 1)
  56. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  57. AddConversationOption(conversation, "Who? I'm not Bosun Oxeye. You must have me confused with someone else.", "dlg_4_2")
  58. StartConversation(conversation, NPC, Spawn, "Bosun Oxeye is that you? We be needin' to prepare the Terror of Timorous for launch if'n we ever hope ta catch that scurvy dog! Gather the other lads an' tell 'em we be fixin' to weigh anchor handsomely!")
  59. end
  60. function dlg_4_1_b(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  64. AddConversationOption(conversation, "Who? I'm not Bosun Oxeye. You must have me confused with someone else.", "dlg_4_2")
  65. StartConversation(conversation, NPC, Spawn, "Bosun Oxeye is that you? We be needin' to prepare the Terror of Timorous for launch if'n we ever hope ta catch that scurvy dog! Gather the other lads an' tell 'em we be fixin' to weigh anchor handsomely!")
  66. end
  67. function dlg_4_1_c(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. SetStepComplete(Spawn, CoinForTheCaptain, 1)
  71. SetStepComplete(Spawn, CoinForTheCaptain, 2)
  72. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  73. AddConversationOption(conversation, "Who? I'm not Bosun Oxeye. You must have me confused with someone else.", "dlg_4_2")
  74. StartConversation(conversation, NPC, Spawn, "Bosun Oxeye is that you? We be needin' to prepare the Terror of Timorous for launch if'n we ever hope ta catch that scurvy dog! Gather the other lads an' tell 'em we be fixin' to weigh anchor handsomely!")
  75. end
  76. function dlg_4_2(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  80. AddConversationOption(conversation, "My week's pay? Oh, well of course, Captain. What are your orders?", "GiveCaptainSays")
  81. AddConversationOption(conversation, "I really don't have time for this.")
  82. StartConversation(conversation, NPC, Spawn, "You keep talkin' like that an' ye'll meet the rope's end of me togey, bucko! Now, I need you to gather up the crew and deliver their next orders. As soon as the ships been givin' a clean bill o' health I want 'em on board at workin' smartly! Do that an' you'll get yer week's pay 'ere.")
  83. end
  84. function dlg_4_3(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  88. AddConversationOption(conversation, "Alright, next?", "dlg_4_4")
  89. StartConversation(conversation, NPC, Spawn, "Go seek out me crew members. First I want ye ta tell Bimine Bowchaser to flemish down the boat falls an' be sure all the lines are coiled correctly!")
  90. end
  91. function dlg_4_4(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  95. AddConversationOption(conversation, "OK. Who's next?", "dlg_4_5")
  96. StartConversation(conversation, NPC, Spawn, "Next find that jack tar, Mizzen Staysail. Tell that lil one to knock off the bright work an' clamp down the deck!")
  97. end
  98. function dlg_4_5(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  102. AddConversationOption(conversation, "Got it! I'll tell them right away!")
  103. AddConversationOption(conversation, "Wait, I have a question about your crew's orders.", "dlg_4_3")
  104. StartConversation(conversation, NPC, Spawn, "Finally, look for that lass, Tally Topgallant. Tell her ta lash up an' stow afore she batten down the hatches!")
  105. end
  106. function dlg_9_1(NPC, Spawn)
  107. FaceTarget(NPC, Spawn)
  108. conversation = CreateConversation()
  109. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  110. AddConversationOption(conversation, "Um... Aye aye, Cap'n?")
  111. AddConversationOption(conversation, "Really, I'm not Bosun Oxeye!")
  112. StartConversation(conversation, NPC, Spawn, "At ease there, Bosun. 'Ere be your share 'o the booty. Don' go spendin' all on one port now. Just make sure you report back in time for your turn in the dogwatch!")
  113. end
  114. function GiveCaptainSays(NPC, Spawn)
  115. OfferQuest(NPC, Spawn, CaptainSays)
  116. end