the_missing_book.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : the_missing_book.lua
  3. Script Purpose : Handles the quest, "The Missing Book"
  4. Script Author : torsten
  5. Script Date : 19.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Lotni K`Iria
  9. Preceded by : None
  10. Followed by : Magical Retribution
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to find the thief.", 1, "I need to find and speak to the Ratonga who stole Lotni's book.", 11, 1360007)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I spoke to the Ratonga thief, Chrna.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I found the Ratonga, but she didn't have the book.")
  19. AddQuestStepChat(Quest, 2, "I should return to Lotni.", 1, "I should return to Lotni in Longshadow Alley.", 11, 1380009)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. UpdateQuestDescription(Quest, "Lotni claims she already spoke to the mastermind behind the theft. Unfortunately,she already killed him when his answers were not satisfactory. I doubt she will ever get her book back.")
  24. GiveQuestReward(Quest, Player)
  25. end
  26. function Accepted(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is accepted
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is declined
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. -- Remove any quest specific items here when the quest is deleted
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. Step1Complete(Quest, QuestGiver, Player)
  38. elseif Step == 2 then
  39. QuestComplete(Quest, QuestGiver, Player)
  40. end
  41. end