9
3

the_captives_information.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : the_captives_information.lua
  3. Script Purpose : Handles the quest, "The Captive's Information"
  4. Script Author : torsten
  5. Script Date : 10.07.2022
  6. Script Notes :
  7. Zone : Big Bend
  8. Quest Giver : Vakiza Skinner
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill twelve tortured souls in the Commonlands", 12, 100, "I need to kill twelve tortured souls in the Commonlands.", 611, 330116)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I've killed twelve tortured souls.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I've slain twelve tortured souls.")
  19. AddQuestStepChat(Quest, 2, "I need to speak with Vakiza Skinner", 1, "I need to speak with Vakiza Skinner in Freeport, near Big Bend, and tell her that I have completed her task.", 11, 1340031)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I spoke with Vakiza Skinner.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Vakiza Skinner.")
  25. AddQuestStepKill(Quest, 3, "I need to kill five sandstone giants in the Commonlands", 5, 100, "I need to kill twelve tortured souls in the Commonlands.", 611, 330108)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "I've killed five sandstone giants.")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I've slain five sandstone giants.")
  31. AddQuestStepChat(Quest, 4, "I need to speak with Vakiza Skinner", 1, "I need to speak with Vakiza Skinner in Freeport, near Big Bend, and tell her that I have completed her task.", 11, 1340031)
  32. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  36. UpdateQuestStepDescription(Quest, 4, "I spoke with Vakiza Skinner.")
  37. UpdateQuestTaskGroupDescription(Quest, 4, "I spoke with Vakiza Skinner.")
  38. UpdateQuestDescription(Quest, "I've taken care of the creatures for Vakiza Skinner. She said the Overlord would be pleased with our work.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Accepted(Quest, QuestGiver, Player)
  42. -- Add dialog here for when the quest is accepted
  43. end
  44. function Declined(Quest, QuestGiver, Player)
  45. -- Add dialog here for when the quest is declined
  46. end
  47. function Deleted(Quest, QuestGiver, Player)
  48. -- Remove any quest specific items here when the quest is deleted
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. Step3Complete(Quest, QuestGiver, Player)
  57. elseif Step == 4 then
  58. QuestComplete(Quest, QuestGiver, Player)
  59. end
  60. end