TorliBlackbow.lua 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/TorliBlackbow.lua
  3. Script Purpose : Torli Blackbow
  4. Script Author : theFoof
  5. Script Date : 2013.06.13
  6. Script Notes :
  7. --]]
  8. local SeekingEducation = 63
  9. local NapEvigis = 64
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, NapEvigis)
  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 GetQuestStep(Spawn, SeekingEducation) == 1 then
  20. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_001.mp3", "", "", 3560007019, 2375962342, Spawn)
  21. AddConversationOption(conversation, "My name is " .. GetName(Spawn) .. ". I was sent by Thirin Veliumdelver.", "Quest1Chat_1")
  22. StartConversation(conversation, NPC, Spawn, "Who have we here?")
  23. elseif GetQuestStep(Spawn, SeekingEducation) == 2 then
  24. PlayFlavor(NPC, "", "Speak with Gerla Meltwater. She is our wisest spellweaver. You'll find her in Glacierbane's Vault, in New Halas.", "nod", 0, 0, Spawn)
  25. elseif GetQuestStep(Spawn, SeekingEducation) == 3 then
  26. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_008.mp3", "", "", 3421952794, 3873415326, Spawn)
  27. AddConversationOption(conversation, "She sent me back with this satchel for you.", "Quest1Chat_7")
  28. StartConversation(conversation, NPC, Spawn, "Ye return, " .. GetName(Spawn) .. "! Tell me, what did Spellweaver Meltwater advise?")
  29. elseif HasCompletedQuest(Spawn, SeekingEducation) and not HasCompletedQuest(Spawn, NapEvigis) and not HasQuest(Spawn, NapEvigis) then
  30. Quest2Chat_1(NPC, Spawn)
  31. elseif GetQuestStep(Spawn, NapEvigis) == 1 then
  32. PlayFlavor(NPC, "", "Brell's blessings upon ye as ye face Evigis, brave one!", "agree", 0, 0, Spawn)
  33. elseif GetQuestStep(Spawn, NapEvigis) == 2 then
  34. AddConversationOption(conversation, "I did. Evigis the Ancient slumbers, once more.", "Quest2Chat_4")
  35. StartConversation(conversation, NPC, Spawn, "Ye return and such a sight ye are! Did you succeed, " .. GetName(Spawn) .. "?")
  36. elseif HasCompletedQuest(Spawn, NapEvigis) then
  37. PlayFlavor(NPC, "", "My, look what drifted in with the snow! Welcome back, brave one!", "hello", 0, 0, Spawn)
  38. end
  39. end
  40. function Quest1Chat_1(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_002.mp3", "", "", 1601353175, 2170594653, Spawn)
  44. AddConversationOption(conversation, "We found a large ice and velium elemental living below New Halas!", "Quest1Chat_2")
  45. StartConversation(conversation, NPC, Spawn, "Veliumdelver? That stubborn stone's stationed at Cragged Spine. Why would he send ye to me?")
  46. end
  47. function Quest1Chat_2(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_003.mp3", "", "", 3538220054, 491792113, Spawn)
  51. AddConversationOption(conversation, "It killed Ordin Sleetfoot.", "Quest1Chat_3")
  52. StartConversation(conversation, NPC, Spawn, "Are you certain, " .. GetName(Spawn) .. "?")
  53. end
  54. function Quest1Chat_3(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_004.mp3", "", "", 1850979310, 1092709933, Spawn)
  58. AddConversationOption(conversation, "We could go in and kill it.", "Quest1Chat_4")
  59. AddConversationOption(conversation, "Me too.", "Quest1Chat_5")
  60. StartConversation(conversation, NPC, Spawn, "Brell damn it! If the ongoing struggle with the brutal Ry'Gorr wasn't enough. I am glad ye told me. I just wish I knew what to do.")
  61. end
  62. function Quest1Chat_4(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_005.mp3", "", "", 2755216840, 3266695694, Spawn)
  66. AddConversationOption(conversation, "I know.", "Quest1Chat_5")
  67. AddConversationOption(conversation, "It was worth a shot.", "Quest1Chat_5")
  68. AddConversationOption(conversation, "Says you.", "Quest1Chat_5")
  69. StartConversation(conversation, NPC, Spawn, "Ha! Violence is an answer, but not necessarily THE answer, brave one.")
  70. end
  71. function Quest1Chat_5(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_006.mp3", "", "", 2649012761, 1864543312, Spawn)
  75. AddConversationOption(conversation, "Glacierbane's Vault?", "Quest1Chat_6")
  76. StartConversation(conversation, NPC, Spawn, "Speak with Gerla Meltwater. She is our wisest spellweaver. You'll find her in Glacierbane's Vault, in New Halas.")
  77. end
  78. function Quest1Chat_6(NPC, Spawn)
  79. SetStepComplete(Spawn, SeekingEducation, 1)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_007.mp3", "", "", 1644016563, 4176143932, Spawn)
  83. AddConversationOption(conversation, "I'll speak with her.")
  84. StartConversation(conversation, NPC, Spawn, "It is our house of arcane knowledge and library to the Spear of the Spellweavers, our battle hardened mages. She'll know what to do.")
  85. end
  86. function Quest1Chat_7(NPC, Spawn)
  87. if HasItem(Spawn, 7666) then
  88. RemoveItem(Spawn, 7666)
  89. end
  90. SetStepComplete(Spawn, SeekingEducation, 3)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_009.mp3", "", "", 2780367632, 539709516, Spawn)
  94. AddConversationOption(conversation, "Thank you.", "Quest2Chat_1")
  95. StartConversation(conversation, NPC, Spawn, "Thank ye, and take this. I got a feeling it will be useful.")
  96. end
  97. function Quest2Chat_1(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. conversation = CreateConversation()
  100. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_010.mp3", "", "", 1175740555, 3997329463, Spawn)
  101. AddConversationOption(conversation, "What do you mean?", "Quest2Chat_2")
  102. StartConversation(conversation, NPC, Spawn, "Once more it seems we must lean on you, brave one.")
  103. end
  104. function Quest2Chat_2(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. conversation = CreateConversation()
  107. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_011.mp3", "", "", 772395501, 910422100, Spawn)
  108. AddConversationOption(conversation, "What did it say?", "Quest2Chat_3")
  109. StartConversation(conversation, NPC, Spawn, "Gerla's satchel contained a potion and a note.")
  110. end
  111. function Quest2Chat_3(NPC, Spawn)
  112. FaceTarget(NPC, Spawn)
  113. conversation = CreateConversation()
  114. PlayFlavor(NPC, "torli_blackbow/halas/new_halas_guard_house/torli_blackaxe_012.mp3", "", "", 1978800607, 2542267623, Spawn)
  115. AddConversationOption(conversation, "I can do that!", "OfferNapEvigis")
  116. AddConversationOption(conversation, "I am not going back down there. No way!")
  117. StartConversation(conversation, NPC, Spawn, "We must induce slumber, once more! Cast this spell upon the elemental, but first ye must be sure to tire it out. Inflict upon it great harm thus making it susceptible to the potion's magick.")
  118. end
  119. function Quest2Chat_4(NPC, Spawn)
  120. SetStepComplete(Spawn, NapEvigis, 2)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. AddConversationOption(conversation, "Thank you.")
  124. AddConversationOption(conversation, "I did what I could.")
  125. AddConversationOption(conversation, "They had better!")
  126. StartConversation(conversation, NPC, Spawn, "That is a relief to one and all! Ye've accomplished great things on our floating land. No doubt songs of your success will be sung at The Ice Breaker this night!")
  127. end
  128. function OfferNapEvigis(NPC, Spawn)
  129. OfferQuest(NPC, Spawn, NapEvigis)
  130. end