the_fume_and_fire_ceremony.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : the_fume_and_fire_ceremony.lua
  3. Script Purpose : Handles the quest, "The Fume and Fire Ceremony"
  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 : Much Ado' About Rallos
  10. Followed by : More Barshing!
  11. --]]
  12. local TheFumeFireCeremony = 5635
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I should speak to Kroota again.", 1, "The ceremony for Rallos Zek is to continue without Kroota.", 11, 1340040)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have spoken to Kroota.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have spoken to Kroota and got the items for the ceremony.")
  20. AddItem(Player, 12866, 1)
  21. AddItem(Player, 4383, 1)
  22. AddItem(Player, 8298, 1)
  23. AddQuestStepChat(Quest, 2, "I should speak to Somdoq.", 1, "The ceremony for Rallos Zek is to continue without Kroota.", 11, 1340043)
  24. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  25. end
  26. function Step2Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 2, "I have spoken to Somdoq about the ceremony.")
  28. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Somdoq.")
  29. AddQuestStep(Quest, 3, "Burn the incense.", 1, 100, "I should perform the ceremony.", 0)
  30. AddQuestStep(Quest, 4, "Rip the flesh, and add it to the bones on the ground.", 1, 100, "I should perform the ceremony.", 0)
  31. AddQuestStep(Quest, 5, "Smear the blood on your face, and smash the vase on the ground.", 1, 100, "I should perform the ceremony.", 0)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  34. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  35. end
  36. function Step3Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 3, "I've burnt the incense.")
  38. RemoveItem(Player, 8298)
  39. CheckProgress(Quest, QuestGiver, Player)
  40. end
  41. function Step4Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 4, "I have ripped the flesh.")
  43. RemoveItem(Player, 12866)
  44. CheckProgress(Quest, QuestGiver, Player)
  45. end
  46. function Step5Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 5, "I have smeared the blood on my face.")
  48. RemoveItem(Player, 4383)
  49. CheckProgress(Quest, QuestGiver, Player)
  50. end
  51. function CheckProgress(Quest, QuestGiver, Player)
  52. if QuestStepIsComplete(Player, TheFumeFireCeremony, 3) and QuestStepIsComplete(Player, TheFumeFireCeremony, 4) and QuestStepIsComplete(Player, TheFumeFireCeremony, 5) then
  53. UpdateQuestTaskGroupDescription(Quest, 3, "I should speak to Somdedog now as I performed my tasks.")
  54. AddQuestStepChat(Quest, 6, "I should speak to Somdoq again", 1, "The ceremony is about to continue.", 0, 1340043)
  55. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  56. end
  57. end
  58. function Step6Complete(Quest, QuestGiver, Player)
  59. UpdateQuestStepDescription(Quest, 6, "I have spoken to Somdoq again.")
  60. UpdateQuestTaskGroupDescription(Quest, 6, "Somdog finished the ceremony.")
  61. AddQuestStepChat(Quest, 7, "I should return to Kroota.", 1, "I should return to Kroota and tell him about the ceremony", 0, 1340040)
  62. AddQuestStepCompleteAction(Quest, 7, "QuestComplete")
  63. end
  64. function QuestComplete(Quest, QuestGiver, Player)
  65. UpdateQuestDescription(Quest, "The ceremony was completed without interruption. ")
  66. GiveQuestReward(Quest, Player)
  67. end
  68. function Accepted(Quest, QuestGiver, Player)
  69. -- Add dialog here for when the quest is accepted
  70. end
  71. function Declined(Quest, QuestGiver, Player)
  72. -- Add dialog here for when the quest is declined
  73. end
  74. function Deleted(Quest, QuestGiver, Player)
  75. -- Remove any quest specific items here when the quest is deleted
  76. end
  77. function Reload(Quest, QuestGiver, Player, Step)
  78. if Step == 1 then
  79. Step1Complete(Quest, QuestGiver, Player)
  80. elseif Step == 2 then
  81. Step2Complete(Quest, QuestGiver, Player)
  82. elseif Step == 3 then
  83. Step3Complete(Quest, QuestGiver, Player)
  84. elseif Step == 4 then
  85. Step4Complete(Quest, QuestGiver, Player)
  86. elseif Step == 5 then
  87. Step5Complete(Quest, QuestGiver, Player)
  88. elseif Step == 6 then
  89. Step6Complete(Quest, QuestGiver, Player)
  90. elseif Step == 7 then
  91. QuestComplete(Quest, QuestGiver, Player)
  92. end
  93. end