IsmenaCellus.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. --[[
  2. Script Name : IsmenaCellus.lua
  3. Script Purpose : Ismena Cellus
  4. Script Author : Jabantiz
  5. Script Date : 06/19/2018
  6. Script Notes : Auto-Generated from a chat log using SpawnScriptDesigner
  7. --]]
  8. -- Quest ID's
  9. local RELIVING_THE_PAST = 351
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, RELIVING_THE_PAST)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. local con = CreateConversation()
  19. if CanReceiveQuest(Spawn, RELIVING_THE_PAST) then
  20. AddConversationOption(con, "What do you mean?", "dlg_2")
  21. AddConversationOption(con, "Do what I do: get over it.")
  22. StartConversation(con, NPC, Spawn, "Is it always this way? You reach the end of your life and realize that you cannot recall your past? I don't know if I remember things as they truly were or as I wish they were. And now, I do not have the strength to do them over again.")
  23. end
  24. if HasQuest(Spawn, RELIVING_THE_PAST) and GetQuestStep(Spawn, RELIVING_THE_PAST) >= 1 and GetQuestStep(Spawn, RELIVING_THE_PAST) <= 2 then
  25. if HasQuest(Spawn, RELIVING_THE_PAST) and GetQuestStep(Spawn, RELIVING_THE_PAST) == 2 then
  26. AddConversationOption(con, "The orcs still roam the hills.", "dlg_5")
  27. end
  28. AddConversationOption(con, "I've not been beyond the docks yet.")
  29. StartConversation(con, NPC, Spawn, "That was quick work!")
  30. end
  31. if HasQuest(Spawn, RELIVING_THE_PAST) and GetQuestStep(Spawn, RELIVING_THE_PAST) >= 3 and GetQuestStep(Spawn, RELIVING_THE_PAST) <= 4 then
  32. if HasQuest(Spawn, RELIVING_THE_PAST) and GetQuestStep(Spawn, RELIVING_THE_PAST) == 4 then
  33. AddConversationOption(con, "Yes; they know my worth.", "dlg_7")
  34. end
  35. AddConversationOption(con, "They have not yet learned their lesson.")
  36. StartConversation(con, NPC, Spawn, "Do the Tallon grunts flee from you now, as they once fled from me?")
  37. end
  38. if HasQuest(Spawn, RELIVING_THE_PAST) and GetQuestStep(Spawn, RELIVING_THE_PAST) >= 5 and GetQuestStep(Spawn, RELIVING_THE_PAST) <= 6 then
  39. if HasQuest(Spawn, RELIVING_THE_PAST) and GetQuestStep(Spawn, RELIVING_THE_PAST) == 6 then
  40. AddConversationOption(con, "Yes. I said a few words on behalf of your son.", "dlg_11")
  41. end
  42. AddConversationOption(con, "No, not yet.")
  43. StartConversation(con, NPC, Spawn, "Were you able to find the Grove?")
  44. end
  45. if HasCompletedQuest(Spawn, RELIVING_THE_PAST) then
  46. AddConversationOption(con, "No problem.")
  47. StartConversation(con, NPC, Spawn, "I appreciate your help.")
  48. end
  49. end
  50. function dlg_2(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local con = CreateConversation()
  53. AddConversationOption(con, "I'd be honored.", "dlg_3")
  54. AddConversationOption(con, "Perhaps you did nothing worth remembering.")
  55. StartConversation(con, NPC, Spawn, "I believed that there would be time later for me to remember ...Yet \"later\" is upon me and the details have slipped away. I returned to Zek to remind me of how it felt to first land here, but I'm unable to climb the hills again. Hmm. I wonder... would you be good enough to retrace some of my steps? To give me your impressions of this place...")
  56. end
  57. function dlg_3(NPC, Spawn)
  58. OfferQuest(NPC, Spawn, RELIVING_THE_PAST)
  59. end
  60. function dlg_5(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. local con = CreateConversation()
  63. SetStepComplete(Spawn, RELIVING_THE_PAST, 2)
  64. AddConversationOption(con, "I wouldn't mind killing some of them myself!")
  65. StartConversation(con, NPC, Spawn, "How I wish I were still strong! My lungs fill with fluid; some poisonous bite I received in my youth has come back to kill me slowly. I would slay those Tallon grunts over and again if I could!")
  66. end
  67. function dlg_7(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. local con = CreateConversation()
  70. AddConversationOption(con, "That's not very optimistic of you.", "dlg_8")
  71. AddConversationOption(con, "We all must perish some day.")
  72. StartConversation(con, NPC, Spawn, "In many ways, I'm sorry to know the Tallons still thrive; they look to outlive me! My memoirs will be useless. My enemies survive and I will perish.")
  73. end
  74. function dlg_8(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. local con = CreateConversation()
  77. AddConversationOption(con, "I'm sorry for your loss. Is there anything I can do for you?", "dlg_9")
  78. AddConversationOption(con, "I have no time for your melancholy right now.")
  79. StartConversation(con, NPC, Spawn, "No, I suppose it's not. You see, my son was with us that day. He was slain by ... the Tallons. That is why I have trouble writing about this place. I would rather not remember.")
  80. end
  81. function dlg_9(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. local con = CreateConversation()
  84. SetStepComplete(Spawn, RELIVING_THE_PAST, 4)
  85. AddConversationOption(con, "I'll be back as soon as I can.")
  86. StartConversation(con, NPC, Spawn, "There is a place -- or was -- a Grove of Stones. Some folks say it is an ancient Druid's Ring. My son had wanted to worship there. If you would find this place and say a few words for him, I would be very grateful. The way is dangerous, but it is not far.")
  87. end
  88. function dlg_11(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. local con = CreateConversation()
  91. SetStepComplete(Spawn, RELIVING_THE_PAST, 6)
  92. AddConversationOption(con, "Thank you and good luck with your book.")
  93. StartConversation(con, NPC, Spawn, "I promised him I would go there and pray, but I had no words to say when I went all those years ago. Knowing that someone else has been there and prayed on his behalf...I think I will be able to write my memoirs now. Please, accept this as a token of my thanks.")
  94. end