9
3

LucanDLere.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : SpawnScripts/FreeportBetrayal/LucanDLere.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.25 08:09:45
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetTempVariable(NPC,"Step1",nil)
  11. SetTempVariable(NPC,"Step2",nil)
  12. end
  13. function hailed(NPC, Spawn)
  14. if GetTempVariable(NPC,"Step1")~= "nil" and GetTempVariable(NPC,"Step2")== "nil" then
  15. Speech1(NPC,Spawn)
  16. elseif GetTempVariable(NPC,"Step2")== "nil" then
  17. Speech2(NPC,Spawn)
  18. else
  19. end
  20. end
  21. function SpeechCheck(NPC,Spawn)
  22. SetTempVariable(NPC,"Step1",1)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function Speech1(NPC,Spawn)
  28. local Ken = GetSpawn(NPC,8450028)
  29. local Stilus = GetSpawn(NPC,8450027)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("Enough, you worms! I did not permit you to speak. As for you, cur... I commend you for putting on a great show. Now it's time for you to pay the price for breaking my laws. You're so quiet... Don't you want to beg for your life, traitor?")
  33. Dialog.AddVoiceover("voiceover/english/overlord_lucan_d_lere/fprt_ph_3r03/lucan_betrayal001.mp3", 2112584825, 2632081703)
  34. PlayFlavor(NPC,"","","converse_male12",0,0)
  35. SetTarget(Spawn,NPC)
  36. SetTarget(Ken,NPC)
  37. SetTarget(Stilus,NPC)
  38. SetTarget(NPC,Spawn)
  39. Dialog.AddOption("I meant what I said. I will die knowing there was good in my heart.","Speech2")
  40. Dialog.Start()
  41. end
  42. function Speech2(NPC,Spawn)
  43. local Ken = GetSpawn(NPC,8450028)
  44. local Stilus = GetSpawn(NPC,8450027)
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. Dialog.AddDialog("How honorable of you to die for what you believe in. A long time ago, I would have respected that in my enemies. Now I view it as a pointless effort. Executioner, this traitor bores me. End the drama now.")
  48. Dialog.AddVoiceover("voiceover/english/overlord_lucan_d_lere/fprt_ph_3r03/lucan_betrayal003.mp3", 3312526214, 3456178374)
  49. PlayFlavor(NPC,"","","converse_male10",0,0)
  50. Dialog.AddOption("For Qeynos!!","Continue")
  51. Dialog.Start()
  52. local Sel = GetSpawn(NPC,8450021)
  53. AddTimer(Sel,18000,"Attention",1,Spawn)
  54. SetTempVariable(NPC,"Step2",1)
  55. end
  56. function Continue(NPC,Spawn) -- ALLOWS FOR CONTINUED VO
  57. end