Serris.lua 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : SpawnScripts/Freeport/Serris.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.07 06:08:57
  5. Script Purpose :
  6. :
  7. --]]
  8. QUEST1 = 581
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST1)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if not HasQuest(Spawn, QUEST1) and not HasCompletedQuest(Spawn, QUEST1) then
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "serris/freeport_combined/quest/serris/serris_001.mp3", "", "", 3753219011, 3113331860, Spawn)
  17. AddConversationOption(conversation, "What? I didn't do anything!", "dlg1")
  18. AddConversationOption(conversation, "Is there something I can help you with?", "dlg1")
  19. StartConversation(conversation, NPC, Spawn, "Sstop right there, citizen! I would have wordss with you.")
  20. elseif HasQuest(Spawn, QUEST1) and GetQuestStep(Spawn, QUEST1) < 5 then
  21. PlayFlavor(NPC, "", "There'ss no time for idle chatter. Ssee to the armss dealerss.", "", "no", 1689589577, 4560189, Spawn)
  22. else
  23. PlayFlavor(NPC, "", "Come ssee me when you've matured a bit, sscrappling.", "", 1689589577, 4560189, Spawn)
  24. end
  25. end
  26. function dlg1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "serris/freeport_combined/quest/serris/serris_002.mp3", "", "", 381106923, 1675388434, Spawn)
  30. AddConversationOption(conversation, "I see. What is it you need?", "dlg2")
  31. AddConversationOption(conversation, "Find someone else to do your dirty work. Goodbye.")
  32. StartConversation(conversation, NPC, Spawn, "Not to worry, citizen. This iss an opportunity to sserve the city and one that only a fool would passs up. There are benefitss to working with the Militia. You would be on the right sside of the law and at the right hand of Lucan.")
  33. end
  34. function dlg2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "serris/freeport_combined/quest/serris/serris_003.mp3", "", "", 165900414, 3947077681, Spawn)
  38. AddConversationOption(conversation, "Very well. Tell me more.", "dlg6")
  39. AddConversationOption(conversation, "You mean like the civil war that erupted when Lucan disappeared?", "dlg5")
  40. AddConversationOption(conversation, "That speech impediment is really annoying.", "dlg4")
  41. AddConversationOption(conversation, "I'm not interested. Goodbye.")
  42. StartConversation(conversation, NPC, Spawn, "The city guard hass cracked down on weapon ssaless to unqualified citizens, but this hasn't stopped the illegal transsfer of blades in our city. The lasst thing Freeport needss iss another bloody civil war. Through some... perssuasion, I've uncovered the names of vendors who have been sselling to those who are not authorized to carry armss.")
  43. end
  44. function dlg4(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "serris/freeport_combined/quest/serris/serris_004.mp3", "", "", 3293364734, 3845341563, Spawn)
  48. AddConversationOption(conversation, "I suppose that's true. Well, I'm interested in your task. Tell me more.", "dlg6")
  49. AddConversationOption(conversation, "How could I sssstop to think with your obnoxious hissing voice ringing in my ears? Goodbye.")
  50. StartConversation(conversation, NPC, Spawn, "Did you sstop to think that you ssound sstrange to me too?")
  51. end
  52. function dlg6(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "serris/freeport_combined/quest/serris/serris_006.mp3", "", "", 106334123, 3748233325, Spawn)
  56. AddConversationOption(conversation, "I can handle myself in a fight.", "offer")
  57. AddConversationOption(conversation, "See you after I've handled the vendors.", "offer")
  58. AddConversationOption(conversation, "On second thought, I'm not interested. Goodbye.")
  59. StartConversation(conversation, NPC, Spawn, "I can't confront all of the vendors at once. As ssoon as the firsst one is aware of our questioning, the rest will amend their bookss or make themselvess sscarce. We're going to need to ssplit up. I'll speak to Ikthar Icehammer and my old friend Skaznik, while you sspeak to Sleeth and Jan MacGetz. Get their ledgerss to find out who they've been sselling to. And "..GetName(Spawn).."... expect a fight.")
  60. end
  61. function dlg5(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "serris/freeport_combined/quest/serris/serris_005.mp3", "", "", 696334721, 2455797975, Spawn)
  65. AddConversationOption(conversation, "Everyone knows that the city descended into chaos when Lucan left. So, how can I help?", "dlg6")
  66. AddConversationOption(conversation, "Yes, without order there is anarchy and all that. What was it you needed from me?", "dlg6")
  67. AddConversationOption(conversation, "I was with you until you started speaking in metaphor. Goodbye.")
  68. StartConversation(conversation, NPC, Spawn, "Precissely. Hisstory has consisstently shown that the shadow of a government is necessary to maintain order. Without it, the insectss of the city will devour each other. You ssurprise me with your knowledge of politicss, friend.")
  69. end
  70. function offer(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. OfferQuest(NPC, Spawn, QUEST1)
  73. end
  74. function respawn(NPC)
  75. end