inform_tracker_kelnis.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : inform_tracker_kelnis.lua
  3. Script Purpose : Handles the quest, "Inform Tracker Kelnis"
  4. Script Author : Dorbin
  5. Script Date : 3/11/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Graystone Yard
  8. Quest Giver : Pathfinder Silentstride
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must speak to Kelnis in Oakmyst Forest.", 1, "I must find Tracker Kelnis somewhere in Oakmyst Forest.", 11, 1950042)
  14. UpdateQuestZone(Quest,"Oakmyst Forest")
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  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 spoke to Tracker Kelnis in Oakmyst.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I found Tracker Kelnis.")
  28. AddQuestStepChat(Quest, 2, "I must return to Silentstride in Graystone.", 1, "I should let Pathfinder Silentstride I've relayed the message about Windstalker.", 11, 2350014)
  29. UpdateQuestZone(Quest,"Graystone Yard")
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  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 spoke to Pathfinder Silentstride.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Pathfinder Silentstride.")
  36. UpdateQuestDescription(Quest, "I have informed Kelnis and reported back to Silentstride. She was grateful. They are seeking a gravesite of Holly Windstalker.")
  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 == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end