TombGuardsChair.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : Quests/VerminsSnye/TombGuardsChair.lua
  3. Script Purpose : Handles the quest, "Tomb Guard's Chair"
  4. Script Author : premierio015
  5. Script Date : 04.06.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Vermin's Snye
  8. Quest Giver : Tomb Guard's Broken Chair
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 3)
  14. SetQuestRepeatable(Quest)
  15. AddQuestStepKill(Quest, 1, "Look for chair legs and a back", 1, 100, "I'm looking for replacement pieces for a tomb guard chair down here in the Vermin's Snye.", 2364, 2000012, 2000020)
  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, "I found some pieces I can use to rebuild the chair.")
  29. AddQuestStepKill(Quest, 2, "Look for more chair legs and a seat", 1, 100, "I'm looking for replacement pieces for a tomb guard chair down here in the Vermin's Snye.", 2358, 2000012, 2000020)
  30. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've found some pieces I can use to rebuild the chair.")
  34. AddQuestStepKill(Quest, 3, "Look for a chair cushion", 1, 100, "I'm looking for replacement pieces for a tomb guard chair down here in the Vermin's Snye.", 1095, 2000012, 2000020)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "I've found some pieces I can use to rebuild the chair.")
  40. UpdateQuestTaskGroupDescription(Quest, 1, "I've found the pieces needed to rebuild the broken chair.")
  41. UpdateQuestDescription(Quest, "I was able to find the pieces needed to rebuild the tomb guard's chair. I could use this in my home if I so desired.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end