9
3

TheEverlingLockets.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. --[[
  2. Script Name : Quests/NektroposCastle/TheEverlingLockets.lua
  3. Script Author : smash
  4. Script Date : 2016.09.08 03:09:11
  5. Script Purpose :
  6. Zone : NektroposCastle
  7. Quest Giver: Alexa
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. local EVERLING_LOCKETS = 177
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to find Elise Everling and gain her locket.", 1, 100, "I need to find Rikantus Everling's six daughters and acquire their lockets.", 20, 1780273)
  14. AddQuestStepCompleteAction(Quest, 1, "KilledElise")
  15. AddQuestStepKill(Quest, 2, "I need to find Crysta Everling and gain her locket.", 1, 100, "I need to find Rikantus Everling's six daughters and acquire their lockets.", 20, 1780276)
  16. AddQuestStepCompleteAction(Quest, 2, "KilledCrysta")
  17. AddQuestStepKill(Quest, 3, "I need to find Melanie Everling and gain her locket.", 1, 100,"I need to find Rikantus Everling's six daughters and acquire their lockets.", 20, 1780275)
  18. AddQuestStepCompleteAction(Quest, 3, "KilledMelanie")
  19. AddQuestStepKill(Quest, 4, "I need to find Deirdre Everling and gain her locket.", 1, 100, "I need to find Rikantus Everling's six daughters and acquire their lockets.", 20, 1780278)
  20. AddQuestStepCompleteAction(Quest, 4, "KilledDeirdre")
  21. AddQuestStepKill(Quest, 5, "I need to find Sheila Everling and gain her locket.", 1, 100, "I need to find Rikantus Everling's six daughters and acquire their lockets.", 20, 1780272)
  22. AddQuestStepCompleteAction(Quest, 5, "KilledSheila")
  23. AddQuestStepKill(Quest, 6, "I need to find Jenni Everling and gain her locket.", 1, 100, "I need to find Rikantus Everling's six daughters and acquire their lockets.", 20, 1780243)
  24. AddQuestStepCompleteAction(Quest, 6, "KilledJenni")
  25. end
  26. function CheckForStep7(Quest, Player)
  27. if not QuestIsComplete(Player, EVERLING_LOCKETS) then
  28. return
  29. end
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have found all of the lockets.")
  31. AddQuestStepKill(Quest, 7, "I need to find a way into the basement.", 1, 100, "I need to find a way into the basement.", 11, 1780268)
  32. AddQuestStepCompleteAction(Quest, 7, "FoundKey")
  33. end
  34. function KilledElise(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 1, "I have acquired Elise's Locket.")
  36. CheckForStep7(Quest, Player)
  37. end
  38. function KilledCrysta(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I have acquired Crysta's Locket.")
  40. CheckForStep7(Quest, Player)
  41. end
  42. function KilledMelanie(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 3, "I have acquired Melanie's Locket.")
  44. CheckForStep7(Quest, Player)
  45. end
  46. function KilledDeirdre(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 4, "I have acquired Deirdre's Locket.")
  48. CheckForStep7(Quest, Player)
  49. end
  50. function KilledSheila(Quest, QuestGiver, Player)
  51. UpdateQuestStepDescription(Quest, 5, "I have acquired Sheila's Locket.")
  52. CheckForStep7(Quest, Player)
  53. end
  54. function KilledJenni(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 6, "I have acquired Jenni's Locket.")
  56. CheckForStep7(Quest, Player)
  57. end
  58. function FoundKey(Quest, QuestGiver, Player)
  59. UpdateQuestTaskGroupDescription(Quest, 2, "I found a key on a decaying corpse, but I don't know what it is for.")
  60. AddQuestStepKill(Quest, 8, "I need to figure out what this key goes to.", 1, 100, "I need to figure out what this key goes to.", 11, 1780282)
  61. AddQuestStepCompleteAction(Quest, 8, "KilledCaptain")
  62. end
  63. function KilledCaptain(Quest, QuestGiver, Player)
  64. UpdateQuestTaskGroupDescription(Quest, 3, "I entered Lord Everling's bedroom and was attacked by the captain of the guard. I found the guard captains sword.")
  65. AddQuestStepKill(Quest, 9, "I have to find Ollix Everling's pendant.", 1, 100, "I need to find Ollix Everling and take his pendant.", 13, 1780290)
  66. AddQuestStepCompleteAction(Quest, 9, "QuestComplete")
  67. end
  68. function Accepted(Quest, QuestGiver, Player)
  69. end
  70. function Declined(Quest, QuestGiver, Player)
  71. end
  72. function QuestComplete(Quest, QuestGiver, Player)
  73. UpdateQuestTaskGroupDescription(Quest, 3, "I have Ollix Everling's Pendant.")
  74. GiveQuestReward(Quest, Player)
  75. end
  76. function Reload(Quest, QuestGiver, Player, Step)
  77. if Step == 1 then
  78. KilledElise(Quest, QuestGiver, Player)
  79. elseif Step == 2 then
  80. KilledCrysta(Quest, QuestGiver, Player)
  81. elseif Step == 3 then
  82. KilledMelanie(Quest, QuestGiver, Player)
  83. elseif Step == 4 then
  84. KilledDeirdre(Quest, QuestGiver, Player)
  85. elseif Step == 5 then
  86. KilledSheila(Quest, QuestGiver, Player)
  87. elseif Step == 6 then
  88. KilledJenni(Quest, QuestGiver, Player)
  89. elseif Step == 7 then
  90. FoundKey(Quest, QuestGiver, Player)
  91. elseif Step == 8 then
  92. KilledCaptain(Quest, QuestGiver, Player)
  93. elseif Step == 9 then
  94. QuestComplete(Quest, QuestGiver, Player)
  95. end
  96. end