Qalantir.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --[[
  2. Script Name : SpawnScripts/Freeport/Qalantir.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.02 07:07:29
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheFallenRetriever = 5274
  9. function spawn(NPC)
  10. AddTimer(NPC, 15000, "idle_animation")
  11. end
  12. function idle_animation(NPC, Spawn)
  13. PlayAnimation(NPC, 12030)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local conversation = CreateConversation()
  18. PlayFlavor(NPC, "qalantir/fprt_north/qalantir000.mp3", "", "hail", 1831944528, 4173356815, Spawn)
  19. if GetQuestStep(Spawn, TheFallenRetriever) == 2 then
  20. AddConversationOption(conversation, "I have some questions about Horatio. ", "Option1")
  21. elseif GetQuestStep(Spawn, TheFallenRetriever) == 4 then
  22. AddConversationOption(conversation, "I have filled all the vials that you requested.", "Option8")
  23. end
  24. AddConversationOption(conversation, "I am just passing through.")
  25. StartConversation(conversation, NPC, Spawn, "Good day! How can I help you, my friend? Do you stand before me in search of knowledge?")
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. PlayFlavor(NPC, "qalantir/fprt_north/qalantir001.mp3", "", "yes", 22442081, 824276178, Spawn)
  31. AddConversationOption(conversation, "I found a letter that was his.", "Option2")
  32. AddConversationOption(conversation, "I've made a terrible mistake, please forgive me.")
  33. StartConversation(conversation, NPC, Spawn, "What do you know about Horatio? Speak quickly or you shall lose your tongue!")
  34. end
  35. function Option2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. local conversation = CreateConversation()
  38. PlayFlavor(NPC, "qalantir/fprt_north/qalantir002.mp3", "", "", 911234612, 2684201405, Spawn)
  39. AddConversationOption(conversation, "What was he doing?", "Option3")
  40. AddConversationOption(conversation, "That is unfortunate, I guess there is nothing left to talk about.")
  41. StartConversation(conversation, NPC, Spawn, "How do you know this letter was Horatio's? He was on a very important mission for the Academy, and it has been months since we heard from him. Because of the difficulty of the task he was attempting to complete, we believe he is dead.")
  42. end
  43. function Option3(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. PlayFlavor(NPC, "qalantir/fprt_north/qalantir003.mp3", "", "", 4124164547, 3723800907, Spawn)
  47. AddConversationOption(conversation, "What special ingredient?", "Option4")
  48. AddConversationOption(conversation, "I think I know too much, I am going to leave you alone now.")
  49. StartConversation(conversation, NPC, Spawn, "Horatio always said he aspired to be a student here. I told him that if the opportunity arose, I'd be the first to suggest his name to our high council. Then, one day, I needed a special ingredient for some healing elixirs I was researching... ")
  50. end
  51. function Option4(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. local conversation = CreateConversation()
  54. PlayFlavor(NPC, "qalantir/fprt_north/qalantir004.mp3", "", "", 3125871471, 3913445858, Spawn)
  55. AddConversationOption(conversation, "Where is this diseased ratonga blood found?", "Option5")
  56. AddConversationOption(conversation, "Well maybe he will come back with your samples soon. ")
  57. StartConversation(conversation, NPC, Spawn, "Although it is frowned upon by some residents, we started sending agents down to the Thieves' Way to collect samples of diseased ratonga blood. It is believed that the blood of these forsaken creatures can be used to help the dying. I was certain that if Horatio could bring me back some samples, I could present his findings to our alliance. Surely then they'd allow him to study as an apprentice!")
  58. end
  59. function Option5(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. local conversation = CreateConversation()
  62. PlayFlavor(NPC, "qalantir/fprt_north/qalantir005.mp3", "", "", 2816950517, 2738391655, Spawn)
  63. AddConversationOption(conversation, "I will seek out these blood samples.", "Option6")
  64. AddConversationOption(conversation, "I hope you find someone to do that. Thanks for speaking to me.")
  65. StartConversation(conversation, NPC, Spawn, "The majority of our samples come from the Thieves' Way. This is where I sent Horatio to complete his mission. However, it has been months since anyone has heard from him. Seeing this note you found, I'm sure that he's dead. As unfortunate as his passing is, we still need these samples to continue our research. Horatio must not die in vain!")
  66. end
  67. function Option6(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. local conversation = CreateConversation()
  70. PlayFlavor(NPC, "qalantir/fprt_north/qalantir006.mp3", "", "", 2544647659, 725644604, Spawn)
  71. AddConversationOption(conversation, "I will take my chances.", "Option7")
  72. AddConversationOption(conversation, "Maybe you are right, I don't think I want to go back there.")
  73. StartConversation(conversation, NPC, Spawn, "That is great news. If you return with the samples of blood I request, I shall compensate you for your efforts. I must warn you though, venturing deep into these sewers can be very dangerous. ")
  74. end
  75. function Option7(NPC, Spawn)
  76. SetStepComplete(Spawn, TheFallenRetriever, 2)
  77. FaceTarget(NPC, Spawn)
  78. local conversation = CreateConversation()
  79. PlayFlavor(NPC, "qalantir/fprt_north/qalantir007.mp3", "", "", 141380966, 627441505, Spawn)
  80. AddConversationOption(conversation, "I will return when I have collected the samples.")
  81. StartConversation(conversation, NPC, Spawn, "Collect as many vials of diseased ratonga blood as you can. Return to me when you have filled these vials and I will work out some kind of reward for your troubles.")
  82. end
  83. function Option8(NPC, Spawn)
  84. SetStepComplete(Spawn, TheFallenRetriever, 4)
  85. FaceTarget(NPC, Spawn)
  86. local conversation = CreateConversation()
  87. PlayFlavor(NPC, "qalantir/fprt_north/qalantir008.mp3", "", "", 3674155152, 1504551197, Spawn)
  88. AddConversationOption(conversation, "Thank you. ")
  89. StartConversation(conversation, NPC, Spawn, "I'm glad to see your determination to assist us with our research. Please take this as a symbol of my appreciation.")
  90. end
  91. function respawn(NPC)
  92. spawn(NPC)
  93. end