9
3

SaydithYarr.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity_Classic/SaydithYarr.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.01 07:11:51
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST_1_FROM_THORSON = 376
  9. require "SpawnScripts/Generic/DialogModule"
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Searched this place I have. Seen the dark and the light. Know the stories and the tragedies.")
  22. Dialog.AddVoiceover("voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr000.mp3", 1548752498, 2730978939)
  23. PlayFlavor(NPC,"","","sniff",0,0,Spawn)
  24. Dialog.AddOption("Where am I?", "Dialog2")
  25. Dialog.AddOption("What do you mean by 'dark and light'?","Dialog4")
  26. Dialog.AddOption("What tragedies?", "Dialog3")
  27. Dialog.AddOption("I know all I need to about this place.")
  28. Dialog.Start()
  29. end
  30. function Dialog2(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("You're on the docks of the Sunken City.")
  34. Dialog.AddVoiceover("voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr001.mp3", 2390191821, 3206926055)
  35. PlayFlavor(NPC,"","","nod",0,0,Spawn)
  36. Dialog.AddOption("What do you mean by 'dark and light'?","Dialog4")
  37. Dialog.AddOption("What tragedies?", "Dialog3")
  38. Dialog.AddOption("I know all I need to about this place.")
  39. Dialog.Start()
  40. end
  41. function Dialog3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("This place was once a district of Freeport, much like the others. Those that lived here were swallowed up by the seas and dragged to the bottom of the ocean, doomed to an eternal existence under the crushing depths.")
  45. Dialog.AddVoiceover("voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr002.mp3", 2458221458, 1657163845)
  46. Dialog.AddOption("Where am I?", "Dialog2")
  47. Dialog.AddOption("What do you mean by 'dark and light'?","Dialog4")
  48. Dialog.AddOption("I know all I need to about this place.")
  49. Dialog.Start()
  50. end
  51. function Dialog4(NPC, Spawn)
  52. if HasQuest(Spawn, QUEST_1_FROM_THORSON) and GetQuestStep(Spawn, QUEST_1_FROM_THORSON) == 1 then
  53. SetStepComplete(Spawn, QUEST_1_FROM_THORSON, 1)
  54. end
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Things change here when it gets cold and dark. Zombies crawl from the shadows to drag the living back with them to their watery grave. Search for the cross if you are looking for death.")
  58. Dialog.AddVoiceover("voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr003.mp3", 3245604695, 2963905971)
  59. Dialog.AddOption("Where am I?", "Dialog2")
  60. Dialog.AddOption("What tragedies?", "Dialog3")
  61. Dialog.AddOption("I know all I need to about this place.")
  62. Dialog.Start()
  63. end