the_legend_of_motte.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/Antonica/the_legend_of_motte.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.15 09:04:10
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Slay some highwaymen.", 8, 100, "I must slay some highwaymen in Antonica.", 611, 120161, 120162, 120171)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "Slew some highwaymen.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I slew some highwaymen in Antonica.")
  27. AddQuestStep(Quest, 2, "Inspect the bookcase.", 1, 100, "I must return to the bookcase in Windstalker Village that holds the book called "The Legend of Motte."", 11)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "Inspected the bookcase.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to the bookcase in Windstalker Village that holds the book called "The Legend of Motte."")
  33. AddQuestStep(Quest, 3, "Inspect Motte's tombstone.", 1, 100, "I must find the lost tombstone of Motte in Antonica.", 1009)
  34. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 3, "Inspected Motte's tombstone.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I found the lost tombstone of Motte in Antonica.")
  40. UpdateQuestDescription(Quest, "I helped Sir Edwin Motte's spirit part from this world and its unrest. I earned a key that opened a secret compartment in Motte's tombstone filled with treasure.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. Step2Complete(Quest, QuestGiver, Player)
  48. elseif Step == 3 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end