9
3

ThavianDestrus.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/ThavianDestrus.lua
  3. Script Purpose : Thavian Destrus <Half Elf Mentor>
  4. Script Author : Scatman (updated by Cynnar 2018.06.13 02:06:21)
  5. Script Date : 2009.04.05
  6. Script Notes :
  7. --]]
  8. local HALF_ELF = 6
  9. local HALFELF_MENTOR_QUEST_1= 307
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, HALFELF_MENTOR_QUEST_1)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if HasCompletedQuest(Spawn, HALFELF_MENTOR_QUEST_1) then
  20. Say(NPC, "The Brotherhood awaits.", Spawn)
  21. elseif HasQuest(Spawn, HALFELF_MENTOR_QUEST_1) then
  22. Say(NPC, "The Brotherhood awaits.", Spawn)
  23. else
  24. if GetRace(Spawn) == HALF_ELF then
  25. WhyDoYouComeHere(NPC, Spawn, conversation)
  26. else
  27. --PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/qst_thavian_nothalfelf_ccca9558.mp3", "I am not charged with helping you, and so I will not. Good day.", "", 3519862132, 3162907457, Spawn)
  28. end
  29. end
  30. end
  31. -----------------------------------------------------------------------------------------------------------------
  32. -- A Delivery
  33. -----------------------------------------------------------------------------------------------------------------
  34. function WhyDoYouComeHere(NPC, Spawn, conversation)
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian000.mp3", "", "", 2783991640, 3181833189, Spawn)
  36. AddConversationOption(conversation, "What do you mean?", "dlg_1_1")
  37. StartConversation(conversation, NPC, Spawn, "Why do you come here, Ayr'Dal?")
  38. end
  39. function dlg_1_1(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian001.mp3", "", "", 3101830372, 2951993261, Spawn)
  43. AddConversationOption(conversation, "I am part high elf.", "dlg_3_2")
  44. AddConversationOption(conversation, "I am part wood elf.", "dlg_2_2")
  45. AddConversationOption(conversation, "I am part dark elf.", "dlg_1_2")
  46. AddConversationOption(conversation, "I have never known.", "MaybeBetter")
  47. StartConversation(conversation, NPC, Spawn, "It is not a hard question, but it is an important one. Look around you, care to notice a certain lack of, shall we say, aesthetics? What is your heritage, from what elves do you come?")
  48. end
  49. function MaybeBetter(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian005.mp3", "", "", 3937144188, 532707745, Spawn)
  53. AddConversationOption(conversation, "Why do you say that?", "dlg_5_4")
  54. StartConversation(conversation, NPC, Spawn, "Maybe it's better that way. It will keep people on their toes. The more people think they don't know about you the more powerful you become in their mind. Use this to its full advantage. In these times you need every advantage you can get.")
  55. end
  56. function dlg_1_2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian004.mp3", "", "", 1381606320, 1550291575, Spawn)
  60. AddConversationOption(conversation, "Yes.", "dlg_3_3")
  61. AddConversationOption(conversation, "No.", "WhatIMeanIs")
  62. StartConversation(conversation, NPC, Spawn, "Heh, I believe it. That will make things harder for you, unfortunately. People will expect more from you than they would a half breed from a lesser elf. But it's hard, being part human and all, to live up to their expectations. You'll make it all right, but you need to use both sides of your heritage to their full advantage. You're not as strong as a human or an elf, but you're not nearly as weak, either. Understand?")
  63. end
  64. function dlg_2_2(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian003.mp3", "", "", 1928672703, 433177199, Spawn)
  68. AddConversationOption(conversation, "Yes.", "dlg_3_3")
  69. AddConversationOption(conversation, "No.", "WhatIMeanIs")
  70. StartConversation(conversation, NPC, Spawn, "I pity you, then. One important thing you need to learn about Freeport is that nobody cares for the concerns of a tree-happy elf. Your elven blood gives you a lithe stride, but let only your enemies appreciate that. You must rely on your human nature to survive here, otherwise you'll just be another lost elf with nowhere to call home. Understand?")
  71. end
  72. function WhatIMeanIs(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. AddConversationOption(conversation, "The brotherhood?", "dlg_5_5")
  76. StartConversation(conversation, NPC, Spawn, "What I mean is, don't limit yourself. Cultures differ even within species. Don't try to fit in where you don't belong and will never be welcomed. Instead, be welcomed into the fold of The Brotherhood. We are an advantage few Ayr'Dal--none of those within Qeynos--have. It is a useful tool indeed.")
  77. end
  78. function dlg_3_2(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian002.mp3", "", "", 119866088, 1685337170, Spawn)
  82. AddConversationOption(conversation, "Yes.", "dlg_3_3")
  83. AddConversationOption(conversation, "No.", "WhatIMeanIs")
  84. StartConversation(conversation, NPC, Spawn, "Look around, feigned Koada, see any others like you? No, no you don't. Take that to heart. You get by here using your human nature. Your elven abilities come in handy, but try not to broadcast them. Nobody cares if you think something is pretty, or cute. Understand?")
  85. end
  86. function dlg_3_3(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian007.mp3", "", "", 3875610028, 3096383378, Spawn)
  90. AddConversationOption(conversation, "Why do you say that?", "dlg_5_4")
  91. StartConversation(conversation, NPC, Spawn, "Good. Understanding is a key advantage, and in these times we need all the advantages we can get.")
  92. end
  93. function dlg_5_4(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian008.mp3", "", "", 753788028, 2113721405, Spawn)
  97. AddConversationOption(conversation, "The Brotherhood?", "dlg_5_5")
  98. StartConversation(conversation, NPC, Spawn, "Look around you. Things are bad everywhere, and getting worse. For the Ayr'Dal of Beggar's Court it has recently become a struggle to survive in day-to-day affairs. And, so, The Brotherhood was formed.")
  99. end
  100. function dlg_5_5(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian009.mp3", "", "", 1489419097, 2704508898, Spawn)
  104. AddConversationOption(conversation, "Against the militia?", "dlg_5_6")
  105. StartConversation(conversation, NPC, Spawn, "The Ayr'Dal Brotherhood. In the past we would not have been necessary. But, as of late, we are unfortunately needed. By his own machinations Captain Lusarius Rommuls was transferred to this district. He now serves as Adjunct-Captain of Beggar's Court. Rommuls hates us, Vlaru. And he is doing everything in his power to rid Freeport of our kind. We have no wish to leave, naturally, so we will fight back.")
  106. end
  107. function dlg_5_6(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian010.mp3", "", "", 1491391518, 212658016, Spawn)
  111. AddConversationOption(conversation, "Yes.", "dlg_5_7")
  112. AddConversationOption(conversation, "No, I cannot.")
  113. StartConversation(conversation, NPC, Spawn, "No, against Rommuls. Most do not agree with him, but are too afraid to openly oppose him. We are not afraid. Will you help us?")
  114. end
  115. function dlg_5_7(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian011.mp3", "", "", 3880227790, 3152826653, Spawn)
  119. AddConversationOption(conversation, "I would like to help here.", "dlg_5_9")
  120. AddConversationOption(conversation, "I would like to help elsewhere.", "dlg_5_8")
  121. StartConversation(conversation, NPC, Spawn, "Good. You can help here, or elsewhere if you wish. It just depends on how much you're willing to risk.")
  122. end
  123. function dlg_5_8(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. conversation = CreateConversation()
  126. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian012.mp3", "", "", 4017582198, 2037655220, Spawn)
  127. AddConversationOption(conversation, "All right, thank you.")
  128. AddConversationOption(conversation, "I changed my mind, I would like to help out here.", "dlg_5_9")
  129. StartConversation(conversation, NPC, Spawn, "All right. Travel to the Sunken City. Speak with Inquisitor Thorson there, his tasks are not those of The Brotherhood, but they serve our needs. Speak not to him of The Brotherhood.")
  130. end
  131. function dlg_5_9(NPC, Spawn)
  132. FaceTarget(NPC, Spawn)
  133. conversation = CreateConversation()
  134. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/thavian_destrus/fprt_hood04/quests/thavian/thavian013.mp3", "", "", 2160728632, 1584767054, Spawn)
  135. AddConversationOption(conversation, "All right.", "OfferQuest1")
  136. AddConversationOption(conversation, "No.")
  137. StartConversation(conversation, NPC, Spawn, "All right. You can start by delivering a message to the Lieutenant of the Ayr'Dal Brotherhood for me. What do you say? You'll find him on the western end of the northern portion of Beggar's Court. He'll be in a second level room. When you speak to him, tell him The Brotherhood Awaits, he will recognize you.")
  138. end
  139. function OfferQuest1(NPC, Spawn)
  140. FaceTarget(NPC, Spawn)
  141. OfferQuest(NPC, Spawn, HALFELF_MENTOR_QUEST_1)
  142. end