DiggingDeeper_Darkligh.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : DiggingDeeper.lua
  3. Script Purpose : Handles the quest, "Digging Deeper"
  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. AddQuestStepChat(Quest, 1, "Speak with Belarshalee.", 1, "Speak with Belarshalee and find out if she has any information about the Sableflame.", 11, 340173)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have spoken to Belarshalee.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Belarshalee.")
  19. AddQuestStepKill(Quest, 2, "I need to kill Sableflame incanters, cauterizers, scryers, or watchers.", 8, 100, "Gaussnitra V'Kilana wants me to kill Sableflame incanters, cauterizers, scryers, and watchers.", 611, 340127, 340125, 340124, 340111)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I have killed the Sableflame cultists.")
  24. AddQuestStepChat(Quest, 3, "I need to return to Gaussnitra V'Kilana.", 1, "Gaussnitra V'Kilana wants me to kill Sableflame incanters, cauterizers, scryers, and watchers.", 11, 341003)
  25. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  26. end
  27. function QuestComplete(Quest, QuestGiver, Player)
  28. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  29. UpdateQuestStepDescription(Quest, 3, "I have spoken with Gaussnitra V'Kilana.")
  30. UpdateQuestTaskGroupDescription(Quest, 2, "I have slain the Sableflame cultists.")
  31. UpdateQuestDescription(Quest, "I have slain the Sableflame cultists.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. Step1Complete(Quest, QuestGiver, Player)
  37. elseif Step == 2 then
  38. Step2Complete(Quest, QuestGiver, Player)
  39. elseif Step == 3 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end
  43. function Accepted(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is accepted
  45. end
  46. function Declined(Quest, QuestGiver, Player)
  47. -- Add dialog here for when the quest is declined
  48. end