ArianaNeovra.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/WailingCaves/ArianaNeovra.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.23 07:02:59
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheSearchForArianna = 5211
  9. local DoubleCrossNRevenge = 5512
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra001.mp3", "", "", 3268815580, 3756097310, Spawn)
  16. conversation = CreateConversation()
  17. if GetQuestStep(Spawn, TheSearchForArianna) == 1 then
  18. AddConversationOption(conversation, "Orwen sent me to look for you.", "dlg1")
  19. elseif HasQuest(Spawn, DoubleCrossNRevenge) and GetQuestStep(Spawn, TheSearchForArianna) == 2 then
  20. AddConversationOption(conversation, "Ok, I'll be going then.")
  21. StartConversation(conversation, NPC, Spawn, "There's more than meets the eye here, friend. Don't fret! My destiny is by choice.")
  22. elseif HasCompletedQuest(Spawn, TheSearchForArianna) and not HasQuest(Spawn, DoubleCrossNRevenge) and not HasCompletedQuest(Spawn, DoubleCrossNRevenge) then
  23. dlg3(NPC, Spawn)
  24. elseif GetQuestStep(Spawn, DoubleCrossNRevenge) == 1 then
  25. dlg6(NPC, Spawn)
  26. elseif GetQuestStep(Spawn, DoubleCrossNRevenge) == 2 or HasCompletedQuest(Spawn, DoubleCrossNRevenge) then
  27. dlg7(NPC, Spawn)
  28. end
  29. end
  30. function dlg1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra002.mp3", "", "", 612826065, 22365633, Spawn)
  33. conversation = CreateConversation()
  34. AddConversationOption(conversation, "I see, go on.", "dlg2")
  35. StartConversation(conversation, NPC, Spawn, "I miss Orwen so much, but you must understand that I chose to stay here. The orcs were planning an attack on my people, and I made a deal to cooperate with them and halt the attack. While I 'm forced to stay here, at least I know my people, especially Orwen, are safe.")
  36. end
  37. function dlg2(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra003.mp3", "", "", 1549784933, 2459194121, Spawn)
  40. SetStepComplete(Spawn, TheSearchForArianna, 1)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "You are very brave, I'll take this back to Orwen.")
  43. StartConversation(conversation, NPC, Spawn, "If Orwen comes looking for me, they will kill us both and launch their attack. You must make Orwen believe I'm gone. This will force him to move on. Here, take this necklace back to him. He knows I would never part with this necklace if I were alive.")
  44. end
  45. function dlg3(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra004.mp3", "", "", 484499425, 2010511061, Spawn)
  48. conversation = CreateConversation()
  49. AddConversationOption(conversation, "Go on.", "dlg4")
  50. StartConversation(conversation, NPC, Spawn, "I'm so glad you came back! I overheard the jailers, and it seems they still plan on attacking my people.")
  51. end
  52. function dlg4(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra005.mp3", "", "", 1614077631, 2611160815, Spawn)
  55. local conversation = CreateConversation()
  56. AddConversationOption(conversation, "Of course I will.", "dlg5")
  57. AddConversationOption(conversation, "I'll have to think about it.")
  58. StartConversation(conversation, NPC, Spawn, "My husband and our people will be completely unprepared. They don't stand a chance. You must warn them! Will you help me?")
  59. end
  60. function dlg5(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. local conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra006.mp3", "", "", 3729734865, 2466870491, Spawn)
  64. AddConversationOption(conversation, "I see, go on.", "offer")
  65. StartConversation(conversation, NPC, Spawn, "Before you warn my husband, you have to delay the orc attack.")
  66. end
  67. function dlg6(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. local conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/ariana_neovra/ariana_neovra008.mp3", "", "", 3146386247, 640599079, Spawn)
  71. AddConversationOption(conversation, "I will.")
  72. StartConversation(conversation, NPC, Spawn, "Why do you delay? Every moment counts! Please hurry! Please!")
  73. end
  74. function dlg7(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. local conversation = CreateConversation()
  77. AddConversationOption(conversation, "Of course.")
  78. StartConversation(conversation, NPC, Spawn, "I don't know what you did, but whatever it was really angered the orcs! Quickly, hurry and warn my husband.")
  79. end
  80. function offer(NPC, Spawn)
  81. OfferQuest(NPC, Spawn, DoubleCrossNRevenge)
  82. end
  83. function InRange(NPC, Spawn)
  84. if HasCompletedQuest(Spawn, TheSearchForArianna) and not HasCompletedQuest(Spawn, DoubleCrossNRevenge) then
  85. PlayFlavor(NPC, "voiceover/english/ariana_neovra/wailingcaves/human/015_qs_human_female_jail_slave_callout_22ab8a6a.mp3", "Who is there? Is that you again? Please come quickly, I must speak with you.", "", 798980918, 1352219848, Spawn)
  86. ProvidesQuest(NPC, DoubleCrossNRevenge)
  87. end
  88. end
  89. function respawn(NPC)
  90. end