9
3

last_place_theyd_look.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : last_place_theyd_look.lua
  3. Script Purpose : Handles the quest, "Last Place They'd Look"
  4. Script Author : Dorbin
  5. Script Date : 2/28/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Ruins of Varsoon
  8. Quest Giver : a stack of books
  9. Preceded by : None
  10. Followed by : Ash Covered Necklace
  11. Note: NEEDS Book stack added to locations in RoV, tied together, and set at a random 2-4 hour respawn. 3 book locations ( -273, 0, -28 ) ( -301, 0, -34 ) ( -314, 0, -5 )
  12. --]]
  13. function Init(Quest)
  14. AddQuestStepSpell(Quest, 1, "Find the author of the journal; dead or alive.", 1, 100, "While here in the Ruins of Varsoon keep an eye out for the author of this journal, dead or alive.", 0, 0)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function QuestComplete(Quest, QuestGiver, Player)
  27. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I found the remains of the author of the journal.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I've found the corpse of someone whom quite possible was the author of the journal.")
  30. UpdateQuestDescription(Quest, "I may have found the author of the journal. There was an old necklace within the remains of the corpse.")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. QuestComplete(Quest, QuestGiver, Player)
  36. end
  37. end