DarkTides.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/ButcherblockMountains/DarkTides.lua
  3. Script Purpose : Handles the quest, "Dark Tides"
  4. Script Author : jakejp
  5. Script Date : 6/4/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Griss Brumbaugh
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to slay several Tidesylph ritualists.", 8, 100, "I must slay several Tidesylph ritualists before they taint the entire Tidesylph tribe with necromancy.", 86, 1080399)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have slain several Tidesylph ritualists.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain several Tidesylph ritualists before they had an opportunity to taint the entire Tidesylph tribe with necromancy.")
  19. AddQuestStepChat(Quest, 2, "I need to speak with Griss Brumbaugh.", 1, "I should return to Griss Brumbaugh and let him know I have completed my current assignment.", 11, 1081075)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 2, "I spoke with Griss Brumbaugh.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Griss Brumbaugh and let him know I have completed my current assignment.")
  26. UpdateQuestDescription(Quest, "I have completed Griss Brumbaugh's task.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. FaceTarget(QuestGiver, Player)
  38. conversation = CreateConversation()
  39. PlayFlavor(QuestGiver, "griss_brumbaugh/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/griss_brumbaugh/griss_brumbaugh007.mp3", "", "", 1790400537, 2286410199, Player)
  40. AddConversationOption(conversation, "Very well. I'll return shortly.")
  41. StartConversation(conversation, QuestGiver, Player, "The necromantic taint should be cutoff at the source. I need you to head to the islands off the coast of these mountains and slay as many Tidesylph ritualists as you can. Only then, after their numbers have been reduced, can we rest easier.")
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is declined
  45. end