9
3

ComparisonstotheHarrowglade.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : ComparisonstotheHarrowglade.lua
  3. Script Purpose : Handles the quest, "Comparisons to the Harrowglade"
  4. Script Author : FeaRFx
  5. Script Date : 26/01/2017
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect some resonant dust from the wisplings in the Harrowglade.", 8, 100, "I need to collect resonant dust from the wisplings in the Harrowglade.", 342, 340121)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected the resonant dust.")
  18. AddQuestStepChat(Quest, 2, "I need to bring this dust back to Geldax Xalylharil.", 1, "I need to collect resonant dust from the wisplings in the Harrowglade.", 342, 340147)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  23. UpdateQuestStepDescription(Quest, 2, "I have given Geldax Xalylharil the dust.")
  24. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the resonant dust and given it to Geldax Xalylharil.")
  25. UpdateQuestDescription(Quest, "I have brought the nominal resonant dust to Geldax Xalylharil, as he requested.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Reload(Quest, QuestGiver, Player, Step)
  29. if Step == 1 then
  30. Step1Complete(Quest, QuestGiver, Player)
  31. elseif Step == 2 then
  32. QuestComplete(Quest, QuestGiver, Player)
  33. end
  34. end
  35. function Accepted(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is accepted
  37. end
  38. function Declined(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is declined
  40. end