9
3

dane_steelfist_bureaucrat.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --[[
  2. Script Name : dane_steelfist_bureaucrat.lua
  3. Script Purpose : Handles the quest, "Dane Steelfist, Bureaucrat"
  4. Script Author : Dorbin
  5. Script Date : 3/10/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Graystone Yard
  8. Quest Giver : Dane Steelfist
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill five lowland badgers in Antonica.", 5, 100, "I need to get rid of five lowland badgers in Antonica for Dane Steelfist.", 124, 120213,121352)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest, "Antonica")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have killed five lowland badgers.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I killed five lowland badgers for Dane.")
  20. UpdateQuestZone(Quest, "Graystone Yard")
  21. AddQuestStepChat(Quest, 2, "I must report back to Dane in Graystone.", 1, "I need to report my progress back to Dane Steelfist in Graystone Yard.", 124, 2350037)
  22. AddQuestStepCompleteAction(Quest, 2, "Step2ChatComplete")
  23. end
  24. function Step2ChatComplete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 2, "I reported back to Dane Steelfist.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "I reported killing five lowland badgers to Dane.")
  27. UpdateQuestZone(Quest, "Antonica")
  28. AddQuestStepKill(Quest, 3, "I must kill eight grizzled badgers in Antonica.", 8, 100, "I need to get rid of eight grizzled badgers in Antonica for Dane Steelfist.", 124, 121194,120014)
  29. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  30. end
  31. function Step3Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 3, "I have killed eight grizzled badgers.")
  33. UpdateQuestTaskGroupDescription(Quest, 3, "I killed eight grizzled badgers for Dane.")
  34. UpdateQuestZone(Quest, "Graystone Yard")
  35. AddQuestStepChat(Quest, 4, "I must report back to Steelfist in Graystone.", 1, "I need to report my progress back to Dane Steelfist in Graystone Yard.", 124, 2350037)
  36. AddQuestStepCompleteAction(Quest, 4, "Step4ChatComplete")
  37. end
  38. function Step4ChatComplete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 4, "I reported back to Dane Steelfist.")
  40. UpdateQuestTaskGroupDescription(Quest, 4, "I reported killing eight grizzled badgers to Dane.")
  41. UpdateQuestZone(Quest, "Antonica")
  42. AddQuestStepKill(Quest, 5, "I must kill ten timber wolves in Antonica.", 10, 100, "I need to get rid of ten timber wolves in Antonica for Dane Steelfist.", 93, 121188,120008)
  43. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  44. end
  45. function Step5Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 5, "I have killed ten timber wolves.")
  47. UpdateQuestTaskGroupDescription(Quest, 5, "I killed ten timber wolves for Dane.")
  48. UpdateQuestZone(Quest, "Graystone Yard")
  49. AddQuestStepChat(Quest, 6, "I must report back to Steelfist in Graystone.", 1, "I need to report my progress back to Dane Steelfist in Graystone Yard and be done with him!", 93, 2350037)
  50. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  51. end
  52. function Accepted(Quest, QuestGiver, Player)
  53. end
  54. function Declined(Quest, QuestGiver, Player)
  55. end
  56. function Deleted(Quest, QuestGiver, Player)
  57. end
  58. function QuestComplete(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 6, "I have killed five lowland badgers.")
  60. UpdateQuestTaskGroupDescription(Quest, 6, "I killed five lowland badgers for Dane.")
  61. UpdateQuestDescription(Quest, "Dane Steelfist still has a lot to learn about being a bureaucrat, but I feel good that I helped him out -- without having to make a campaign contribution, either!")
  62. GiveQuestReward(Quest, Player)
  63. end
  64. function Reload(Quest, QuestGiver, Player, Step)
  65. if Step == 1 then
  66. Step1Complete(Quest, QuestGiver, Player)
  67. elseif Step == 2 then
  68. Step2ChatComplete(Quest, QuestGiver, Player)
  69. elseif Step == 3 then
  70. Step3Complete(Quest, QuestGiver, Player)
  71. elseif Step == 4 then
  72. Step4ChatComplete(Quest, QuestGiver, Player)
  73. elseif Step == 5 then
  74. Step5Complete(Quest, QuestGiver, Player)
  75. elseif Step == 6 then
  76. QuestComplete(Quest, QuestGiver, Player)
  77. end
  78. end