MiloFaren.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/MiloFaren.lua
  3. Script Purpose : Milo Faren
  4. Script Author : Scatman
  5. Script Date : 2009.09.26
  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. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/qst_milo_complete_8be6473c.mp3", "I am so lucky!", "", 1398570807, 321996266, Spawn)
  19. elseif HasQuest(Spawn, HALFELF_MENTOR_QUEST_2) then
  20. OnQuest(NPC, Spawn, conversation)
  21. else
  22. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren001.mp3", "", "", 2229252720, 1824552687, Spawn)
  23. AddConversationOption(conversation, "I'll come back when you've calmed down some.")
  24. StartConversation(conversation, NPC, Spawn, "Good day to you!")
  25. end
  26. end
  27. function OnQuest(NPC, Spawn, conversation)
  28. if GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_2) == 1 then
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren001.mp3", "", "", 2229252720, 1824552687, Spawn)
  30. AddConversationOption(conversation, "You sure are chipper.", "dlg_21_1")
  31. AddConversationOption(conversation, "I'll come back when you've calmed down some.")
  32. StartConversation(conversation, NPC, Spawn, "Good day to you!")
  33. else
  34. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/qst_milo_complete_8be6473c.mp3", "I am so lucky!", "", 1398570807, 321996266, Spawn)
  35. end
  36. end
  37. function dlg_21_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren002.mp3", "", "", 269531693, 2749316505, Spawn)
  41. AddConversationOption(conversation, "Oh, congratulations. That's wonderful.", "dlg_21_2")
  42. StartConversation(conversation, NPC, Spawn, "And why shouldn't I be? The woman of my dreams just agreed to marry me.")
  43. end
  44. function dlg_21_2(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren003.mp3", "", "", 4201642816, 883477134, Spawn)
  48. AddConversationOption(conversation, "What is so amazing about her?", "dlg_21_3")
  49. AddConversationOption(conversation, "Good for you. I'll speak with you later.")
  50. StartConversation(conversation, NPC, Spawn, "It most certainly is. I'm the luckiest man alive. Lyssia is angelic. I have no idea what she sees in a plain-old guy like me, but I don't intend to question my luck! She's amazing.")
  51. end
  52. function dlg_21_3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren004.mp3", "", "", 958713161, 1573449887, Spawn)
  56. AddConversationOption(conversation, "[continue listening]", "dlg_21_4")
  57. StartConversation(conversation, NPC, Spawn, "Obviously you've never seen her. Aside from being the most beautiful woman in the entire village--perhaps in all of Qeynos--she has unmatched grace. But inside, below the surface, is where she's most amazing. She's got a very quick wit that makes her a joy to talk to, and her wisdom is, well, elven!")
  58. end
  59. function dlg_21_4(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren004a.mp3", "", "", 1802522686, 1528843118, Spawn)
  63. AddConversationOption(conversation, "It sounds like you're a very lucky man.", "dlg_21_5")
  64. StartConversation(conversation, NPC, Spawn, "And when I mess up--which I do a lot--she is even tempered. The fact that she accepts all my faults is most endearing.")
  65. end
  66. function dlg_21_5(NPC, Spawn)
  67. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_2, 1)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren005.mp3", "", "", 3012503213, 2233464244, Spawn)
  71. AddConversationOption(conversation, "Well, I'm happy for you.")
  72. StartConversation(conversation, NPC, Spawn, "You have no idea how lucky.")
  73. end