StilusGraphium.lua 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. --[[
  2. Script Name : SpawnScripts/EastFreeport/StilusGraphium.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.27 04:09:26
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Part1 = 5889
  10. function spawn(NPC)
  11. SetInfoStructString(NPC, "action_state", "tapfoot")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if GetAlignment(Spawn)~=0 then
  16. PlayFlavor(NPC,"","","shakefist",0,0,Spawn)
  17. else
  18. Dialog1(NPC,Spawn)
  19. end
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function Dialog1(NPC,Spawn)
  25. FaceTarget(NPC, Spawn)
  26. Dialog.New(NPC, Spawn)
  27. Dialog.AddDialog("Hail, hail, and all that. I'm very busy right now. I must get today's edition out by at least tomorrow. If you want to chat, try the guards. They're always up for good banter.")
  28. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium.mp3", 626338698, 3291446303)
  29. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  30. Dialog.AddOption("I'm looking for more than gossip. Surely this place has more to offer.","Intro1")
  31. Dialog.AddOption("Fine. I was just leaving.")
  32. Dialog.Start()
  33. end
  34. function Intro1(NPC,Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("The Observer has been here for generations. No matter which way the wind blows at the time, people hunger for the truth. As the editor of the Observer, I give the people the REAL truth, not the kind the Quintet would have you hear.")
  38. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/quests/stilusgraphium/stilus_x1_finish.mp3", 3836403748, 1513651252)
  39. Dialog.AddOption("I get around. Have any leads I can help with?","Intro1A")
  40. Dialog.AddOption("What kind of truth does the Quintet supply?","Intro2")
  41. Dialog.AddOption("Well, unless I do something amazing leave me out of it!")
  42. Dialog.Start()
  43. end
  44. function Intro1A(NPC,Spawn)
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. Dialog.AddDialog("The Overlord and the Quintet detest freelancers. If you want real power in this city, the only place to find it is in the arms of the Quintet.")
  48. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/quests/stilusgraphium/stilus_x1_finish3.mp3", 4067542453, 3603700039)
  49. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  50. Dialog.AddOption("What kind of truth does the Quintet supply?","Intro2")
  51. Dialog.AddOption("Well, I've lost interest anyway.")
  52. Dialog.Start()
  53. end
  54. function Intro2(NPC,Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Their usual fare of propaganda - \"We're your only hope\", \"The Overlord likes us more than the other four\", \"Join us or die\". Well, they're right about that last one, at least. Anyone who's someone has to choose a side one of these days.")
  58. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/quests/stilusgraphium/stilus_x1_finish2.mp3", 2443543125, 1280249851)
  59. PlayFlavor(NPC, "", "", "tapfoot", 0, 0, Spawn)
  60. Dialog.AddOption("That all sounds like my kind of news!")
  61. Dialog.AddOption("What if I don't want to choose a side?","Dialog2")
  62. Dialog.Start()
  63. end
  64. function Dialog2(NPC,Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("People who don't choose a side end up breathing dirt in some fitlhy alley. This is the one thing the Quintet agree on. Choose a side when they tell you, or die. Then again, there is another way...")
  68. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium000.mp3", 343230773, 2344751061)
  69. if GetLevel(Spawn)<18 then
  70. Dialog.AddOption("My side is the best side. Leave me out of yours!")
  71. if CanReceiveQuest(Spawn,Part1) then
  72. Dialog.AddOption("Whose side are you on, anyway?","Dialog3")
  73. end
  74. elseif GetLevel(Spawn)>=18 then
  75. Dialog.AddOption("I've picked my side. I want NOTHING to do with yours!")
  76. end
  77. Dialog.Start()
  78. end
  79. function Dialog3(NPC,Spawn)
  80. FaceTarget(NPC, Spawn)
  81. Dialog.New(NPC, Spawn)
  82. Dialog.AddDialog("Qeynos. You can always choose Qeynos. Look around you, friend! Do what the guards say, or they kill you. Carry out the evil wishes of the Quintet, or they kill you. Worship Lucan as a god, or he kills you. We're all slaves to the Overlord in this godsforsaken city! Is that how you want to live?")
  83. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium001.mp3", 2011282956, 1928628774)
  84. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  85. Dialog.AddOption("No way! I don't want to go to Qeynos.")
  86. Dialog.AddOption("Are you some sort of spy?","Dialog4")
  87. Dialog.Start()
  88. end
  89. function Dialog4(NPC,Spawn)
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. Dialog.AddDialog("If by spy you mean someone who wants the evil ways of Freeport stopped, then yes, I am a spy. I fight for the ideals of goodwill rather than the empty promises of evil. If you feel the same way, then you must join us in Qeynos, friend. What do you say? ")
  93. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium002.mp3", 393133427, 3433323586)
  94. Dialog.AddOption("Qeynos is for the weak. My home is Freeport. And you are a traitor!","Dialog5")
  95. Dialog.AddOption("Yes. I cannot stand the evil of Freeport. I want to fight for good, not evil!","Betray1")
  96. Dialog.Start()
  97. end
  98. function Dialog5(NPC,Spawn)
  99. FaceTarget(NPC, Spawn)
  100. Dialog.New(NPC, Spawn)
  101. Dialog.AddDialog("A traitor? How am I a traitor? I'm not the refugee who hopped off a boat not too long ago, you are. I'm not the one who was snooping around town asking lots of questions about the Quintet, you are.")
  102. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium003.mp3", 1760281781, 1305326262)
  103. PlayFlavor(NPC, "", "", "whome", 0, 0, Spawn)
  104. Dialog.AddOption("You are the one who brought up Qeynos!","Dialog6")
  105. Dialog.Start()
  106. end
  107. function Dialog6(NPC,Spawn)
  108. FaceTarget(NPC, Spawn)
  109. Dialog.New(NPC, Spawn)
  110. Dialog.AddDialog("I am, however, the one who informed the Lucanic Knights that you are the spy they're looking for. As we speak, they're waiting to hear from me.")
  111. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium004.mp3", 3111410834, 984123691)
  112. PlayFlavor(NPC,"","","shakefist",0,0,Spawn)
  113. Dialog.AddOption("I should kill you where you stand.","Dialog7")
  114. Dialog.AddOption("I want nothing more to do with this!")
  115. Dialog.Start()
  116. end
  117. function Dialog7(NPC,Spawn)
  118. FaceTarget(NPC, Spawn)
  119. Dialog.New(NPC, Spawn)
  120. Dialog.AddDialog("If you kill me, I'll never get the chance to clear your name, will I? On the other hand, if you walk away and pretend we never talked, I'll tell Lucan's Knights that the spy was someone else. So walk away, keep your mouth shut, and we're both happy. Good bye, stranger.")
  121. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium005.mp3", 2090418381, 2124257979)
  122. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  123. Dialog.AddOption("Fine, but sleep with one eye open.")
  124. Dialog.Start()
  125. end
  126. function Betray1(NPC,Spawn)
  127. FaceTarget(NPC, Spawn)
  128. Dialog.New(NPC, Spawn)
  129. Dialog.AddDialog("You must understand that just speaking these words makes you a traitor. You know what the Overlord does to traitors, right? Do you believe in your heart that following the path of goodwill to Qeynos is for you?")
  130. Dialog.AddVoiceover("voiceover/english/stilus_graphium/fprt_east/qst_stilusgraphium006.mp3", 730354074, 1124651336)
  131. Dialog.AddOption("What was I thinking?! I would never choose to leave Freeport! TRAITOR!","Dialog5")
  132. Dialog.AddOption("Yes. I wish to forsake evil by helping Qeynos in their struggle!","Offer")
  133. Dialog.Start()
  134. end
  135. function Offer(NPC,Spawn)
  136. OfferQuest(NPC,Spawn,Part1)
  137. end