a_tattered_journal_for_valean.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/Baubbleshire/a_tattered_journal_for_valean.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.20 04:01:29
  5. Script Purpose :
  6. Zone : Baubbleshire
  7. Quest Giver: Ganla Dindlenod
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, " I need to deliver this book to Innkeeper Valean.", 1, " I must deliver this tattered book to Innkeeper Valean in the Caslteview Hamlet inn.", 53227, 2360024)
  13. AddQuestStepCompleteAction(Quest, 1, "Delivery")
  14. UpdateQuestZone(Quest, "Castleview Hamlet")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver,"","","thank",0,0,Player)
  19. AddConversationOption(conversation, "I'll let you know as soon as I deliever it.")
  20. StartConversation(conversation, QuestGiver, Player, "Hold it carefully! The pages are in rough enough shape as it is.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Delivery(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I found Innkeeper Valean.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I delivered the tattered journal to Innkeeper Valean.")
  27. AddQuestStepChat(Quest, 2, "I need to return to Ganla Dindlenod.", 1, "Ganla Dindlenod will want to know Valean now has the book.", 0, 2380022)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. UpdateQuestZone(Quest, "Baubbleshire")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've returned to Ganla.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Ganla and updated her on her book.")
  34. UpdateQuestDescription(Quest, "I delivered the tattered journal to Innkeeper Valean. I then informed Ganla Dindlenod that it will take some time to decipher the words. She was thankful and paid me for the deed.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Delivery(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end