two_wrongs_do_not_make_a_right.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. --[[
  2. Script Name : two_wrongs_do_not_make_a_right.lua
  3. Script Purpose : Handles the quest, "Two Wrongs Do Not Make a Right"
  4. Script Author : Dorbin
  5. Script Date : 2/10/2022
  6. Script Notes : NEEDS Irisor the Insane created and locations for each step made.
  7. Zone : Crypt of Betrayal
  8. Quest Giver : a sullied illegible note
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I should try to find the original grave of the undead rogue.", 1, "I should try to find the blades the note spoke of. The best place to start should be here in the Crypt of Betrayal. If I could find the original grave of the undead rogue that might be where one of the pieces still lie.", 0, 0)
  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, "I have found the original grave of the undead rogue.")
  27. AddQuestStepKill(Quest, 2, "I should destroy Irisor the Insane.", 1, 100, "I should try to find the blades the note spoke of. The best place to start should be here in the Crypt of Betrayal. If I could find the original grave of the undead rogue that might be where one of the pieces still lie.", 0, 0)
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have destroyed Irisor the Insane.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I have found the first blade wrapped within an oiled cloth hidden within the old crypt grave.")
  33. AddQuestStepLocation(Quest, 3, "I should look for the hidden blade in the Windstalker Village in Antonica.", 1, "After looking carefully at the rantings and scribblings of an obvious madman it seems that he may have left the second blade within the Windstalker Village in Antonica.", 0, 0)
  34. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I have found the other missing blade.")
  38. AddQuestStepKill(Quest, 4, "I should destroy Irisor the Insane.", 1, 100, "After looking carefully at the rantings and scribblings of an obvious madman it seems that he may have left the second blade within the Windstalker Village in Antonica.", 0, 0)
  39. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  40. end
  41. function Step4Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 4, "I have destroyed Irisor the Insane.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "I have found the second hidden blade within the Windstalker Village.")
  44. AddQuestStepLocation(Quest, 5, "I should find the hidden handles somewhere near the giants in the Thundering Steppes.", 1, "The note seems to indicate that the undead rogue left the handles for the blades in the Thundering Steppes somewhere near the giants. It seems that he would have put them somewhere obvious and out in the open so the giants could unknowingly protect them for him.", 0, 0)
  45. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  46. end
  47. function Step5Complete(Quest, QuestGiver, Player)
  48. UpdateQuestStepDescription(Quest, 5, "I have found the hidden handles for the twin blades.")
  49. AddQuestStepKill(Quest, 6, "I should destroy Irisor the Insane.", 1, 100, "The note seems to indicate that the undead rogue left the handles for the blades in the Thundering Steppes somewhere near the giants. It seems that he would have put them somewhere obvious and out in the open so the giants could unknowingly protect them for him.", 0, 0)
  50. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  51. end
  52. function Step6Complete(Quest, QuestGiver, Player)
  53. UpdateQuestStepDescription(Quest, 6, "I have destroyed Irisor the Insane.")
  54. UpdateQuestTaskGroupDescription(Quest, 3, "I have found the handles to the twin blades.")
  55. AddQuestStepLocation(Quest, 7, "I should find the remaining pieces within the Ruins of Varsoon.", 1, "It appears as if the crossguards and markings of the blades are within the Ruins of Varsoon. I should continue my search there.", 0, 0)
  56. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  57. end
  58. function Step7Complete(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 7, "I have found the remaining pieces.")
  60. AddQuestStepKill(Quest, 8, "I should destroy Irisor the Insane.", 1, 100, "It appears as if the crossguards and markings of the blades are within the Ruins of Varsoon. I should continue my search there.", 0, 0)
  61. AddQuestStepCompleteAction(Quest, 8, "QuestComplete")
  62. end
  63. function QuestComplete(Quest, QuestGiver, Player)
  64. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  65. UpdateQuestStepDescription(Quest, 8, "I have destroyed Irisor the Insane.")
  66. UpdateQuestTaskGroupDescription(Quest, 4, "I have found the last pieces I needed to reassemble the blades; Shame and Scorn.")
  67. UpdateQuestDescription(Quest, "I have done all I needed and have remade the twin blades of Scorn and Shame.")
  68. GiveQuestReward(Quest, Player)
  69. end
  70. function Reload(Quest, QuestGiver, Player, Step)
  71. if Step == 1 then
  72. Step1Complete(Quest, QuestGiver, Player)
  73. elseif Step == 2 then
  74. Step2Complete(Quest, QuestGiver, Player)
  75. elseif Step == 3 then
  76. Step3Complete(Quest, QuestGiver, Player)
  77. elseif Step == 4 then
  78. Step4Complete(Quest, QuestGiver, Player)
  79. elseif Step == 5 then
  80. Step5Complete(Quest, QuestGiver, Player)
  81. elseif Step == 6 then
  82. Step6Complete(Quest, QuestGiver, Player)
  83. elseif Step == 7 then
  84. Step7Complete(Quest, QuestGiver, Player)
  85. elseif Step == 8 then
  86. QuestComplete(Quest, QuestGiver, Player)
  87. end
  88. end