the_lost_book_of_arbos.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/the_lost_book_of_arbos.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.29 05:01:14
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Bleemeb
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must find Faeadaen.", 1, "I must search Castleview Hamlet for Faeadaen.", 0, 2360022)
  13. AddQuestStepCompleteAction(Quest, 1, "FaeTalked")
  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 FaeTalked(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I found Faeadaen in Castleview Hamlet.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I found Faeadaen in Castleview Hamlet.")
  28. AddQuestStepChat(Quest, 2, "I must find Innkeeper Valean.", 1, "I must search Castleview Hamlet for Valean.", 0, 2360024)
  29. AddQuestStepCompleteAction(Quest, 2, "ValeanTalked")
  30. end
  31. function ValeanTalked(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 2, "I found Valean in Castleview Hamlet.")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I found Valean in Castleview Hamlet.")
  35. AddQuestStepChat(Quest, 3, "I must check the bookshelves.", 1, "I must search the bookshelves at the inn for the lost book.", 0, 2360075)
  36. AddQuestStepCompleteAction(Quest, 3, "BookshelfTalk")
  37. end
  38. function BookshelfTalk(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 3, "I found the lost book.")
  41. UpdateQuestTaskGroupDescription(Quest, 3, "I found the lost book in the inn's bookshelves.")
  42. AddQuestStepChat(Quest, 4, "I must return to Bleemeb.", 1, "I must return this book to Bleemeb.", 718, 2360055)
  43. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  44. end
  45. function QuestComplete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 4, "I returned to Bleemeb.")
  47. UpdateQuestTaskGroupDescription(Quest, 4, "I returned the lost book to Bleemeb.")
  48. UpdateQuestDescription(Quest, "I retrieved the Book of Arbos and returned it to Bleemeb. The book was written in a rare lost elven language.")
  49. GiveQuestReward(Quest, Player)
  50. end
  51. function Reload(Quest, QuestGiver, Player, Step)
  52. if Step == 1 then
  53. FaeTalked(Quest, QuestGiver, Player)
  54. end
  55. if Step == 2 then
  56. ValeanTalked(Quest, QuestGiver, Player)
  57. end
  58. if Step == 3 then
  59. BookshelfTalk(Quest, QuestGiver, Player)
  60. end
  61. if Step == 4 then
  62. QuestComplete(Quest, QuestGiver, Player)
  63. end
  64. end