9
3

SaydithYarr.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/SaydithYarr.lua
  3. Script Purpose : Saydith Yarr
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Script Notes :
  7. --]]
  8. local QUEST_1_FROM_THORSON = 266
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. PlayFlavor(NPC, "voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr000.mp3", "", "", 1548752498, 2730978939, Spawn)
  18. AddConversationOption(conversation, "Where am I?", "dlg_1_2")
  19. AddConversationOption(conversation, "What do you mean by 'dark and light'?", "dlg_1_3")
  20. AddConversationOption(conversation, "What tragedies?", "dlg_1_1")
  21. AddConversationOption(conversation, "I know all I need to about this place.")
  22. StartConversation(conversation, NPC, Spawn, "Searched this place I have. Seen the dark and the light. Know the stories and the tragedies.")
  23. end
  24. function dlg_1_2(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr001.mp3", "", "", 2390191821, 3206926055, Spawn)
  28. AddConversationOption(conversation, "What do you mean by 'dark and light'?", "dlg_1_3")
  29. AddConversationOption(conversation, "What tragedies?", "dlg_1_1")
  30. AddConversationOption(conversation, "I know all I need to about this place.")
  31. StartConversation(conversation, NPC, Spawn, "You're on the docks of the Sunken City.")
  32. end
  33. function dlg_1_3(NPC, Spawn)
  34. if HasQuest(Spawn, QUEST_1_FROM_THORSON) and GetQuestStep(Spawn, QUEST_1_FROM_THORSON) == 1 then
  35. SetStepComplete(Spawn, QUEST_1_FROM_THORSON, 1)
  36. end
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr003.mp3", "", "", 3245604695, 2963905971, Spawn)
  40. AddConversationOption(conversation, "Where am I?", "dlg_1_2")
  41. AddConversationOption(conversation, "What tragedies?", "dlg_1_1")
  42. AddConversationOption(conversation, "I know all I need to about this place.")
  43. StartConversation(conversation, NPC, Spawn, "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.")
  44. end
  45. function dlg_1_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/saydith_yarr/fprt_adv01_sunken/saydith_yarr002.mp3", "", "", 2458221458, 1657163845, Spawn)
  49. AddConversationOption(conversation, "Where am I?", "dlg_1_2")
  50. AddConversationOption(conversation, "What do you mean by 'dark and light'?", "dlg_1_3")
  51. AddConversationOption(conversation, "I know all I need to about this place.")
  52. StartConversation(conversation, NPC, Spawn, "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.")
  53. end