much_ado_about_rallos.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. --[[
  2. Script Name : much_ado_about_rallos.lua
  3. Script Purpose : Handles the quest, "Much Ado' About Rallos"
  4. Script Author : torsten
  5. Script Date : 12.07.2022
  6. Script Notes :
  7. Zone : Big Bend
  8. Quest Giver : Kroota Gukbutcher
  9. Preceded by : Rat Barsh!
  10. Followed by : The Fume and Fire Ceremony
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Zukogg is just outside the Freeport Reserve bank in the center of Big Bend. Speak to her about the skins.", 1, "Rallos' ceremony requires blood of his enemies, skins of the inferior, and incense.", 11, 1340009)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I spoke to Zukogg.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I spoke to Zukogg about the skins.")
  19. AddQuestStep(Quest, 2, "I need to collect skins.", 1, 100, "I need to collect skins from the barrels nearby.", 0)
  20. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  21. end
  22. function Step2Complete(Quest, QuestGiver, Player)
  23. UpdateQuestStepDescription(Quest, 2, "I collected the skins.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I collected the skins from the barrels.")
  25. AddQuestStepChat(Quest, 3, "I need to talk to Barch about the blood.", 1, "I need to talk to Barch about the blood.", 11, 1340015)
  26. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  27. end
  28. function Step3Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 3, "I talked to Barch about the blood.")
  30. UpdateQuestTaskGroupDescription(Quest, 3, "I talked to Barch about the blood.")
  31. AddQuestStepHarvest(Quest, 4, "I need to gather a Vase of Qeynosian Origin.", 1, 100, "The vase should be around here somewhere.", 569, 15179)
  32. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  33. end
  34. function Step4Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 4, "I found a Vase of Qeynosian Origin.")
  36. UpdateQuestTaskGroupDescription(Quest, 4, "I should bring the Vase to Barch.")
  37. AddQuestStepChat(Quest, 5, "I need to bring the vase to Barch, he will give me the blood hopefully.", 1, "I need to bring the vase to Barch.", 11, 1340015)
  38. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  39. end
  40. function Step5Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 5, "I talked to Barch.")
  42. UpdateQuestTaskGroupDescription(Quest, 5, "I talked to Barch and he gave me the Blood of Rallos' Enemies.")
  43. while HasItem(Player, 15179) do --destroy vase
  44. RemoveItem(Player, 15179)
  45. end
  46. AddQuestStepChat(Quest, 6, "I should talk to Crattok next for the Incense.", 1, "I should talk to Crattok next.", 11, 1340025)
  47. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  48. end
  49. function Step6Complete(Quest, QuestGiver, Player)
  50. UpdateQuestStepDescription(Quest, 6, "I talked to Crattok.")
  51. UpdateQuestTaskGroupDescription(Quest, 6, "I talked to Crattok but I will return to Kroota before I pay him.")
  52. AddQuestStepChat(Quest, 7, "I need to talk with Kroota.", 1, "I need to talk with Kroota.", 11, 1340040)
  53. AddQuestStepCompleteAction(Quest, 7, "Step7Complete")
  54. end
  55. function Step7Complete(Quest, QuestGiver, Player)
  56. UpdateQuestStepDescription(Quest, 7, "I talked to Kroota.")
  57. UpdateQuestTaskGroupDescription(Quest, 7, "I talked to Kroota and the gave me rat carcass snacks to pay Crattok.")
  58. AddQuestStepChat(Quest, 8, "I need to talk to Crattok again and pay him with rat carcass snacks", 1, "I need to talk with Crattok.", 11, 1340025)
  59. AddQuestStepCompleteAction(Quest, 8, "Step8Complete")
  60. end
  61. function Step8Complete(Quest, QuestGiver, Player)
  62. UpdateQuestStepDescription(Quest, 8, "I talked to Crattok and he gave me the incense.")
  63. UpdateQuestTaskGroupDescription(Quest, 8, "I talked to Crattok.")
  64. AddQuestStepChat(Quest, 9, "I need to return to Kroota with the items I gathered", 1, "I need to return to Kroota.", 11, 1340040)
  65. AddQuestStepCompleteAction(Quest, 9, "QuestComplete")
  66. end
  67. function QuestComplete(Quest, QuestGiver, Player)
  68. UpdateQuestDescription(Quest, "The ceremony to honor Rallos Zek will go well, now that the needed items were given to Kroota.")
  69. GiveQuestReward(Quest, Player)
  70. end
  71. function Accepted(Quest, QuestGiver, Player)
  72. -- Add dialog here for when the quest is accepted
  73. end
  74. function Declined(Quest, QuestGiver, Player)
  75. -- Add dialog here for when the quest is declined
  76. end
  77. function Deleted(Quest, QuestGiver, Player)
  78. -- Remove any quest specific items here when the quest is deleted
  79. end
  80. function Reload(Quest, QuestGiver, Player, Step)
  81. if Step == 1 then
  82. Step1Complete(Quest, QuestGiver, Player)
  83. elseif Step == 2 then
  84. Step2Complete(Quest, QuestGiver, Player)
  85. elseif Step == 3 then
  86. Step3Complete(Quest, QuestGiver, Player)
  87. elseif Step == 4 then
  88. Step4Complete(Quest, QuestGiver, Player)
  89. elseif Step == 5 then
  90. Step5Complete(Quest, QuestGiver, Player)
  91. elseif Step == 6 then
  92. Step6Complete(Quest, QuestGiver, Player)
  93. elseif Step == 7 then
  94. Step7Complete(Quest, QuestGiver, Player)
  95. elseif Step == 8 then
  96. Step8Complete(Quest, QuestGiver, Player)
  97. elseif Step == 9 then
  98. QuestComplete(Quest, QuestGiver, Player)
  99. end
  100. end