9
3

AssistantDVerin.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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) == 1 or GetQuestStep(Spawn, ZarvonnsLegacy) == 2 or GetQuestStep(Spawn, ZarvonnsLegacy) > 4 or HasCompletedQuest(Spawn, ZarvonnsLegacy) then
  14. local conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_000.mp3", "", "", 488507344, 934868479, Spawn )
  16. AddConversationOption(conversation, "Good luck with that!")
  17. if GetQuestStep(Spawn, ZarvonnsLegacy) == 2 then
  18. AddConversationOption(conversation, "I have some information the nomads said you'd like to hear.", "Option1")
  19. end
  20. 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.")
  21. elseif GetQuestStep(Spawn, ZarvonnsLegacy) == 4 then
  22. Option7(NPC, Spawn)
  23. end
  24. end
  25. function Option1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. local conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_001.mp3", "", "", 1673377021, 1518954597, Spawn)
  29. AddConversationOption(conversation, "I want answers first. Do you know where Zarvonn's tower is?", "Option2")
  30. 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...")
  31. end
  32. function Option2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_002.mp3", "", "", 1413552200, 1819248587, Spawn)
  36. AddConversationOption(conversation, "Exactly. Do you know where he is?", "Option3")
  37. 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?")
  38. end
  39. function Option3(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. local conversation = CreateConversation()
  42. AddConversationOption(conversation, "She said that the evidence of Zarvonn's realm is found in the siege of time.", "Option4")
  43. 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?")
  44. end
  45. function Option4(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. AddConversationOption(conversation, "Do you think he's there?", "Option5")
  49. 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! ")
  50. end
  51. function Option5(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. local conversation = CreateConversation()
  54. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_005.mp3", "", "", 3657921638, 3443274293, Spawn)
  55. AddConversationOption(conversation, "I'm intrigued by this. I'll bring some of them back.", "Option6")
  56. 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.")
  57. end
  58. function Option6(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. SetStepComplete(Spawn, ZarvonnsLegacy, 2)
  61. local conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_006.mp3", "", "", 3616417494, 1126548906, Spawn)
  63. AddConversationOption(conversation, "I'll bring them back to you when I have them.")
  64. 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.")
  65. end
  66. function Option7(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. local conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_007.mp3", "", "", 2402412467, 1844812193, Spawn)
  70. AddConversationOption(conversation, "So, are you going to announce me to your mistress or not?", "Option8")
  71. 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.")
  72. end
  73. function Option8(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. SetStepComplete(Spawn, ZarvonnsLegacy, 4)
  76. local conversation = CreateConversation()
  77. PlayFlavor(NPC, "voiceover/english/assistant_d_verin/commonlands/qst_assistantdverin_008.mp3", "", "", 1641817282, 3511713899, Spawn)
  78. AddConversationOption(conversation, "I'll keep that in mind.")
  79. 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.")
  80. end
  81. function respawn(NPC)
  82. end