9
3

Nethet.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Nethet.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.11.16 09:11:28
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheMysteriousMissingShipment = 421
  9. local AFriendInNeed = 422
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, AFriendInNeed)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. if HasQuest(Spawn, TheMysteriousMissingShipment) and GetQuestStep(Spawn, TheMysteriousMissingShipment) == 1 or GetQuestStep(Spawn, TheMysteriousMissingShipment) == 2 and not HasQuest(Spawn, AFriendInNeed) and not HasCompletedQuest(Spawn, AFriendInNeed) then
  17. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet001.mp3", "", "", 2714946193, 3558471860, Spawn)
  18. AddConversationOption(conversation, "Brandus sent me to talk to you about a missing shipment of his. Do you know anything about it?", "dlg1")
  19. AddConversationOption(conversation, "Nothing right now, Nethet.")
  20. StartConversation(conversation, NPC, Spawn, "Yous comes to Nethet to speaks of things yes? What's it that you wants to knows?")
  21. elseif HasCompletedQuest(Spawn, AFriendInNeed) and GetQuestStep(Spawn, TheMysteriousMissingShipment) == 2 then
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet015.mp3", "", "", 1826974413, 3018739056, Spawn)
  25. AddConversationOption(conversation, "What did you find out?", "dlg10")
  26. AddConversationOption(conversation, "I'm not interested in any information you have anymore. Good day.", "dlg10")
  27. StartConversation(conversation, NPC, Spawn, "I remembers what yous lookings for. Yes, I keeps promises, bad for businesses not to. I spoke to manys contacts and finds information on your friends missings cargo.")
  28. elseif GetQuestStep(Spawn, TheMysteriousMissingShipment) == 3 then
  29. FaceTarget(NPC, Spawn)
  30. dlg12(NPC, Spawn)
  31. elseif GetQuestStep(Spawn, AFriendInNeed) == 3 then
  32. AddConversationOption(conversation, "I found him. Nikora was being hunted by some assassins the Blackshield smugglers had sent after him.", "dlg6")
  33. AddConversationOption(conversation, "Nothing yet, I'll be back when I find him.")
  34. StartConversation(conversation, NPC, Spawn, "Yous is back. Whats did you learn of my friend?")
  35. elseif GetQuestStep(Spawn, AFriendInNeed) == 1 or GetQuestStep(Spawn, AFriendInNeed) == 2 then
  36. AddConversationOption(conversation, "Nothing yet, I'll be back when I find him.")
  37. StartConversation(conversation, NPC, Spawn, "Yous is back. Whats did you learn of my friend?")
  38. elseif HasQuest(Spawn, AFriendInNeed) and GetQuestStep(Spawn, AFriendInNeed) == 4 or GetQuestStep(Spawn, AFriendInNeed) == 5 then
  39. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1032.mp3", "", "", 0, 0, Spawn)
  40. elseif GetQuestStep(Spawn, AFriendInNeed) == 6 then
  41. AddConversationOption(conversation, "You little liar you nearly got me killed!", "dlg8")
  42. AddConversationOption(conversation, "What kind of a fool do you think I am? Jereth's thugs nearly killed me!", "dlg8")
  43. AddConversationOption(conversation, "Nothing as of yet, I still need to deliver the message.")
  44. StartConversation(conversation, NPC, Spawn, "It's good to see yous again, whats did Jereth have to say about my offers?")
  45. end
  46. end
  47. function dlg1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. if HasQuest(Spawn, TheMysteriousMissingShipment) and GetQuestStep(Spawn, TheMysteriousMissingShipment) == 1 then
  50. SetStepComplete(Spawn, TheMysteriousMissingShipment, 1)
  51. end
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet002.mp3", "", "", 1863394625, 442531621 , Spawn)
  54. AddConversationOption(conversation, "Who do you think took the cargo? Brandus said you might know.", "dlg2")
  55. AddConversationOption(conversation, "Who was he dealing with? That might give me a starting point.", "dlg3")
  56. AddConversationOption(conversation, "I've had enough of this, I'm not getting involved anymore.")
  57. StartConversation(conversation, NPC, Spawn, "He's lookings for his precious cargoes now is he? That's what one gets for dealings with others than ratonga, we is always reliables, yes?")
  58. end
  59. function dlg2(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet003.mp3", "", "", 625310590, 2568881084, Spawn)
  63. AddConversationOption(conversation, "How would you find these things out?", "dlg3")
  64. AddConversationOption(conversation, "I've heard enough, I'm not getting involved in this.")
  65. StartConversation(conversation, NPC, Spawn, "I don't knows... yet, but I cans finds out I promises.")
  66. end
  67. function dlg3(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet004.mp3", "", "", 2219814499, 371999800, Spawn)
  71. AddConversationOption(conversation, "Sure rat, what did you need from me?", "dlg4")
  72. AddConversationOption(conversation, "I can help you Nethet, what kind of favor are you talking about?", "dlg4")
  73. AddConversationOption(conversation, "No thanks, I'm leaving.")
  74. StartConversation(conversation, NPC, Spawn, "I can't just gives my secrets aways for free now cans I? Maybe if you do me a favors I helps try to find out for you hrm? We have a deals?")
  75. end
  76. function dlg4(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. AddConversationOption(conversation, "Now I understand what you're getting at. I'll go help this friend of yours. Where can I find him?", "dlg5")
  80. AddConversationOption(conversation, "I'm not going to be used like this, forget it rat.")
  81. StartConversation(conversation, NPC, Spawn, "I has a friends whos in troubles with the Blackshield smugglers. He went to speaks with thems but I'm not sures they wanted to chat. I'm thinkin' he's needin' a hand from someones likes you. If you helps him I'll be thinkin of where Brandus' cargo might be.")
  82. end
  83. function dlg5(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. AddConversationOption(conversation, "I will look for your friend, you had better have the information when I get back.", "offer")
  87. AddConversationOption(conversation, "It's my pleasure Nethet.", "offer")
  88. AddConversationOption(conversation, "Whatever rat, I'll be back as soon as I find your friend.", "offer")
  89. StartConversation(conversation, NPC, Spawn, "He wents north along the coast. He says the Blackshield have their own dock to do their business just northwest of the flying griffin tower. Makes sure you come in from the land, they watches the docks carefully and its dangerous. Look for anothers ratonga, his names is Nikora.")
  90. end
  91. function dlg6(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet009.mp3", "", "", 1150370066, 2934575179, Spawn)
  95. AddConversationOption(conversation, "I can do that. And then you'll tell me what you know of Brandus' shipment?", "dlg7")
  96. AddConversationOption(conversation, "I'm through doing your dirty work. The answer is no.")
  97. StartConversation(conversation, NPC, Spawn, "The Blackshields you say? Hrm... this is no goods, we can't haves any fightings with thems. Can you takes this notes to Jereth Blackshield? He is nones friendly and you'll have to gets close to him through his guards but he should takes it.")
  98. end
  99. function dlg7(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. SetStepComplete(Spawn, AFriendInNeed, 3)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet010.mp3", "", "", 3495504259, 1808986164, Spawn)
  104. AddConversationOption(conversation, "I'll be back soon.")
  105. StartConversation(conversation, NPC, Spawn, "Yes, yes, of courses. You do favors for Nethet, he does favors for you. Pleases goes now, and gives the notes to Jereth.")
  106. end
  107. function dlg8(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. AddConversationOption(conversation, "What were the other options you gave him?", "dlg9")
  111. AddConversationOption(conversation, "That's my life you were gambling with Nethet!", "dlg9")
  112. AddConversationOption(conversation, "Forget this, I've had enough of little rats like you.", "dlg9")
  113. StartConversation(conversation, NPC, Spawn, "Oh, no, no, no! That's not true, I only gaves Jereth options. I can't helps if he chooses ones you don't likes. You were the winner weren't yous? See, I knows what I'm doings.")
  114. end
  115. function dlg9(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. SetStepComplete(Spawn, AFriendInNeed, 6)
  118. conversation = CreateConversation()
  119. AddConversationOption(conversation, "Somewhat, but I'll remember this Nethet.")
  120. StartConversation(conversation, NPC, Spawn, "Yes, yes, I knows, but you wins and you gets what Nikora owed hims. It's yours now, here. That make things all betters now, yes?")
  121. end
  122. function dlg10(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet016.mp3", "", "", 2820045080, 397945248, Spawn)
  125. conversation = CreateConversation()
  126. AddConversationOption(conversation, "Why would he want to do that? Other than being amoral that isn't illegal.", "dlg11")
  127. AddConversationOption(conversation, "That's horrible!", "dlg11")
  128. StartConversation(conversation, NPC, Spawn, "He was not dealings with peoples he shoulds. And his cargoes was not somethings loyal citizens of Freeport should be having. He was bringings in refugees to haves shipped back outs to sea.")
  129. end
  130. function dlg11(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. AddConversationOption(conversation, "What about where this ''cargo'' is now?", "dlg12")
  134. AddConversationOption(conversation, "Who is this captain he works with?", "captain")
  135. StartConversation(conversation, NPC, Spawn, "Nots untils he has a sorcerer friend wipes or changes their memories and gives them overs to a captain in the Far Seas Trading Company to take to the Outpost of the Overlord. He gets a cuts of the coins that Freeport pays for the refugees... twice or maybe even three or more times.")
  136. end
  137. function dlg12(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. if GetQuestStep(Spawn, TheMysteriousMissingShipment) == 2 then
  140. SetStepComplete(Spawn, TheMysteriousMissingShipment, 2)
  141. end
  142. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet019.mp3", "", "", 196718519, 1918116094, Spawn)
  143. conversation = CreateConversation()
  144. AddConversationOption(conversation, "I admit your information was worth the trouble.")
  145. AddConversationOption(conversation, "That was almost worth the trouble.")
  146. AddConversationOption(conversation, "You call that information? Bah!")
  147. StartConversation(conversation, NPC, Spawn, "Yes, yes, backs to business, I'm sorrys for wanderings in my speakings. The Dervish Cutthroats has thems now, and the sorcerer friend of Brandus. They be trying to takings his businesses I'm guessings.")
  148. end
  149. function captain(NPC, Spawn)
  150. FaceTarget(NPC, Spawn)
  151. PlayFlavor(NPC, "nethet/commonlands/quests/nethet/nethet018.mp3", "", "", 190275097, 3939211187, Spawn)
  152. conversation = CreateConversation()
  153. AddConversationOption(conversation, "Interesting. Thank you Nethet, now who has the cargo now?", "dlg12")
  154. StartConversation(conversation, NPC, Spawn, "I don't knows, that I couldn't finds out. All I coulds find was a notes signed, ''Cap'n V''.")
  155. end
  156. function offer(NPC, Spawn)
  157. FaceTarget(NPC, Spawn)
  158. OfferQuest(NPC, Spawn, AFriendInNeed)
  159. end
  160. function respawn(NPC)
  161. spawn(NPC)
  162. end