9
3

ZephyreViolethair.lua 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/ZephyreViolethair.lua
  3. Script Purpose : Zephyre Violethair
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1005.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "I might.", "dlg_21_1")
  23. AddConversationOption(conversation, "Actually, I was hoping you could tell me a bit about Kelethin.")
  24. AddConversationOption(conversation, "No, sorry.")
  25. StartConversation(conversation, NPC, Spawn, "Hi! Do you have a moment to help me out?")
  26. if convo==22 then
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1005.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "I might.", "dlg_22_1")
  29. AddConversationOption(conversation, "Actually, I was hoping you could tell me a bit about Kelethin.")
  30. AddConversationOption(conversation, "No, sorry.")
  31. StartConversation(conversation, NPC, Spawn, "Hi! Do you have a moment to help me out?")
  32. end
  33. if convo==23 then
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1005.mp3", "", "", 0, 0, Spawn)
  35. AddConversationOption(conversation, "I might.", "dlg_23_1")
  36. AddConversationOption(conversation, "Actually, I was hoping you could tell me a bit about Kelethin.")
  37. AddConversationOption(conversation, "No, sorry.")
  38. StartConversation(conversation, NPC, Spawn, "Hi! Do you have a moment to help me out?")
  39. end
  40. end
  41. function dlg_21_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  45. AddConversationOption(conversation, "How did the Fae come to take over the city?")
  46. AddConversationOption(conversation, "I've changed my mind. What did you need help with?", "dlg_21_2")
  47. StartConversation(conversation, NPC, Spawn, "Yes. What would you like to know?")
  48. end
  49. function dlg_21_2(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  53. AddConversationOption(conversation, "I'd be glad to help.")
  54. AddConversationOption(conversation, "Sorry, I have something else to attend to just now.", "dlg_21_3")
  55. StartConversation(conversation, NPC, Spawn, "My family has always lived in Kelethin and I'd like to honor their memories. The problem I'm having is those darn orcs! They send out their scouts and disrupt me at my prayers. I'd like to have them cleared out so that I can finish the ritual to honor my ancestors in peace.")
  56. end
  57. function dlg_22_1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "How did the Fae come to take over the city?")
  62. AddConversationOption(conversation, "I've changed my mind. What did you need help with?", "dlg_22_2")
  63. StartConversation(conversation, NPC, Spawn, "Yes. What would you like to know?")
  64. end
  65. function dlg_22_2(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  69. AddConversationOption(conversation, "What happened to your family?", "dlg_22_3")
  70. StartConversation(conversation, NPC, Spawn, "It wasn't a 'take over.' Not the way the orcs would've done. They developed an affinity for us, the Feir'Dal. We're quite similar in many ways, actually. The Fae helped rebuild Kelethin after the War of the Fay, and over time, came to look upon it as their home.")
  71. end
  72. function dlg_22_3(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  76. AddConversationOption(conversation, "There are very few wood elves in Kelethin now.", "dlg_22_4")
  77. StartConversation(conversation, NPC, Spawn, "My family's roots have been in Kelethin for many Ages. I'm the last one now, so it's important for me to keep up what traditions are left. When the Word of the Tranquil came to Kelethin, most of my friends left, presumably to Qeynos. Others wandered away, seeking guidance from the gods. And of course, the gods did not respond.")
  78. end
  79. function dlg_22_4(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  83. AddConversationOption(conversation, "Have the orcs ever attacked Kelethin directly?", "dlg_22_5")
  84. AddConversationOption(conversation, "I see.")
  85. StartConversation(conversation, NPC, Spawn, "Seems that way, doesn't it? Many of us prefer to keep to ourselves now. Some, like me and Traeger, are fine with all the newcomers. Maybe it's the catalyst we need, to stop living in the past and to think of the future.")
  86. end
  87. function dlg_22_5(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  91. AddConversationOption(conversation, "How long did that last?", "dlg_22_6")
  92. StartConversation(conversation, NPC, Spawn, "Those cowards have seen fit only to besiege Kelethin, for they know that our magic is stronger than theirs. Ours is the power of Growth, which their kind cannot appreciate. When the Second Rallosian Army rampaged elsewhere, the orcs tried to burn us down, then settled beneath us in siege.")
  93. end
  94. function dlg_22_6(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  98. AddConversationOption(conversation, "How did Kelethin survive?", "dlg_22_7")
  99. StartConversation(conversation, NPC, Spawn, "Long enough, unfortunately. Though Growth is our ally, it cannot conjure up sustenance for a city for that length of time. And many perished defending the lifts. The Fae erected a barrier beneath Kelethin to keep the orcs away, but they weren't strong enough to deter them entirely.")
  100. end
  101. function dlg_22_7(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  105. AddConversationOption(conversation, "What was it you needed help with again?", "dlg_22_8")
  106. AddConversationOption(conversation, "Thank you for telling me this.")
  107. StartConversation(conversation, NPC, Spawn, "The Rallosian Army was defeated by the Green Mist. Our orcs met a different scourge--the brownies of the Lesser Faydark. We're not sure what motivated them, but they came to our aid, breaking the siege. And when they'd won, they simply returned home. I suspect they routed the orcs just because they could.")
  108. end
  109. function dlg_22_8(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  113. AddConversationOption(conversation, "I'd be glad to help.", "dlg_22_9")
  114. AddConversationOption(conversation, "Sorry, I have something else to attend to just now.")
  115. StartConversation(conversation, NPC, Spawn, "My family has always lived in Kelethin and I'd like to honor their memories. The problem I'm having is those darn orcs! They send out their scouts and disrupt me at my prayers. I'd like to have them cleared out so that I can finish the ritual to honor my ancestors in peace.")
  116. end
  117. function dlg_23_1(NPC, Spawn)
  118. FaceTarget(NPC, Spawn)
  119. conversation = CreateConversation()
  120. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  121. AddConversationOption(conversation, "I'd be glad to help.", "dlg_23_2")
  122. AddConversationOption(conversation, "Sorry, I have something else to attend to just now.")
  123. StartConversation(conversation, NPC, Spawn, "My family has always lived in Kelethin and I'd like to honor their memories. The problem I'm having is those darn orcs! They send out their scouts and disrupt me at my prayers. I'd like to have them cleared out so that I can finish the ritual to honor my ancestors in peace.")
  124. end
  125. function dlg_23_2(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. conversation = CreateConversation()
  128. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  129. AddConversationOption(conversation, "I'll do my best.", "dlg_23_3")
  130. StartConversation(conversation, NPC, Spawn, "Could you? That's great! Though the Feir'Dal are not as prominent here as we once were, we still keep to the old ways as much as we can. You have no idea what your help means to me!")
  131. end