9
3

OrwenNeovra.lua 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. local TheSearchForArianna = 5211
  9. local DoubleCrossNRevenge = 5512
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TheSearchForArianna)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if not HasQuest(Spawn, TheSearchForArianna) and not HasCompletedQuest(Spawn, TheSearchForArianna) then
  16. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra001.mp3", "", "", 1077223898, 923115266, Spawn)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "Who are you talking about?", "dlg1")
  19. AddConversationOption(conversation, "I'll stay out of your way.")
  20. 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.")
  21. elseif GetQuestStep(Spawn, TheSearchForArianna) == 1 then
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra004.mp3", "", "", 4138977626, 707724934, Spawn)
  24. AddConversationOption(conversation, "I'll return when I know more.")
  25. 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.")
  26. elseif GetQuestStep(Spawn, TheSearchForArianna) == 2 then
  27. conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra005.mp3", "", "", 3462277209, 3891009395, Spawn)
  29. AddConversationOption(conversation, "I have some news regarding Ariana.", "dlg2")
  30. StartConversation(conversation, NPC, Spawn, "That look on your face ... I fear what news you bear. ")
  31. elseif HasCompletedQuest(Spawn, TheSearchForArianna) and not HasQuest(Spawn, DoubleCrossNRevenge)then
  32. completed(NPC, Spawn)
  33. elseif GetQuestStep(Spawn, DoubleCrossNRevenge) == 2 then
  34. dlg2_1(NPC, Spawn)
  35. elseif HasCompletedQuest(Spawn, TheSearchForArianna) and HasCompletedQuest(Spawn, DoubleCrossNRevenge) then
  36. completed2(NPC, Spawn)
  37. end
  38. end
  39. function dlg1(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra002.mp3", "", "", 3552530226, 2927764176, Spawn)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "Maybe I could help look for her while you finish your weapon?", "offer")
  44. AddConversationOption(conversation, "I'll stay out of your way.")
  45. 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!")
  46. end
  47. function dlg2(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. SetStepComplete(Spawn, TheSearchForArianna, 2)
  50. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra006.mp3", "", "", 3164653633, 3625417674, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "Thank you and good luck to you.")
  53. 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.")
  54. end
  55. function dlg2_1(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra008.mp3", "", "", 3130407316, 2865401233, Spawn)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "There is something you need to know.", "dlg2_2")
  60. StartConversation(conversation, NPC, Spawn, "Why have you returned? What is it you want?")
  61. end
  62. function dlg2_2(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. local conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra009.mp3", "", "", 4013708046, 1230365972, Spawn)
  66. AddConversationOption(conversation, "Well... it's like this...", "dlg2_3")
  67. StartConversation(conversation, NPC, Spawn, "Indeed. And just what is it that I need to know?")
  68. end
  69. function dlg2_3(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. local conversation = CreateConversation()
  72. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra010.mp3", "", "", 3257599221, 596125004, Spawn)
  73. AddConversationOption(conversation, "I see.", "dlg2_4")
  74. 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.")
  75. end
  76. function dlg2_4(NPC, Spawn)
  77. SetStepComplete(Spawn, DoubleCrossNRevenge, 2)
  78. FaceTarget(NPC, Spawn)
  79. local conversation = CreateConversation()
  80. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra011.mp3", "", "", 2265339342, 3606681884, Spawn)
  81. AddConversationOption(conversation, "Thank you.", "dlg2_5")
  82. 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.")
  83. end
  84. function dlg2_5(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. local conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra012.mp3", "", "", 2944541827, 2877536670, Spawn)
  88. AddConversationOption(conversation, "I understand.")
  89. StartConversation(conversation, NPC, Spawn, "If you'll excuse me. I've much to plan for, and apparently, not very much time.")
  90. end
  91. function completed(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra007.mp3", "", "", 525715332, 1987571715, Spawn)
  94. conversation = CreateConversation()
  95. AddConversationOption(conversation, "Be at peace Orwen.")
  96. StartConversation(conversation, NPC, Spawn, "Leave me to grieve in peace. ")
  97. end
  98. function completed2(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra013.mp3", "", "", 308445949, 2635437472, Spawn)
  101. conversation = CreateConversation()
  102. AddConversationOption(conversation, "I understand.")
  103. StartConversation(conversation, NPC, Spawn, "I've no time for idle chit chat.")
  104. end
  105. function offer(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. OfferQuest(NPC, Spawn, TheSearchForArianna)
  108. end
  109. function respawn(NPC)
  110. end