9
3

LiaSerene.lua 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. SetInfoStructString(NPC, "action_state", "ponder")
  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, HALF_ELF_MENTOR_QUEST_1) then
  19. 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)
  20. elseif HasQuest(Spawn, HALF_ELF_MENTOR_QUEST_1) and GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) >= 3 then
  21. OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  22. else
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene001.mp3", "", "", 3948197749, 3786376226, Spawn)
  24. AddConversationOption(conversation, "To you as well, goodbye for now.")
  25. StartConversation(conversation, NPC, Spawn, "Well met.")
  26. end
  27. end
  28. ---------------------------------------------------------------------------------------------------------------
  29. -- HALF ELF MENTOR QUEST 1
  30. ---------------------------------------------------------------------------------------------------------------
  31. function OnHalfElfMentorQuest1(NPC, Spawn, conversation)
  32. if GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 3 then
  33. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene001.mp3", "", "", 3948197749, 3786376226, Spawn)
  34. AddConversationOption(conversation, "You look troubled, is there anything I can do to help?", "dlg_16_1")
  35. AddConversationOption(conversation, "To you as well, goodbye for now.")
  36. StartConversation(conversation, NPC, Spawn, "Well met.")
  37. elseif GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) >= 4 and GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) <= 7 then
  38. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene009.mp3", "", "", 2366604314, 876654572, Spawn)
  39. if GetQuestStep(Spawn, HALF_ELF_MENTOR_QUEST_1) == 7 then
  40. AddConversationOption(conversation, "Yes, here they are.", "dlg_17_1")
  41. end
  42. AddConversationOption(conversation, "Not yet.")
  43. StartConversation(conversation, NPC, Spawn, "Did you find any eggs?")
  44. else
  45. 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)
  46. end
  47. end
  48. function dlg_16_1(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene002.mp3", "", "", 1084130195, 3979278779, Spawn)
  52. AddConversationOption(conversation, "What is it that troubles you?", "dlg_16_2")
  53. AddConversationOption(conversation, "Very well, I'm sorry I asked.")
  54. StartConversation(conversation, NPC, Spawn, "Oh I don't know. I am troubled over something quite delicate, I don't know if you can help.")
  55. end
  56. function dlg_16_2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene003.mp3", "", "", 946954520, 74482583, Spawn)
  60. AddConversationOption(conversation, "What do you mean by that?", "dlg_16_3")
  61. AddConversationOption(conversation, "Well I'll just be leaving then.")
  62. 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.")
  63. end
  64. function dlg_16_3(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene004.mp3", "", "", 2706906943, 2378960911, Spawn)
  68. AddConversationOption(conversation, "So you don't want my help?", "dlg_16_4")
  69. AddConversationOption(conversation, "You know very little of me, good day.")
  70. 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.")
  71. end
  72. function dlg_16_4(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene005.mp3", "", "", 1472623500, 2746201018, Spawn)
  76. AddConversationOption(conversation, "I care for nature as much as the next elf, full-blood or not.", "dlg_16_5")
  77. AddConversationOption(conversation, "I like to help where it is needed.", "dlg_16_5")
  78. AddConversationOption(conversation, "Perhaps you should re-think your views of the Ayr'Dal, I will help.", "dlg_16_5")
  79. AddConversationOption(conversation, "For now it doesn't concern me. Goodbye.")
  80. 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.")
  81. end
  82. function dlg_16_5(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene006.mp3", "", "", 1958975917, 533091246, Spawn)
  86. AddConversationOption(conversation, "Should I try to put them back in the nest?", "dlg_16_6")
  87. AddConversationOption(conversation, "I've changed my mind, I may be back later.")
  88. 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.")
  89. end
  90. function dlg_16_6(NPC, Spawn)
  91. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 3)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene008.mp3", "", "", 2043753737, 1955953517, Spawn)
  95. AddConversationOption(conversation, "I'll go check them now.")
  96. 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.")
  97. end
  98. function dlg_17_1(NPC, Spawn)
  99. SetStepComplete(Spawn, HALF_ELF_MENTOR_QUEST_1, 7)
  100. FaceTarget(NPC, Spawn)
  101. conversation = CreateConversation()
  102. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lia_serene/qey_village05/quests/lia_serene/lia_serene010.mp3", "", "", 443109292, 254705262, Spawn)
  103. AddConversationOption(conversation, "I am glad to have helped.")
  104. 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.")
  105. end