9
3

TiffSqueelunkle.lua 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/TiffSqueelunkle.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.01.06 02:01:07
  5. Script Purpose :
  6. :
  7. --]]
  8. local SmugglersSecrets = 452
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, SmugglersSecrets)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, SmugglersSecrets) and not HasCompletedQuest(Spawn, SmugglersSecrets) then
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1019.mp3", "", "clap", 0, 0, Spawn)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "What are you going on about?", "dlg1")
  19. AddConversationOption(conversation, "Perfect fit for what, little bit?", "dlg1")
  20. AddConversationOption(conversation, "I don't think so.")
  21. StartConversation(conversation, NPC, Spawn, "You are a perfect fit! No doubt of that cog being wrong sized, nuh uh.")
  22. elseif HasQuest(Spawn, SmugglersSecrets) and GetQuestStep(Spawn, SmugglersSecrets) == 1 then
  23. dlg5(NPC, Spawn)
  24. elseif HasQuest(Spawn, SmugglersSecrets) and GetQuestStep(Spawn, SmugglersSecrets) == 2 or GetQuestStep(Spawn, SmugglersSecrets) == 4 then
  25. PlayFlavor(NPC, "", "Quick! Do as I asked before they catch on to us!", "", 1689589577, 4560189, Spawn)
  26. elseif GetQuestStep(Spawn, SmugglersSecrets) == 3 then
  27. dlg7(NPC, Spawn)
  28. elseif GetQuestStep(Spawn, SmugglersSecrets) == 5 then
  29. dlg16(NPC, Spawn)
  30. end
  31. end
  32. function dlg1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "I have no doubt.", "dlg2")
  36. AddConversationOption(conversation, "Anyway, as you were saying...")
  37. StartConversation(conversation, NPC, Spawn, "I have need of you! I'm a member of the Seafury Buccaneers, and we... I know what you're thinking, but I am very useful at sea! Any mechanical whos-its break down durin' travel and Tiff is on it like stink on a sewer rat.")
  38. end
  39. function dlg2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. PlayAnimation(NPC, 11882)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "Wait! What am I doing?", "dlg3")
  44. AddConversationOption(conversation, "I never agreed to anything.")
  45. StartConversation(conversation, NPC, Spawn, "Uh... Oh, yes. You're useful 'n smart! we're to investigate these smugglers 'ere and see what and who is behind their recent growth in number 'n purse. 'Nfringin' on our teritry, they are. I have the clothes of a courier 'ere for you to wear when you go in.")
  46. end
  47. function dlg3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "You have two hands.", "dlg4")
  51. AddConversationOption(conversation, "So what should I be looking for?", "offer")
  52. AddConversationOption(conversation, "You need to find someone else.")
  53. StartConversation(conversation, NPC, Spawn, "Huh? Keep up 'ere! I need you to go to the smuggler's camp. I'll reward you, naturally. I promise! Break my gears, and curse my mind! It's just that I've been spotted by 'em several times snoopin' around 'n if I get snagged again they'll sure as Prexxus take my other hand, too!")
  54. end
  55. function dlg4(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. AddConversationOption(conversation, "Uh, kaaay. So what should I be looking for?", "offer")
  59. AddConversationOption(conversation, "Wow. You're confused.")
  60. StartConversation(conversation, NPC, Spawn, "Do not distract me from the matter. You're the one that wanted to help me!")
  61. end
  62. function dlg5(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. SetStepComplete(Spawn, SmugglersSecrets, 1)
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "I'll see what I can find.", "dlg6")
  67. AddConversationOption(conversation, "I'm not promising anything.")
  68. StartConversation(conversation, NPC, Spawn, "Now wear this outfit so they will not suspect you. They are the clothes of the last courier to have come through. Careful, they're worn through in parts.")
  69. end
  70. function dlg6(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. AddConversationOption(conversation, "Oh, I will!")
  74. StartConversation(conversation, NPC, Spawn, "Make sure to be wearing the courier costume when you snoop about at the smuggler's outpost, ".. GetName(Spawn) .. ".")
  75. end
  76. function dlg7(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1019.mp3", "", "", 0, 0, Spawn)
  79. conversation = CreateConversation()
  80. AddConversationOption(conversation, "The Blackshield entrance exam must be hands on.", "dlg8")
  81. AddConversationOption(conversation, "I found I am a natural at spying.", "dlg9")
  82. StartConversation(conversation, NPC, Spawn, "Back all ready!? What 'cha find?")
  83. end
  84. function dlg8(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. AddConversationOption(conversation, "They thought I was the courier and gave me this scroll.", "dlg10")
  88. StartConversation(conversation, NPC, Spawn, "Har, har! Not the thickest planks of the boat, that's fer sure!")
  89. end
  90. function dlg9(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. AddConversationOption(conversation, "They thought I was the courier and gave me this scroll.", "dlg10")
  94. StartConversation(conversation, NPC, Spawn, "I knew it! What have you for me?")
  95. end
  96. function dlg10(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. AddConversationOption(conversation, "Do with it? Read it! Can't you open it?", "dlg11")
  100. StartConversation(conversation, NPC, Spawn, "Oh, what luck! I hadn't expected this. Too good! What are you to do with it?")
  101. end
  102. function dlg11(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. AddConversationOption(conversation, "Deliver it to someone at Pride Lake.", "dlg12")
  106. StartConversation(conversation, NPC, Spawn, "No. It's magically sealed, and if broken the scroll will combust. What did they want you to do with it?")
  107. end
  108. function dlg12(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. AddConversationOption(conversation, "What's tracking powder?", "dlg14")
  112. AddConversationOption(conversation, "You want me to continue acting as courier?", "dlg13")
  113. StartConversation(conversation, NPC, Spawn, "Too good, 'ndeed! 'Ere let me sprinkle it with tracking powder, and then deliver it.")
  114. end
  115. function dlg13(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. AddConversationOption(conversation, "That's useful.", "dlg15")
  119. StartConversation(conversation, NPC, Spawn, "Yes! And now we can track the scroll to its final destination.")
  120. end
  121. function dlg14(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. AddConversationOption(conversation, "That's useful.", "dlg15")
  125. StartConversation(conversation, NPC, Spawn, "A magical concoction that will allow us to track the scroll to its destination.")
  126. end
  127. function dlg15(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. SetStepComplete(Spawn, SmugglersSecrets, 3)
  130. conversation = CreateConversation()
  131. AddConversationOption(conversation, "I'm going.")
  132. StartConversation(conversation, NPC, Spawn, "Quite, quite. Now 'urry along, less we miss our chance!")
  133. end
  134. function dlg16(NPC, Spawn)
  135. FaceTarget(NPC, Spawn)
  136. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1019.mp3", "", "", 0, 0, Spawn)
  137. conversation = CreateConversation()
  138. AddConversationOption(conversation, "Don't break a gasket. I gave the scroll to the dark elf that showed up.", "dlg17")
  139. StartConversation(conversation, NPC, Spawn, "Do tell, do tell! What 'appened?")
  140. end
  141. function dlg17(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. SetStepComplete(Spawn, SmugglersSecrets, 5)
  144. conversation = CreateConversation()
  145. AddConversationOption(conversation, "Thank you.")
  146. StartConversation(conversation, NPC, Spawn, "Excellent! 'Ere. Take this for your troubles.")
  147. end
  148. function offer(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. OfferQuest(NPC, Spawn, SmugglersSecrets)
  151. end
  152. function respawn(NPC)
  153. spawn(NPC)
  154. end
  155. function InRange(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. if not HasQuest(Spawn, SmugglersSecrets) then
  158. PlayFlavor(NPC, "", "Psst! You there! C'mere and give me a hand.", "", 1689589577, 4560189, Spawn)
  159. end
  160. end
  161. function LeaveRange(NPC, Spawn)
  162. end