9
3

MiloFaren.lua 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. SetInfoStructString(NPC, "action_state", "tapfoot")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasCompletedQuest(Spawn, HALFELF_MENTOR_QUEST_2) then
  19. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/qst_milo_complete_8be6473c.mp3", "I am so lucky!", "", 1398570807, 321996266, Spawn)
  20. elseif HasQuest(Spawn, HALFELF_MENTOR_QUEST_2) then
  21. OnQuest(NPC, Spawn, conversation)
  22. else
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren001.mp3", "", "", 2229252720, 1824552687, Spawn)
  24. AddConversationOption(conversation, "I'll come back when you've calmed down some.")
  25. StartConversation(conversation, NPC, Spawn, "Good day to you!")
  26. end
  27. end
  28. function OnQuest(NPC, Spawn, conversation)
  29. if GetQuestStep(Spawn, HALFELF_MENTOR_QUEST_2) == 1 then
  30. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren001.mp3", "", "", 2229252720, 1824552687, Spawn)
  31. AddConversationOption(conversation, "You sure are chipper.", "dlg_21_1")
  32. AddConversationOption(conversation, "I'll come back when you've calmed down some.")
  33. StartConversation(conversation, NPC, Spawn, "Good day to you!")
  34. else
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/qst_milo_complete_8be6473c.mp3", "I am so lucky!", "", 1398570807, 321996266, Spawn)
  36. end
  37. end
  38. function dlg_21_1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren002.mp3", "", "", 269531693, 2749316505, Spawn)
  42. AddConversationOption(conversation, "Oh, congratulations. That's wonderful.", "dlg_21_2")
  43. StartConversation(conversation, NPC, Spawn, "And why shouldn't I be? The woman of my dreams just agreed to marry me.")
  44. end
  45. function dlg_21_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren003.mp3", "", "", 4201642816, 883477134, Spawn)
  49. AddConversationOption(conversation, "What is so amazing about her?", "dlg_21_3")
  50. AddConversationOption(conversation, "Good for you. I'll speak with you later.")
  51. 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.")
  52. end
  53. function dlg_21_3(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren004.mp3", "", "", 958713161, 1573449887, Spawn)
  57. AddConversationOption(conversation, "[continue listening]", "dlg_21_4")
  58. 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!")
  59. end
  60. function dlg_21_4(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren004a.mp3", "", "", 1802522686, 1528843118, Spawn)
  64. AddConversationOption(conversation, "It sounds like you're a very lucky man.", "dlg_21_5")
  65. 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.")
  66. end
  67. function dlg_21_5(NPC, Spawn)
  68. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_2, 1)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/milo_faren/qey_village05/quests/milo_faren/milo_faren005.mp3", "", "", 3012503213, 2233464244, Spawn)
  72. AddConversationOption(conversation, "Well, I'm happy for you.")
  73. StartConversation(conversation, NPC, Spawn, "You have no idea how lucky.")
  74. end