OrwenNeovra.lua 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. function spawn(NPC)
  10. ProvidesQuest(NPC, TheSearchForArianna)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if not HasQuest(Spawn, TheSearchForArianna) and not HasCompletedQuest(Spawn, TheSearchForArianna) then
  15. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra001.mp3", "", "", 1077223898, 923115266, Spawn)
  16. conversation = CreateConversation()
  17. AddConversationOption(conversation, "Who are you talking about?", "dlg1")
  18. AddConversationOption(conversation, "I'll stay out of your way.")
  19. 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.")
  20. elseif GetQuestStep(Spawn, TheSearchForArianna) == 1 then
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra004.mp3", "", "", 4138977626, 707724934, Spawn)
  23. AddConversationOption(conversation, "I'll return when I know more.")
  24. 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.")
  25. elseif GetQuestStep(Spawn, TheSearchForArianna) == 2 then
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra005.mp3", "", "", 3462277209, 3891009395, Spawn)
  28. AddConversationOption(conversation, "I have some news regarding Ariana.", "dlg2")
  29. StartConversation(conversation, NPC, Spawn, "That look on your face ... I fear what news you bear. ")
  30. elseif HasCompletedQuest(Spawn, TheSearchForArianna) then
  31. completed(NPC, Spawn)
  32. end
  33. end
  34. function dlg1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra002.mp3", "", "", 3552530226, 2927764176, Spawn)
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "Maybe I could help look for her while you finish your weapon?", "offer")
  39. AddConversationOption(conversation, "I'll stay out of your way.")
  40. 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!")
  41. end
  42. function dlg2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. SetStepComplete(Spawn, TheSearchForArianna, 2)
  45. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra006.mp3", "", "", 3164653633, 3625417674, Spawn)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "Thank you and good luck to you.")
  48. 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.")
  49. end
  50. function completed(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. PlayFlavor(NPC, "voiceover/english/orwen_neovra/commonlands/quests/orwen_neovra/orwen_neovra007.mp3", "", "", 525715332, 1987571715, Spawn)
  53. conversation = CreateConversation()
  54. AddConversationOption(conversation, "Be at peace Orwen.")
  55. StartConversation(conversation, NPC, Spawn, "Leave me to grieve in peace. ")
  56. end
  57. function offer(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. OfferQuest(NPC, Spawn, TheSearchForArianna)
  60. end
  61. function respawn(NPC)
  62. end