OrwenNeovra.lua 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/OrwenNeovra.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.21 09:02:56
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. local TheSearchForArianna = 5211
  10. local DoubleCrossNRevenge = 5512
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, TheSearchForArianna)
  13. human(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. if not HasQuest(Spawn, TheSearchForArianna) and not HasCompletedQuest(Spawn, TheSearchForArianna) then
  18. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra001.mp3", "", "", 1077223898, 923115266, Spawn)
  19. conversation = CreateConversation()
  20. AddConversationOption(conversation, "Who are you talking about?", "dlg1")
  21. AddConversationOption(conversation, "I'll stay out of your way.")
  22. StartConversation(conversation, NPC, Spawn, "She's gone! There was nothing I could do. Once I finish this cutter, that will all change. I got a few scars that I need to return to their dealers.")
  23. elseif GetQuestStep(Spawn, TheSearchForArianna) == 1 then
  24. conversation = CreateConversation()
  25. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra004.mp3", "", "", 4138977626, 707724934, Spawn)
  26. AddConversationOption(conversation, "I'll return when I know more.")
  27. StartConversation(conversation, NPC, Spawn, "What word have you of my wife? Why do you return? Don't toy with me, less you wish I test my blade on your flesh.")
  28. elseif GetQuestStep(Spawn, TheSearchForArianna) == 2 then
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra005.mp3", "", "", 3462277209, 3891009395, Spawn)
  31. AddConversationOption(conversation, "I have some news regarding Ariana.", "dlg2")
  32. StartConversation(conversation, NPC, Spawn, "That look on your face ... I fear what news you bear. ")
  33. elseif HasCompletedQuest(Spawn, TheSearchForArianna) and not HasQuest(Spawn, DoubleCrossNRevenge)then
  34. completed(NPC, Spawn)
  35. elseif GetQuestStep(Spawn, DoubleCrossNRevenge) == 2 then
  36. dlg2_1(NPC, Spawn)
  37. elseif HasCompletedQuest(Spawn, TheSearchForArianna) and HasCompletedQuest(Spawn, DoubleCrossNRevenge) then
  38. completed2(NPC, Spawn)
  39. end
  40. end
  41. function dlg1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra002.mp3", "", "", 3552530226, 2927764176, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "Maybe I could help look for her while you finish your weapon?", "offer")
  46. AddConversationOption(conversation, "I'll stay out of your way.")
  47. StartConversation(conversation, NPC, Spawn, "My wife, Ariana. Bleeding in the dust, I watched the orcs drag her away. But when I finish this blade, I'll retrieve her from the grasp of those evil orcs!")
  48. end
  49. function dlg2(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. SetStepComplete(Spawn, TheSearchForArianna, 2)
  52. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra006.mp3", "", "", 3164653633, 3625417674, Spawn)
  53. conversation = CreateConversation()
  54. AddConversationOption(conversation, "Thank you and good luck to you.")
  55. StartConversation(conversation, NPC, Spawn, "My beloved Ariana, she was a wonderful woman. I'll keep her memories along with this necklace. Now that she is gone, I have no need for this blade. Here, take it with you. Maybe it will serve you a better fate than it served me.")
  56. end
  57. function dlg2_1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra008.mp3", "", "", 3130407316, 2865401233, Spawn)
  60. conversation = CreateConversation()
  61. AddConversationOption(conversation, "There is something you need to know.", "dlg2_2")
  62. StartConversation(conversation, NPC, Spawn, "Why have you returned? What is it you want?")
  63. end
  64. function dlg2_2(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. local conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra009.mp3", "", "", 4013708046, 1230365972, Spawn)
  68. AddConversationOption(conversation, "Well... it's like this...", "dlg2_3")
  69. StartConversation(conversation, NPC, Spawn, "Indeed. And just what is it that I need to know?")
  70. end
  71. function dlg2_3(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. local conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra010.mp3", "", "", 3257599221, 596125004, Spawn)
  75. AddConversationOption(conversation, "I see.", "dlg2_4")
  76. StartConversation(conversation, NPC, Spawn, "I see. I bear no malice towards you. I knew deep within my soul she was still alive, that's why I started working on another blade -- one just as keen and deadly.")
  77. end
  78. function dlg2_4(NPC, Spawn)
  79. SetStepComplete(Spawn, DoubleCrossNRevenge, 2)
  80. FaceTarget(NPC, Spawn)
  81. local conversation = CreateConversation()
  82. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra011.mp3", "", "", 2265339342, 3606681884, Spawn)
  83. AddConversationOption(conversation, "Thank you.", "dlg2_5")
  84. StartConversation(conversation, NPC, Spawn, "Please accept this blade, it's the twin to the first, and with the news you bring I see it only fitting that the two be united.")
  85. end
  86. function dlg2_5(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. local conversation = CreateConversation()
  89. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra012.mp3", "", "", 2944541827, 2877536670, Spawn)
  90. AddConversationOption(conversation, "I understand.")
  91. StartConversation(conversation, NPC, Spawn, "If you'll excuse me. I've much to plan for, and apparently, not very much time.")
  92. end
  93. function completed(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra007.mp3", "", "", 525715332, 1987571715, Spawn)
  96. conversation = CreateConversation()
  97. AddConversationOption(conversation, "Be at peace Orwen.")
  98. StartConversation(conversation, NPC, Spawn, "Leave me to grieve in peace. ")
  99. end
  100. function completed2(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra013.mp3", "", "", 308445949, 2635437472, Spawn)
  103. conversation = CreateConversation()
  104. AddConversationOption(conversation, "I understand.")
  105. StartConversation(conversation, NPC, Spawn, "I've no time for idle chit chat.")
  106. end
  107. function offer(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. OfferQuest(NPC, Spawn, TheSearchForArianna)
  110. end
  111. function respawn(NPC)
  112. end