AssistantDVerin.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/AssistantDVerin.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.23 06:02:08
  5. Script Purpose :
  6. :
  7. --]]
  8. local ZarvonnsLegacy = 446
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if GetQuestStep(Spawn, ZarvonnsLegacy) == 4 then
  14. Option7(NPC, Spawn)
  15. else
  16. local conversation = CreateConversation()
  17. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_000.mp3", "", "", 488507344, 934868479, Spawn )
  18. AddConversationOption(conversation, "Good luck with that!")
  19. if GetQuestStep(Spawn, ZarvonnsLegacy) == 1 or GetQuestStep(Spawn, ZarvonnsLegacy) == 2 or GetQuestStep(Spawn, ZarvonnsLegacy) > 4 or HasCompletedQuest(Spawn, ZarvonnsLegacy) then
  20. if GetQuestStep(Spawn, ZarvonnsLegacy) == 2 then
  21. AddConversationOption(conversation, "I have some information the nomads said you'd like to hear.", "Option1")
  22. end
  23. end
  24. StartConversation(conversation, NPC, Spawn, "How did you make it past the servants?! Please don't tell me that I'll have to raise them all again.")
  25. end
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_001.mp3", "", "", 1673377021, 1518954597, Spawn)
  31. AddConversationOption(conversation, "I want answers first. Do you know where Zarvonn's tower is?", "Option2")
  32. StartConversation(conversation, NPC, Spawn, "They spoke with you?! They refuse to answer a single question I put to them! Hah! Well, out with it! What did they tell you? Head to the south and head to the west, and you will find the finger pointing to where the tower exists. Or perhaps, where it doesn't...")
  33. end
  34. function Option2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. local conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_002.mp3", "", "", 1413552200, 1819248587, Spawn)
  38. AddConversationOption(conversation, "Exactly. Do you know where he is?", "Option3")
  39. StartConversation(conversation, NPC, Spawn, "Hahaha! Fool! You're standing in it! This is Zarvonn's tower! But I think you really want to know about Zarvonn himself. Am I right?")
  40. end
  41. function Option3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. local conversation = CreateConversation()
  44. AddConversationOption(conversation, "She said that the evidence of Zarvonn's realm is found in the siege of time.", "Option4")
  45. StartConversation(conversation, NPC, Spawn, "If I did, I wouldn't be the servant to that witch upstairs. She's convinced that Zarvonn is still around here somewhere. I assist her in return for the necromantic magic she sparingly doles out to me. Now, tell me, did the nomads tell you where to find him?")
  46. end
  47. function Option4(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. local conversation = CreateConversation()
  50. AddConversationOption(conversation, "Do you think he's there?", "Option5")
  51. StartConversation(conversation, NPC, Spawn, "What? I have no idea what that means! Wait ... Siege. There are orcish skeletons around the old siege ruins. My mistress claims that she didn't raise them. It must be Zarvonn! That hag was saying that Zarvonn raised them! ")
  52. end
  53. function Option5(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. local conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_005.mp3", "", "", 3657921638, 3443274293, Spawn)
  57. AddConversationOption(conversation, "I'm intrigued by this. I'll bring some of them back.", "Option6")
  58. StartConversation(conversation, NPC, Spawn, "Who knows? Let's find out. If you go to the ruins, and bring back some bones from the odder-looking skeletons, I can find out if there's any trace of Zarvonn's magic left within them. If you do this, I'll tell the Mistress you wish to speak with her. She may tell you more about Zarvonn, though she'll probably do it a little bit at a time, over many months, while you run around doing chores for her.")
  59. end
  60. function Option6(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. SetStepComplete(Spawn, ZarvonnsLegacy, 2)
  63. local conversation = CreateConversation()
  64. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_006.mp3", "", "", 3616417494, 1126548906, Spawn)
  65. AddConversationOption(conversation, "I'll bring them back to you when I have them.")
  66. StartConversation(conversation, NPC, Spawn, "Travel to the east until you reach the ruins of the orcs most successful attempt at besieging Freeport. I'll need skulls from the more powerful undead you'll find there, and make sure the skulls aren't damaged.")
  67. end
  68. function Option7(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. local conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_007.mp3", "", "", 2402412467, 1844812193, Spawn)
  72. AddConversationOption(conversation, "So, are you going to announce me to your mistress or not?", "Option8")
  73. StartConversation(conversation, NPC, Spawn, "Let me see them... Yes, so strong. I can feel the necromantic energy running through them. I can gather Zarvonn's energies into a spell -- one that the Mistress will know nothing about. Hahahaha. Yes, this will do well.")
  74. end
  75. function Option8(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. SetStepComplete(Spawn, ZarvonnsLegacy, 4)
  78. local conversation = CreateConversation()
  79. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_008.mp3", "", "", 1641817282, 3511713899, Spawn)
  80. AddConversationOption(conversation, "I'll keep that in mind.")
  81. StartConversation(conversation, NPC, Spawn, "Yes, yes, go on. She's expecting you upstairs. I suggest you be polite, though it doesn't matter much to me what happens one way or the other.")
  82. end
  83. function respawn(NPC)
  84. end