9
3

TiffSqueelunkle.lua 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  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. local CratesOnTheNerves = 453
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, SmugglersSecrets)
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if not HasQuest(Spawn, SmugglersSecrets) and not HasCompletedQuest(Spawn, SmugglersSecrets) then
  17. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1019.mp3", "", "clap", 0, 0, Spawn)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "What are you going on about?", "dlg1")
  20. AddConversationOption(conversation, "Perfect fit for what, little bit?", "dlg1")
  21. AddConversationOption(conversation, "I don't think so.")
  22. StartConversation(conversation, NPC, Spawn, "You are a perfect fit! No doubt of that cog being wrong sized, nuh uh.")
  23. elseif HasQuest(Spawn, SmugglersSecrets) and GetQuestStep(Spawn, SmugglersSecrets) == 1 then
  24. dlg5(NPC, Spawn)
  25. elseif HasQuest(Spawn, SmugglersSecrets) and GetQuestStep(Spawn, SmugglersSecrets) == 2 or GetQuestStep(Spawn, SmugglersSecrets) == 4 or GetQuestStep(Spawn, CratesOnTheNerves) == 3 or GetQuestStep(Spawn, CratesOnTheNerves) == 12 then
  26. PlayFlavor(NPC, "", "Quick! Do as I asked before they catch on to us!", "", 1689589577, 4560189, Spawn)
  27. elseif GetQuestStep(Spawn, SmugglersSecrets) == 3 then
  28. dlg7(NPC, Spawn)
  29. elseif GetQuestStep(Spawn, SmugglersSecrets) == 5 then
  30. dlg16(NPC, Spawn)
  31. elseif HasCompletedQuest(Spawn, SmugglersSecrets) and not HasQuest(Spawn, CratesOnTheNerves) and not HasCompletedQuest(Spawn, CratesOnTheNerves) then
  32. conversation = CreateConversation()
  33. AddConversationOption(conversation, "Oh, good. More work.", "dlg2_1")
  34. AddConversationOption(conversation, "And there's something I can do, right?", "dlg_2_1")
  35. StartConversation(conversation, NPC, Spawn, "Now we can track the scroll to 'elp us learn who is involved, but there's more gears turnin' in this clockwork then meets the eye.")
  36. elseif GetQuestStep(Spawn, CratesOnTheNerves) == 1 then
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "Sounds easy enough.")
  39. StartConversation(conversation, NPC, Spawn, "Get me five wisp embers to make the potion, and we'll be all set.")
  40. elseif GetQuestStep(Spawn, CratesOnTheNerves) == 4 then
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "I just got better at infiltration (134/180).", "OPTION1")
  43. AddConversationOption(conversation, "I didn't mean to.", "OPTION1")
  44. AddConversationOption(conversation, "I think you were just distracted.", "OPTION1")
  45. StartConversation(conversation, NPC, Spawn, "Ack! You startled me! Don't you know better than to sneak up on someone?!")
  46. elseif GetQuestStep(Spawn, CratesOnTheNerves) == 2 then
  47. dlg2_3(NPC, Spawn)
  48. elseif GetQuestStep(Spawn, CratesOnTheNerves) == 5 or GetQuestStep(Spawn, CratesOnTheNerves) == 6 or GetQuestStep(Spawn, CratesOnTheNerves) == 7 or GetQuestStep(Spawn, CratesOnTheNerves) == 8 or GetQuestStep(Spawn, CratesOnTheNerves) == 9 or GetQuestStep(Spawn, CratesOnTheNerves) == 10 then
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "Oh, I will!")
  51. StartConversation(conversation, NPC, Spawn, "Make sure to use the map I gave you to follow the crates around, "..GetName(Spawn)..".")
  52. PlayAnimation(NPC, 12216)
  53. elseif GetQuestStep(Spawn, CratesOnTheNerves) == 11 then
  54. dlg2_5(NPC, Spawn)
  55. elseif GetQuestStep(Spawn, CratesOnTheNerves) == 13 then
  56. PlayAnimation(NPC, 12030)
  57. conversation = CreateConversation()
  58. AddConversationOption(conversation, "I did. I heard more interesting bits.", "dlg3_3")
  59. StartConversation(conversation, NPC, Spawn, "Did'n you find somethin'? Anythin'?")
  60. elseif HasCompletedQuest(Spawn, SmugglersSecrets) and HasCompletedQuest(Spawn, CratesOnTheNerves) then
  61. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1019.mp3", "I appreciated your 'elp investigatin' the Smuggler's activities.", "", 0, 0, Spawn)
  62. end
  63. end
  64. function dlg1(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. AddConversationOption(conversation, "I have no doubt.", "dlg2")
  68. AddConversationOption(conversation, "Anyway, as you were saying...")
  69. 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.")
  70. end
  71. function dlg2(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. PlayAnimation(NPC, 11882)
  74. conversation = CreateConversation()
  75. AddConversationOption(conversation, "Wait! What am I doing?", "dlg3")
  76. AddConversationOption(conversation, "I never agreed to anything.")
  77. 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.")
  78. end
  79. function dlg3(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. AddConversationOption(conversation, "You have two hands.", "dlg4")
  83. AddConversationOption(conversation, "So what should I be looking for?", "offer")
  84. AddConversationOption(conversation, "You need to find someone else.")
  85. 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!")
  86. end
  87. function dlg4(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. AddConversationOption(conversation, "Uh, kaaay. So what should I be looking for?", "offer")
  91. AddConversationOption(conversation, "Wow. You're confused.")
  92. StartConversation(conversation, NPC, Spawn, "Do not distract me from the matter. You're the one that wanted to help me!")
  93. end
  94. function dlg5(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. SetStepComplete(Spawn, SmugglersSecrets, 1)
  97. conversation = CreateConversation()
  98. AddConversationOption(conversation, "I'll see what I can find.", "dlg6")
  99. AddConversationOption(conversation, "I'm not promising anything.")
  100. 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.")
  101. end
  102. function dlg6(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. AddConversationOption(conversation, "Oh, I will!")
  106. StartConversation(conversation, NPC, Spawn, "Make sure to be wearing the courier costume when you snoop about at the smuggler's outpost, ".. GetName(Spawn) .. ".")
  107. end
  108. function dlg7(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1019.mp3", "", "", 0, 0, Spawn)
  111. conversation = CreateConversation()
  112. AddConversationOption(conversation, "The Blackshield entrance exam must be hands on.", "dlg8")
  113. AddConversationOption(conversation, "I found I am a natural at spying.", "dlg9")
  114. StartConversation(conversation, NPC, Spawn, "Back all ready!? What 'cha find?")
  115. end
  116. function dlg8(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. AddConversationOption(conversation, "They thought I was the courier and gave me this scroll.", "dlg10")
  120. StartConversation(conversation, NPC, Spawn, "Har, har! Not the thickest planks of the boat, that's fer sure!")
  121. end
  122. function dlg9(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. AddConversationOption(conversation, "They thought I was the courier and gave me this scroll.", "dlg10")
  126. StartConversation(conversation, NPC, Spawn, "I knew it! What have you for me?")
  127. end
  128. function dlg10(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. conversation = CreateConversation()
  131. AddConversationOption(conversation, "Do with it? Read it! Can't you open it?", "dlg11")
  132. StartConversation(conversation, NPC, Spawn, "Oh, what luck! I hadn't expected this. Too good! What are you to do with it?")
  133. end
  134. function dlg11(NPC, Spawn)
  135. FaceTarget(NPC, Spawn)
  136. conversation = CreateConversation()
  137. AddConversationOption(conversation, "Deliver it to someone at Pride Lake.", "dlg12")
  138. 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?")
  139. end
  140. function dlg12(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. AddConversationOption(conversation, "What's tracking powder?", "dlg14")
  144. AddConversationOption(conversation, "You want me to continue acting as courier?", "dlg13")
  145. StartConversation(conversation, NPC, Spawn, "Too good, 'ndeed! 'Ere let me sprinkle it with tracking powder, and then deliver it.")
  146. end
  147. function dlg13(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. AddConversationOption(conversation, "That's useful.", "dlg15")
  151. StartConversation(conversation, NPC, Spawn, "Yes! And now we can track the scroll to its final destination.")
  152. end
  153. function dlg14(NPC, Spawn)
  154. FaceTarget(NPC, Spawn)
  155. conversation = CreateConversation()
  156. AddConversationOption(conversation, "That's useful.", "dlg15")
  157. StartConversation(conversation, NPC, Spawn, "A magical concoction that will allow us to track the scroll to its destination.")
  158. end
  159. function dlg15(NPC, Spawn)
  160. FaceTarget(NPC, Spawn)
  161. SetStepComplete(Spawn, SmugglersSecrets, 3)
  162. conversation = CreateConversation()
  163. AddConversationOption(conversation, "I'm going.")
  164. StartConversation(conversation, NPC, Spawn, "Quite, quite. Now 'urry along, less we miss our chance!")
  165. end
  166. function dlg16(NPC, Spawn)
  167. FaceTarget(NPC, Spawn)
  168. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1019.mp3", "", "", 0, 0, Spawn)
  169. conversation = CreateConversation()
  170. AddConversationOption(conversation, "Don't break a gasket. I gave the scroll to the dark elf that showed up.", "dlg17")
  171. StartConversation(conversation, NPC, Spawn, "Do tell, do tell! What 'appened?")
  172. end
  173. function dlg17(NPC, Spawn)
  174. FaceTarget(NPC, Spawn)
  175. SetStepComplete(Spawn, SmugglersSecrets, 5)
  176. conversation = CreateConversation()
  177. AddConversationOption(conversation, "Thank you.")
  178. StartConversation(conversation, NPC, Spawn, "Excellent! 'Ere. Take this for your troubles.")
  179. end
  180. function dlg2_1(NPC, Spawn)
  181. FaceTarget(NPC, Spawn)
  182. local conversation = CreateConversation()
  183. AddConversationOption(conversation, "I hear a task coming on.", "dlg2_2")
  184. AddConversationOption(conversation, "Let me guess, i can get you some.", "dlg2_2")
  185. StartConversation(conversation, NPC, Spawn, "Aye, there is! What's bein' shipped, where? What dark elves wanna help others? Trackin' the items is key! 'Cept, it's too bad I'm out of the trackin' powder.")
  186. end
  187. function dlg2_2(NPC, Spawn)
  188. FaceTarget(NPC, Spawn)
  189. local conversation = CreateConversation()
  190. AddConversationOption(conversation, "I can do that.", "offer2")
  191. AddConversationOption(conversation, "I'm gonna pass on that one")
  192. StartConversation(conversation, NPC, Spawn, "Sassy! Talk'n like that is how I lost my tongue, you know. At sea, they don't take kindly to such. Wait! You could get me sa' more. Good idea!")
  193. end
  194. function dlg2_3(NPC, Spawn)
  195. FaceTarget(NPC, Spawn)
  196. local conversation = CreateConversation()
  197. AddConversationOption(conversation, "I do.", "dlg2_4")
  198. AddConversationOption(conversation, "I have not let you down.")
  199. StartConversation(conversation, NPC, Spawn, "I 'ave the potion all set. You've got the wisp embers?")
  200. end
  201. function dlg2_4(NPC, Spawn)
  202. SetStepComplete(Spawn, CratesOnTheNerves, 2)
  203. FaceTarget(NPC, Spawn)
  204. local conversation = CreateConversation()
  205. AddConversationOption(conversation, "Yeah, yeah. I got it.")
  206. AddConversationOption(conversation, "Dawdle...heh heh.")
  207. StartConversation(conversation, NPC, Spawn, "Good, good! There we go. Now take this pouch of trackin' powder, and sprinkle it on any of 'em empty crates that are in the Blackshield Smugglers' outpost. 'Urry now. Don't dawdle!")
  208. end
  209. function dlg2_5(NPC, Spawn)
  210. FaceTarget(NPC, Spawn)
  211. local conversation = CreateConversation()
  212. AddConversationOption(conversation, "No... Just went on a wild crate chase across the Commonlands.", "dlg2_6")
  213. StartConversation(conversation, NPC, Spawn, "You seem a wee out'a breath. Somethin' wrong?")
  214. end
  215. function dlg2_6(NPC, Spawn)
  216. FaceTarget(NPC, Spawn)
  217. local conversation = CreateConversation()
  218. AddConversationOption(conversation, "The crates were taken near Fallen Gate where Thexians were excavating and filling the crates with gemstones and sellable ores.", "dlg2_7")
  219. StartConversation(conversation, NPC, Spawn, "Do tell! Where did the crates end up? What did you finds?")
  220. end
  221. function dlg2_7(NPC, Spawn)
  222. FaceTarget(NPC, Spawn)
  223. local conversation = CreateConversation()
  224. PlayAnimation(NPC, 12030)
  225. AddConversationOption(conversation, "Seems that isn't the case anymore.", "dlg2_8")
  226. StartConversation(conversation, NPC, Spawn, "Hmm. That is curious. I was of thinkin' that they were only in Nektulos.")
  227. end
  228. function dlg2_8(NPC, Spawn)
  229. FaceTarget(NPC, Spawn)
  230. local conversation = CreateConversation()
  231. AddConversationOption(conversation, "It made its way to the Longshadow Alley district of Freeport.", "dlg2_9")
  232. StartConversation(conversation, NPC, Spawn, "What of the scroll? What's the map show you of it?")
  233. end
  234. function dlg2_9(NPC, Spawn)
  235. FaceTarget(NPC, Spawn)
  236. local conversation = CreateConversation()
  237. AddConversationOption(conversation, "I have no further use for it.", "dlg3_0")
  238. AddConversationOption(conversation, "Sure.", "dlg3_0")
  239. StartConversation(conversation, NPC, Spawn, "Longshadow Alley? What could be there? Lemme see the map.")
  240. end
  241. function dlg3_0(NPC, Spawn)
  242. FaceTarget(NPC, Spawn)
  243. local conversation = CreateConversation()
  244. AddConversationOption(conversation, "That is where the map last showed it.", "dlg3_1")
  245. AddConversationOption(conversation, "Yeah. I'm certain.", "dlg3_1")
  246. StartConversation(conversation, NPC, Spawn, "You sure it was in Longshadow Alley? It is gone now!")
  247. end
  248. function dlg3_1(NPC, Spawn)
  249. FaceTarget(NPC, Spawn)
  250. local conversation = CreateConversation()
  251. AddConversationOption(conversation, "I know. I know. I'll go check'em out.", "dlg3_2")
  252. AddConversationOption(conversation, "And you want me to go snoop some more.", "dlg3_2")
  253. StartConversation(conversation, NPC, Spawn, "Spell must have been brok'n or the scroll destroyed. Oh, lookee! The crates are back at the smugglin' dock. What luck!")
  254. end
  255. function dlg3_2(NPC, Spawn)
  256. PlayAnimation(NPC, 11286)
  257. SetStepComplete(Spawn, CratesOnTheNerves, 11)
  258. FaceTarget(NPC, Spawn)
  259. local conversation = CreateConversation()
  260. AddConversationOption(conversation, "Well, don't")
  261. AddConversationOption(conversation, "What if i were?")
  262. AddConversationOption(conversation, "Qeynos. What a joke.")
  263. StartConversation(conversation, NPC, Spawn, "Oh, wonderful idea! I'm almost thinkin' you from Qeynos the way you are so obligin'.")
  264. end
  265. function dlg3_3(NPC, Spawn)
  266. FaceTarget(NPC, Spawn)
  267. local conversation = CreateConversation()
  268. AddConversationOption(conversation, "The Thexians are sending the crates back with gems and ore to the smugglers. They then sell the goods. That is the contract.", "dlg3_4")
  269. StartConversation(conversation, NPC, Spawn, "Stop with the suspense!")
  270. end
  271. function dlg3_4(NPC, Spawn)
  272. PlayAnimation(NPC, 12030)
  273. FaceTarget(NPC, Spawn)
  274. local conversation = CreateConversation()
  275. AddConversationOption(conversation, "What would the Thexians gain?", "dlg3_5")
  276. AddConversationOption(conversation, "I can't make sense of it.", "dlg3_5")
  277. StartConversation(conversation, NPC, Spawn, "Wha? Then they are fundin' the smugglin' with the shipments, themselves. Payment is the shipment of gems 'n ore.")
  278. end
  279. function dlg3_5(NPC, Spawn)
  280. FaceTarget(NPC, Spawn)
  281. local conversation = CreateConversation()
  282. AddConversationOption(conversation, "Does that help you?", "dlg3_6")
  283. AddConversationOption(conversation, "Doesn't mean I'm interested.", "dlg3_6")
  284. StartConversation(conversation, NPC, Spawn, "Oh! So sneaky. They been fundin' the smugglers as a diversion. That is why we had not realized their growth and activities in the Commonlands!")
  285. end
  286. function dlg3_6(NPC, Spawn)
  287. FaceTarget(NPC, Spawn)
  288. local conversation = CreateConversation()
  289. AddConversationOption(conversation, "Good. Then you can afford to pay me for my services.", "quest2_complete")
  290. StartConversation(conversation, NPC, Spawn, "We Buccaneers may be able to break in on this 'n extract a bit of that profit. Either by attacks at sea or by gettin' protection taxes from the smugglers themselves, now that we know the plans, too.")
  291. end
  292. function quest2_complete(NPC, Spawn)
  293. FaceTarget(NPC, Spawn)
  294. SetStepComplete(Spawn, CratesOnTheNerves, 13)
  295. local conversation = CreateConversation()
  296. AddConversationOption(conversation, "Right you are.")
  297. StartConversation(conversation, NPC, Spawn, "I know, ya' rapscallion! Here is the payment. You earned it.")
  298. end
  299. function OPTION1(NPC, Spawn)
  300. FaceTarget(NPC, Spawn)
  301. local conversation = CreateConversation()
  302. AddConversationOption(conversation, "You're not going to ask me to follow it, are you?", "OPTION2")
  303. AddConversationOption(conversation, "Back to the city. That's interesting.", "OPTION3")
  304. StartConversation(conversation, NPC, Spawn, "Didn't mean to jump. I think I was just distracted. I was busy watchin' the scroll you delivered earlier. So far, it's traveled southeast followin' the river towards Freeport.")
  305. end
  306. function OPTION2(NPC, Spawn)
  307. FaceTarget(NPC, Spawn)
  308. local conversation = CreateConversation()
  309. AddConversationOption(conversation, "That's interesting, too. Where am I going?", "OPTION5")
  310. StartConversation(conversation, NPC, Spawn, "No, no. Silly. I'll keep my good eye on that while you're gone.")
  311. end
  312. function OPTION3(NPC, Spawn)
  313. FaceTarget(NPC, Spawn)
  314. PlayAnimation(NPC, 10745)
  315. local conversation = CreateConversation()
  316. AddConversationOption(conversation, "That's interesting, too. Where am I going?", "OPTION5")
  317. StartConversation(conversation, NPC, Spawn, "Yes. I must keep my good eye on that while you're gone.")
  318. end
  319. function OPTION4(NPC, Spawn)
  320. FaceTarget(NPC, Spawn)
  321. local conversation = CreateConversation()
  322. AddConversationOption(conversation, "Okay, but then you cannot track the scroll.", "Option15")
  323. StartConversation(conversation, NPC, Spawn, "Don't know. But the map does! Follow the crates' movement and see where they go. Here, you take the map.")
  324. end
  325. function OPTION5(NPC, Spawn)
  326. SetStepComplete(Spawn, CratesOnTheNerves, 4)
  327. FaceTarget(NPC, Spawn)
  328. local conversation = CreateConversation()
  329. AddConversationOption(conversation, "I had to ask. Okay. I'll be back.")
  330. StartConversation(conversation, NPC, Spawn, "Oh... No matter! You can keep an eye on it as you follow the crates.")
  331. end
  332. -- QUEST OFFER FUNCTIONS
  333. function offer(NPC, Spawn)
  334. FaceTarget(NPC, Spawn)
  335. OfferQuest(NPC, Spawn, SmugglersSecrets)
  336. end
  337. function offer2(NPC, Spawn)
  338. FaceTarget(NPC, Spawn)
  339. OfferQuest(NPC, Spawn, CratesOnTheNerves)
  340. end
  341. function respawn(NPC)
  342. spawn(NPC)
  343. end
  344. -- FOR CORRECT DISPLAY OF QUEST FEATHER ICON ABOVE NPC HEAD
  345. function InRange(NPC, Spawn)
  346. FaceTarget(NPC, Spawn)
  347. if not HasQuest(Spawn, SmugglersSecrets) then
  348. ProvidesQuest(NPC, SmugglersSecrets)
  349. elseif HasCompletedQuest(Spawn, SmugglersSecrets) and not HasQuest(Spawn, CratesOnTheNerves) and not HasCompletedQuest(Spawn, CratesOnTheNerves) then
  350. ProvidesQuest(NPC, CratesOnTheNerves)
  351. PlayFlavor(NPC, "", "Psst! You there! C'mere and give me a hand.", "", 1689589577, 4560189, Spawn)
  352. end
  353. end
  354. function LeaveRange(NPC, Spawn)
  355. end