for_qeynos.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : for_qeynos.lua
  3. Script Purpose : Handles the quest, "For Qeynos"
  4. Script Author : Dorbin
  5. Script Date : 2/27/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Forest Ruins
  8. Quest Giver : Elvric
  9. Preceded by : Willow Wood Halfelf Racial Quest(optional)
  10. Followed by : News for Germain
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "I should inspect campsites around the ruins until I find something to indicate who made them.", 1, 100, "Elvic has asked that I investigate some of the abandoned campsites that have been seen all around the Forest Ruins.", 11, 2352)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  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, "In one of the camps I found a note.")
  27. AddQuestStepChat(Quest, 2, "I need to take this note to Elvic Garrett.", 1, "Elvic has asked that I investigate some of the abandoned campsites that have been seen all around the Forest Ruins.", 185, 1960007)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have given the note to Elvic Garrett.")
  32. AddQuestStepChat(Quest, 3, "I need to tell Lieutenant Germain about the gnollish note.", 1, "Elvic has asked that I investigate some of the abandoned campsites that have been seen all around the Forest Ruins.", 185, 1960005)
  33. AddQuestStepCompleteAction(Quest, 3, "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, 3, "I have spoken with Lieutenant Germain.")
  38. UpdateQuestTaskGroupDescription(Quest, 1, "I found a gnollish book in one of the camps. As Elvic asked, I have brought news of this to Lieutenant Germain.")
  39. UpdateQuestDescription(Quest, "I found a gnollish book at one of the abandoned campsites. Lieutenant Germain was very concerned at the possibility of a gnollish presence in the Forest Ruins.")
  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. Step2Complete(Quest, QuestGiver, Player)
  47. elseif Step == 3 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end