TeirDalTurncoats.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : teirdal_turncoats.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. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "")
  27. AddQuestStepHarvest(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, 6480036)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I helped reduce the number of remaining Thexians in Longshadow Alley and obtained some Arasai torture instruments for Dyymona K'Vexx.")
  33. 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)
  34. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 3, "")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Dyymona K'Vexx, the dark elf mentor.")
  40. 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.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. Step2Complete(Quest, QuestGiver, Player)
  48. elseif Step == 3 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end