9
3

LiaSerene.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/LiaSerene.lua
  3. Script Purpose : Lia Serene
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  6. Script Notes :
  7. --]]
  8. local HALF_ELF_MENTOR_QUEST_1 = 218
  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, HALF_ELF_MENTOR_QUEST_1) then
  18. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/qst_lia_complete_8d85d6b2.mp3", "Thank you again for your help, Ayr'Dal.", "", 869251524, 3340326949, Spawn)
  19. elseif HasQuest(Spawn, HALF_ELF_MENTOR_QUEST_1) and GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) >= 3 then
  20. OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  21. else
  22. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene001.mp3", "", "", 3948197749, 3786376226, Spawn)
  23. AddConversationOption(conversation, "To you as well, goodbye for now.")
  24. StartConversation(conversation, NPC, Spawn, "Well met.")
  25. end
  26. end
  27. ---------------------------------------------------------------------------------------------------------------
  28. -- HALF ELF MENTOR QUEST 1
  29. ---------------------------------------------------------------------------------------------------------------
  30. function OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  31. if GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 3 then
  32. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene001.mp3", "", "", 3948197749, 3786376226, Spawn)
  33. AddConversationOption(conversation, "You look troubled, is there anything I can do to help?", "dlg_16_1")
  34. AddConversationOption(conversation, "To you as well, goodbye for now.")
  35. StartConversation(conversation, NPC, Spawn, "Well met.")
  36. elseif GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) >= 4 and GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) <= 7 then
  37. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene009.mp3", "", "", 2366604314, 876654572, Spawn)
  38. if GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 7 then
  39. AddConversationOption(conversation, "Yes, here they are.", "dlg_17_1")
  40. end
  41. AddConversationOption(conversation, "Not yet.")
  42. StartConversation(conversation, NPC, Spawn, "Did you find any eggs?")
  43. else
  44. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/qst_lia_complete_8d85d6b2.mp3", "Thank you again for your help, Ayr'Dal.", "", 869251524, 3340326949, Spawn)
  45. end
  46. end
  47. function dlg_16_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene002.mp3", "", "", 1084130195, 3979278779, Spawn)
  51. AddConversationOption(conversation, "What is it that troubles you?", "dlg_16_2")
  52. AddConversationOption(conversation, "Very well, I'm sorry I asked.")
  53. StartConversation(conversation, NPC, Spawn, "Oh I don't know. I am troubled over something quite delicate, I don't know if you can help.")
  54. end
  55. function dlg_16_2(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene003.mp3", "", "", 946954520, 74482583, Spawn)
  59. AddConversationOption(conversation, "What do you mean by that?", "dlg_16_3")
  60. AddConversationOption(conversation, "Well I'll just be leaving then.")
  61. StartConversation(conversation, NPC, Spawn, "Well, I'm worried over the recent, strong winds and what effect they may have had on some of the birds who nest within the Willow Wood. Their eggs, specifically, are what worry me. I know, it seems silly, I don't really expect someone like you to understand.")
  62. end
  63. function dlg_16_3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene004.mp3", "", "", 2706906943, 2378960911, Spawn)
  67. AddConversationOption(conversation, "So you don't want my help?", "dlg_16_4")
  68. AddConversationOption(conversation, "You know very little of me, good day.")
  69. StartConversation(conversation, NPC, Spawn, "Well, half elves have never quite been concerned with nature like we have. I don't mean that as an insult, it is simply true.")
  70. end
  71. function dlg_16_4(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene005.mp3", "", "", 1472623500, 2746201018, Spawn)
  75. AddConversationOption(conversation, "I care for nature as much as the next elf, full-blood or not.", "dlg_16_5")
  76. AddConversationOption(conversation, "I like to help where it is needed.", "dlg_16_5")
  77. AddConversationOption(conversation, "Perhaps you should re-think your views of the Ayr'Dal, I will help.", "dlg_16_5")
  78. AddConversationOption(conversation, "For now it doesn't concern me. Goodbye.")
  79. StartConversation(conversation, NPC, Spawn, "I am sorry. I did not mean to come off as such. Yes, I would appreciate your help. I just didn't think something like this would concern you.")
  80. end
  81. function dlg_16_5(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene006.mp3", "", "", 1958975917, 533091246, Spawn)
  85. AddConversationOption(conversation, "Should I try to put them back in the nest?", "dlg_16_6")
  86. AddConversationOption(conversation, "I've changed my mind, I may be back later.")
  87. StartConversation(conversation, NPC, Spawn, "Very well. Please travel around the Willow Wood and check each bird nest to be sure they have not been upset in the recent storm. This isn't very hard, just check the ground in the area of each nest and verify that neither the nest nor any eggs have fallen. If any eggs are found that are not cracked collect them.")
  88. end
  89. function dlg_16_6(NPC, Spawn)
  90. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 3)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene008.mp3", "", "", 2043753737, 1955953517, Spawn)
  94. AddConversationOption(conversation, "I'll go check them now.")
  95. StartConversation(conversation, NPC, Spawn, "It's just like an Ayr'Dal to ask a question like that. Um, no offense. I know where the birds of this village nest, and what their eggs look like. This is how I know where to look, and where to tell you where to look. Check under the north-east corner of the inn roof, north of that location check under the tree near the entrance to the docks, then check under the tree just down the path from the entrance to the Forest Ruins, which is in the south-western area of the village.")
  96. end
  97. function dlg_17_1(NPC, Spawn)
  98. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 7)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene010.mp3", "", "", 443109292, 254705262, Spawn)
  102. AddConversationOption(conversation, "I am glad to have helped.")
  103. StartConversation(conversation, NPC, Spawn, "I'm relieved. It looks like you handled these with great care. I believe we can save all of them, thank you.")
  104. end