thexian_taint.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/Darklight/thexian_taint.lua
  3. Script Purpose : Handles the quest, "Thexian Taint"
  4. Script Author : Scatman
  5. Script Date : 2009.02.01
  6. Zone : Darklight Wood
  7. Quest Giver: Sselnyl Do'Zyth
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. 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 the Thexian responsible.", 611, 340062, 340061)
  13. AddQuestStep(Quest, 2, "I need to kill the Thexian responsible for rousing the spirits at the Wellspring of Nightmares.", 1, 100, "Sselnyl Do'Zyth wants me to kill the spirits near the Wellspring of Nightmares and the Thexian responsible.", 611)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_killedSpirits")
  15. AddQuestStepCompleteAction(Quest, 2, "step2_complete_killedThexian")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/neriak/sselnyl_do_zyth/darklight_wood/hates_envy/sselnyl/sselnyl008.mp3", "", "", 2647473511, 1776002890, Player)
  21. AddConversationOption(conversation, "Goodbye.")
  22. StartConversation(conversation, QuestGiver, Player, "And you, " .. GetName(Player) .. ".")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function step1_complete_killedSpirits(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I have slain the spirits.")
  28. if QuestIsComplete(Player, 87) then
  29. multiple_steps_complete(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function step2_complete_killedThexian(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have collected the head of the Thexian responsible.")
  34. if QuestIsComplete(Player, 87) then
  35. multiple_steps_complete(Quest, QuestGiver, Player)
  36. end
  37. end
  38. function multiple_steps_complete(Quest, QuestGiver, Player)
  39. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected slain the Thexian responsible for rousing the untamed spirits.")
  40. AddQuestStepChat(Quest, 3, "I need to bring Ginryne X'Treval's head to Ginwyss D'Arkenette at T'Vatar Post.", 1, "I need to bring the head to Ginwyss D'Arkenette.", 0, 340110)
  41. AddQuestStepCompleteAction(Quest, 3, "quest_complete")
  42. end
  43. function quest_complete(Quest, QuestGiver, Player)
  44. UpdateQuestDescription(Quest, "I took out the Thexian responsible for the untammed spirits and brought his head to Ginwyss D'Arkenette.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. step1_complete_killedSpirits(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. step2_complete_killedThexian(Quest, QuestGiver, Player)
  52. end
  53. end