ThexianTaint.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : Quests/Darklight/ThexianTaint.lua
  3. Script Purpose : Handles the quest, "Thexian Taint"
  4. Script Author : Cynnar
  5. Script Date : 8/17/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Sselnyl Do'Zyth
  9. Preceded by : No Undead Goes Unturned
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill seven untamed spirits.", 7, 100, "Sselnyl Do'Zyth wants me to kill the spirits near the Wellspring of Nightmares and then stop the Thexian ritual.", 611, 340015)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have slain the spirits.")
  18. AddQuestStepLocation(Quest, 2, "Toss the vex-runed remains into the Wellspring of Nightmares.", 1, "Sselnyl Do'Zyth wants me to kill the spirits near the Wellspring of Nightmares and then stop the Thexian ritual.", 11, 340748)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 2, "I have Ginryne X'Treval's head.")
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the Thexian responsible for rousing the untamed spirits.")
  24. --AddQuestStepChat(Quest, 3, "I need to bring Ginryne X'Treval's head to Ginwyss D'Arkenett at T'Vatar Post.", 1, "I need to bring the head to Ginwyss D'Arkenette.", 11, 340064)
  25. AddQuestStepChat(Quest, 3, "I need to bring news of my success to Ginwyss D'Arkenett at T'Vatar Outpost.", 1, "I need to bring the head to Ginwyss D'Arkenette.", 11, 340064)
  26. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  27. end
  28. function QuestComplete(Quest, QuestGiver, Player)
  29. UpdateQuestDescription(Quest, "I took out the Thexian responsible for the untamed spirits and brought his head to Ginwyss D'Arkenett.")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. if Step == 1 then
  34. Step1Complete(Quest, QuestGiver, Player)
  35. elseif Step == 2 then
  36. Step2Complete(Quest, QuestGiver, Player)
  37. elseif Step == 3 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end
  41. function Accepted(Quest, QuestGiver, Player)
  42. FaceTarget(QuestGiver, Player)
  43. conversation = CreateConversation()
  44. PlayFlavor(QuestGiver, "sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl_revamp/sselnyl016.mp3", "", "", 2505986128, 2745231406, Player)
  45. AddConversationOption(conversation, "For Neriak!")
  46. StartConversation(conversation, QuestGiver, Player, "You were chosen for this task for a reason, " ..GetName(Player).. ". Do not fail us. All of Neriak depends upon your success.")
  47. SummonItem(Player, 14387, 1)
  48. end
  49. function Declined(Quest, QuestGiver, Player)
  50. -- Add dialog here for when the quest is declined
  51. end