9
3

blank_pages.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : Quests/NorthQeynos/blank_pages.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 02:05:31
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Andrea Dovesong
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to get parchment from Scribe Duvo.", 1, "I'm to retrieve some parchment from Scribe Duvo in the Elddar Grove.", 75, 2070044)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"The Elddar Grove")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I got the parchment from Duvo.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I got all of the parchment Andrea will need.")
  28. AddQuestStepChat(Quest, 2, "I need to get this parchment back to Andrea Dovesong.", 1, "Andrea Dovesong is expecting this parchment near the Qeynos Claymore statue in North Qeynos.", 75, 2220111)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. UpdateQuestZone(Quest,"North Qeynos")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I delivered the parchment to Andrea Dovesong.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "Andrea was happy to finally have her parchment and was greatful for my effort.")
  36. UpdateQuestDescription(Quest, "Scribe Duvo was happy to oblige Andrea with as much parchment as she may need. Andrea was grateful for the errand and rewarded my efforts.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 1 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end