9
3

LyssiaDelnara.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/LyssiaDelnara.lua
  3. Script Purpose : Lyssia Delnara
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  6. Script Notes :
  7. --]]
  8. local HALFELF_MENTOR_QUEST_2 = 219
  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. if HasCompletedQuest(Spawn, HALFELF_MENTOR_QUEST_2) then
  18. Say(NPC, "I hope you live a happy life.", Spawn)
  19. elseif HasQuest(Spawn, HALFELF_MENTOR_QUEST_2) and GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_2) >= 2 then
  20. OnQuest(NPC, Spawn, conversation)
  21. else
  22. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara001.mp3", "", "", 3050771761, 2638277090, Spawn)
  23. AddConversationOption(conversation, "And a good day to you, farewell.")
  24. StartConversation(conversation, NPC, Spawn, "Greetings.")
  25. end
  26. end
  27. function OnQuest(NPC, Spawn, conversation)
  28. if GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_2) == 2 then
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara001.mp3", "", "", 3050771761, 2638277090, Spawn)
  30. AddConversationOption(conversation, "I just spoke with Milo.", "dlg_22_1")
  31. AddConversationOption(conversation, "And a good day to you, farewell.")
  32. StartConversation(conversation, NPC, Spawn, "Greetings.")
  33. else
  34. Say(NPC, "I hope you live a happy life.", Spawn)
  35. end
  36. end
  37. function dlg_22_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara002.mp3", "", "", 531367503, 758878008, Spawn)
  41. AddConversationOption(conversation, "He was going on and on about how great you are.", "dlg_22_2")
  42. AddConversationOption(conversation, "I will return to speak of this later.")
  43. StartConversation(conversation, NPC, Spawn, "He is delightful, isn't he?")
  44. end
  45. function dlg_22_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara003.mp3", "", "", 3637545850, 1647953464, Spawn)
  49. AddConversationOption(conversation, "He says he feels amazingly lucky, he doesn't consider himself all that exciting.", "dlg_22_3")
  50. AddConversationOption(conversation, "Sorry, I'll be going now.")
  51. StartConversation(conversation, NPC, Spawn, "Oh? How embarrassing.")
  52. end
  53. function dlg_22_3(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara004.mp3", "", "", 3549663083, 2368150611, Spawn)
  57. AddConversationOption(conversation, "I have indeed, I know exactly how you feel.", "dlg_22_4")
  58. AddConversationOption(conversation, "I may have, though I'm not certain.", "dlg_22_4")
  59. AddConversationOption(conversation, "No, I have not, but I hope to soon.", "dlg_22_4")
  60. AddConversationOption(conversation, "No, I am in no hurry to find love.", "dlg_22_4")
  61. AddConversationOption(conversation, "No. I have no need for it.")
  62. StartConversation(conversation, NPC, Spawn, "That sounds just like him, he never could see his own worth very well. I guess that's part of why I like him, it's very cute and modesty is very attractive. Tell me, have you found love?")
  63. end
  64. function dlg_22_4(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara005.mp3", "", "", 2455179425, 1822326590, Spawn)
  68. AddConversationOption(conversation, "[continue listening]", "dlg_22_5")
  69. StartConversation(conversation, NPC, Spawn, "It comes to all of us in time, whether we wish it or not. I'm just happy my time has come. Oh, Milo. He really has no idea how incredible he is. Have you seen him work? His strength is amazing. And yet he's so careful and compassionate when he interacts with others.")
  70. end
  71. function dlg_22_5(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara005a.mp3", "", "", 713303744, 2327717146, Spawn)
  75. AddConversationOption(conversation, "I am very happy for you.", "dlg_22_6")
  76. StartConversation(conversation, NPC, Spawn, "He doesn't arm wrestle, or squeeze hard during a handshake. He knows just how to hold a woman to make her feel safe and warm. He may not see it himself, but he is very receptive to the needs of others. How could I not love him?")
  77. end
  78. function dlg_22_6(NPC, Spawn)
  79. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_2, 2)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lyssia_delnara/qey_village05/quests/lyssia_delnara/lyssia_delnara006.mp3", "", "", 3882102131, 2649176241, Spawn)
  83. AddConversationOption(conversation, "I agree. Thank you for your time.")
  84. StartConversation(conversation, NPC, Spawn, "Thank you very much. It's great to share joy with others.")
  85. end