QuellingTheRebellion.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : quelling_the_rebellion.lua
  3. Script Purpose : Handles the quest, "Quelling the Rebellion"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 4/29/2023
  6. Script Notes : Cynnar
  7. Zone : World Event
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local JethTheSpy = 5590962
  13. local InfiltratorKath = 5590963
  14. function Init(Quest)
  15. AddQuestStepKill(Quest, 1, "Find and slay J.T.S.", 1, 100, "Lurking somewhere in the city is a traitor. Find and slay this "J.T.S."", 11, JethTheSpy)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  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, "Jeth's dead... Jeth's dead.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "The elimination of Jeth has revealed that yet another traitor lurks within the city.")
  30. AddQuestStepLocation(Quest, 2, "Search the city of Freeport for the second infiltrator.", 1, "There are no clues to the location of this new traitor, so I must search thoroughly.", 11, -113, -11, -82)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "The second traitor has been located.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "The second infiltrator has been holed up in the Jade Tiger's Den.")
  36. AddQuestStepKill(Quest, 3, "Destroy the second traitor before she can free Geraufl.", 1, 100, "Slay the infiltrator before she manages to free Geraufl.", 11, InfiltratorKath)
  37. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 3, "With the death of the second traitor, the threat has ended... for now.")
  42. UpdateQuestTaskGroupDescription(Quest, 3, "Though the last Qeynosian has been sent to her grave, it may benefit the city if I simply kill Geraufl.")
  43. UpdateQuestDescription(Quest, "I have unraveled the traitorous plans of these frogs. It may be better that I simply destroy the one in the jail before he can cause more trouble or try and escape.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. Step2Complete(Quest, QuestGiver, Player)
  51. elseif Step == 3 then
  52. QuestComplete(Quest, QuestGiver, Player)
  53. end
  54. end