MasterEldinNecrosis.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --[[
  2. Script Name : SpawnScripts/NektroposCastle/MasterEldinNecrosis.lua
  3. Script Purpose : Master Eldin Necrosis
  4. Script Author : smash
  5. Script Date : 2016.01.24
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. ProvidesQuest(NPC, 174)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if CanReceiveQuest(Spawn, 174) then
  14. Dialog1(NPC, Spawn)
  15. elseif HasQuest(Spawn, 174) and GetQuestStep(Spawn, 174) ~= 11 then
  16. Dialog2(NPC, Spawn)
  17. elseif HasCompletedQuest(Spawn, 174) then
  18. Dialog3(NPC, Spawn)
  19. else
  20. Dialog4(NPC, Spawn)
  21. end
  22. end
  23. function Dialog1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. local conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/master_eldin_necrosis_/nektropos/eldin001.mp3", "", "", 1924861304, 1919830896, Spawn)
  27. AddConversationOption(conversation, "Wait a minute! Who are you?", "Dialog1_1")
  28. AddConversationOption(conversation, "Ok crazy, I'm getting out of here. Goodbye!")
  29. StartConversation(conversation, NPC, Spawn, "Who are you? Who dares to challenge the might of Eldin?")
  30. end
  31. function Dialog1_1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/master_eldin_necrosis_/nektropos/eldin002.mp3", "", "", 2253492197, 1707213719, Spawn)
  35. AddConversationOption(conversation, "Okay, so what are you doing here?", "Dialog1_2")
  36. AddConversationOption(conversation, "Yeah right. Okay well have fun Eldin... goodbye.")
  37. StartConversation(conversation, NPC, Spawn, "Fool! Don't you recognize the power of the unliving? I am Eldin, and I am the greatest necromancer to ever live!")
  38. end
  39. function Dialog1_2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. local conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/master_eldin_necrosis_/nektropos/eldin003.mp3", "", "", 3928579694, 2557793051, Spawn)
  43. AddConversationOption(conversation, "Okay, so what's the wall you've hit?", "Dialog1_3")
  44. AddConversationOption(conversation, "I'm sorry I hate the dead, I need to get out of here!")
  45. StartConversation(conversation, NPC, Spawn, "Well, honestly, I hit a wall. This castle is haunted and contains some of the most powerful spirits I've ever encountered. I hoped to use some of them and expand my army of undead minions.")
  46. end
  47. function Dialog1_3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. local conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/master_eldin_necrosis_/nektropos/eldin004.mp3", "", "", 3224153706, 3957572596, Spawn)
  51. AddConversationOption(conversation, "Is there anything I can do to help?", "Dialog1_4")
  52. AddConversationOption(conversation, "That's too bad. Well better luck next time, I'm afraid I've other matters to attend to.")
  53. StartConversation(conversation, NPC, Spawn, "These other spirits draw undue attention to my presence here. It's hard to sneak up on your prey if they already know from which direction you're coming. I fear I may have to leave the castle empty-handed.")
  54. end
  55. function Dialog1_4(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/master_eldin_necrosis_/nektropos/eldin005.mp3", "", "", 684634683, 4205425239, Spawn)
  59. AddConversationOption(conversation, "Alright, I'll do it but I expect to be well paid for my time!", "OfferTrinketsOfTheDead")
  60. AddConversationOption(conversation, "If you're so powerful, you don't need my help. Goodbye!")
  61. StartConversation(conversation, NPC, Spawn, "Perhaps you can help. But you aren't nearly as powerful in the undead arts as I am! If you go in there and dissipate a few ghosts, they may leave something personal behind. This is all I need to seize control of these unruly spirits.")
  62. end
  63. function Dialog2(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. PlayFlavor(NPC, "", "Why are you here? Useless! You're the worst minion I've ever had in my employ. Now, go out there and finish what I've asked you to do! ", "tapfoot", 1689589577, 4560189, Spawn)
  66. end
  67. function Dialog3(NPC, Spawn)
  68. local conversation = CreateConversation()
  69. FaceTarget(NPC, Spawn)
  70. AddConversationOption(conversation, "Ok crazy, I'm getting out of here. Goodbye!")
  71. StartConversation(conversation, NPC, Spawn, "Who are you? Who dares to challenge the might of Eldin?", "voiceover/english/master_eldin_necrosis_/nektropos/eldin001.mp3", 1924861304, 1919830896)
  72. end
  73. function Dialog4(NPC, Spawn)
  74. local conversation = CreateConversation()
  75. FaceTarget(NPC, Spawn)
  76. AddConversationOption(conversation, "I'll keep you in mind. Farewell Eldin.")
  77. StartConversation(conversation, NPC, Spawn, "Welcome back! Perhaps you're not as useless as you appear. Many thanks for all your hard work. Here is the coin I promised you. I appreciate your efforts! If you wish to help me again, I will pay you equally as well.", "voiceover/english/master_eldin_necrosis_/nektropos/eldin007.mp3", 2193129488, 1209581027)
  78. SetStepComplete(Spawn, 174, 11)
  79. end
  80. function OfferTrinketsOfTheDead(NPC, Spawn)
  81. OfferQuest(NPC, Spawn, 174)
  82. end