9
3

TeirDalTurncoats.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : Quests/Freeport/TeirDalTurncoats.lua
  3. Script Purpose : Handles the quest, "Teir'Dal Turncoats"
  4. Script Author : premierio015
  5. Script Date : 07.06.2020
  6. Script Notes : Dark Elf Racial Questline
  7. Zone : The City of Freeport
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill Thexians", 8, 100, "The Arasai and other Teir'Dal are busy hunting down and torturing the remaining Thexians in Longshadow Alley.", 611, 6480003, 6480012, 6480013)
  14. AddQuestStep(Quest, 2, "Gather Arasai torture instruments", 6, 100, "The Arasai and other Teir'Dal are busy hunting down and torturing the remaining Thexians in Longshadow Alley.", 11, 6480037)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is accepted
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "")
  29. CheckProgress(Quest, QuestGiver, Player)
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "")
  33. CheckProgress(Quest, QuestGiver, Player)
  34. end
  35. function CheckProgress(Quest, QuestGiver, Player)
  36. if QuestStepIsComplete(Player, 566, 1) and QuestStepIsComplete(Player, 566, 2) then
  37. UpdateQuestTaskGroupDescription(Quest, 1, "I helped reduce the number of remaining Thexians in Longshadow Alley and obtained some Arasai torture instruments for Dyymona K'Vexx.")
  38. AddQuestStepChat(Quest, 3, "Return to Dyymona K'Vexx", 1, "I should return to Dyymona K'Vexx, at the Academy of Arcane Science in the city of Freeport.", 11, 5590238)
  39. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  40. end
  41. end
  42. function QuestComplete(Quest, QuestGiver, Player)
  43. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  44. UpdateQuestStepDescription(Quest, 3, "")
  45. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Dyymona K'Vexx, the dark elf mentor.")
  46. UpdateQuestDescription(Quest, "Dyymona K'Vexx was pleased with my accomplishments within Longshadow Alley, but she warned me against letting the fun I had experienced overshadow the lesson to be learned. We Teir'Dal are deceitful, opportunistic and power hungry by nature, but we must temper these useful and admirable traits with patience and measure the consequences.")
  47. GiveQuestReward(Quest, Player)
  48. end
  49. function Reload(Quest, QuestGiver, Player, Step)
  50. if Step == 1 then
  51. Step1Complete(Quest, QuestGiver, Player)
  52. elseif Step == 2 then
  53. Step2Complete(Quest, QuestGiver, Player)
  54. elseif Step == 3 then
  55. QuestComplete(Quest, QuestGiver, Player)
  56. end
  57. end