journal_of_elkare.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : journal_of_elkare.lua
  3. Script Purpose : Handles the quest, "Journal of Elkare"
  4. Script Author : premierio015
  5. Script Date : 23.05.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The City of Qeynos
  8. Quest Giver : Wesaelan Brookshadow
  9. Preceded by : None
  10. Followed by : Recovery of the Bloodsaber Plans
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must retrieve the tome from a giant oak tree in Antonica.", 1, 100, "I've been sent to retrieve a tome from a giant oak tree in the crop fields outside of Qeynos.", 711, 121816)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/optional4/wesaelan_brookshadow/brookshadow_04.mp3", "", "", 1096830596, 4200711932, Player)
  20. AddConversationOption(conversation, "I will return with the tome.")
  21. StartConversation(conversation, QuestGiver, Player, "Please, you must recover the tome! Qeynos depends on you!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've retrieved the tome from the oak tree in Antonica.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've recovered the tome from a group of brigands that ambushed me at the oak tree.")
  32. AddQuestStepChat(Quest, 2, "I must speak with Wesaelan and give him the tome.", 1, "I must return to Wesaelan with the tome I retrieved from the corpse of the brigand leader.", 11, 2070043)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I've spoken with Wesaelan about the events that transpired.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Wesaelan about the events, and given him the ancient tome.")
  39. UpdateQuestDescription(Quest, "Strangely, I was ambushed by brigands just before I could reach the tree mentioned by Wesaelan. There must be a spy within the ranks of the druid order in the Elddar Grove, for there is no other way I can think of that they could have known I would be coming.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end