OverseerMelicinn.lua 6.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/OverseerMelicinn.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.23 07:02:56
  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. local choice = math.random(1, 3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1051.mp3", "", "", 0, 0, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1051.mp3", "", "", 0, 0, Spawn)
  18. else
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1051.mp3", "", "", 0, 0, Spawn)
  20. end
  21. if GetQuestStep(Spawn, ZarvonnsLegacy) == 5 then
  22. local conversation = CreateConversation()
  23. AddConversationOption(conversation, "I don't take well to threats, mage.", "Option1")
  24. StartConversation(conversation, NPC, Spawn, "D'Verin is a stupid little child with small aspirations. She also is a liar as well. I have watched you since you entered my tower and know what transpires between you and her. She sent you to me so that I would kill you, as I do with any unwelcome guests. Count yourself fortunate that I am in immediate need of someone like you.")
  25. elseif GetQuestStep(Spawn, ZarvonnsLegacy) == 7 then
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "Hmm... How do I know that you speak the truth?", "Option8")
  28. StartConversation(conversation, NPC, Spawn, "Yes, I can almost smell Zarvonn's weaving on it. Let me apply it to the stone... YES! This is exactly what I was expecting... I can see the shimmering of the veil separating us from him.")
  29. end
  30. end
  31. function Option1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. AddConversationOption(conversation, "I see. Very well, then... you said you had need of me?", "Option3")
  35. StartConversation(conversation, NPC, Spawn, "And I don't have much patience for those who are insolent. D'Verin is planning on creating a spell from the skulls of those undead I planted amongst the orcs' dead. What she doesn't know is that the enchantments bestowed upon those skulls weren't placed by Zarvonn. Instead, they were placed by me with the intent to kill her and her alone. I wouldn't waste that amount of time on you, understand? This will be the only time I warn you.")
  36. end
  37. function Option3(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. local conversation = CreateConversation()
  40. PlayAnimation(NPC, 11882)
  41. AddConversationOption(conversation, "I don't understand. What do you mean by ''transposed''?", "Option4")
  42. StartConversation(conversation, NPC, Spawn, "Yes... from your conversation with D'Verin, it seems you are seeking the great Necromancer Zarvonn. This is my same goal, and after twenty years, I believe I may have found a way to locate where he transposed himself.")
  43. end
  44. function Option4(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. local conversation = CreateConversation()
  47. AddConversationOption(conversation, "And I assume this magic is where I come in, correct?", "Option5")
  48. StartConversation(conversation, NPC, Spawn, "When Zarvonn disappeared over a century and a half ago, I believe he never actually left. I think he's actually still here, except frozen in time, by his own doing. I believe that I can finally unlock the mystery of this rock, which I believe to be the gateway to where he's at. All I need is the smallest trace of Zarvonn's magic that was used around the time he shifted away. And now, I have finally tracked down where to get it.")
  49. end
  50. function Option5(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. AddConversationOption(conversation, "I'll agree to do this, but I demand to know why.", "Option6")
  54. AddConversationOption(conversation, "I don't trust your willingness to work with me. I'll have to think about this one.")
  55. StartConversation(conversation, NPC, Spawn, "I do not make deals with people, but I am in the unique situation that I am forced to do so. If you gather this residual trace of his magic for my incantation, I will make an effort not to turn you into something unnatural. Are we agreed?")
  56. end
  57. function Option6(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. AddConversationOption(conversation, "Hmmm... I see... very well. What do you need?", "Option7")
  61. StartConversation(conversation, NPC, Spawn, "It's simple, really. I cannot trust my assistant, for she has been trying to murder me for as long as I can remember. I also cannot leave this stone unattended until the final part of the ritual is complete. And finally... I don't know what will be waiting for me on the other side of this portal. If you come back alive, then I'll know it's safe... then finally reap the rewards of my diligence.")
  62. end
  63. function Option7(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. SetStepComplete(Spawn, ZarvonnsLegacy, 5)
  66. local conversation = CreateConversation()
  67. AddConversationOption(conversation, "I will be back when I have its residue.")
  68. StartConversation(conversation, NPC, Spawn, "In the center of the Commonlands is a graveyard that is almost as old as this tower. I have seen a ghost within that graveyard that has been bound to this world for as long as the graveyard has been there. I believe that ghost was one of Zarvonn's first undead to be raised. Patiently wait for it to rise, destroy it, and bring back its ectoplasmic residue. With that residue, I can examine the magic used to raise it... which might allow me to unlock the mystery of this stone.")
  69. end
  70. function Option8(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. SetStepComplete(Spawn, ZarvonnsLegacy, 7)
  73. local conversation = CreateConversation()
  74. AddConversationOption(conversation, "I'll see you again, Melicinn.")
  75. StartConversation(conversation, NPC, Spawn, "How dare you question me!? Look into the stone yourself if you disbelieve. Anyone of your associates will view what you view. Now... step through and you will find where Zarvonn's abode is. If you return... well, then I will know it is safe to continue my research on the other side, won't I? Good luck, adventurer.")
  76. end
  77. function respawn(NPC)
  78. end