BloodskullDisruption.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : bloodskull_disruption.lua
  3. Script Purpose : Handles the quest, "Bloodskull Disruption"
  4. Script Author : premierio015
  5. Script Date : 08.03.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Rainus Canton
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to disrupt the southern Bloodskull offensive encampment", 1, 100, "I need to disrupt the orc encampments south of the kerran and ratonga communities.", 11, 330290) -- a Bloodskull orc in Southern camp
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have disrupted the southern Bloodskull offensive encampment.")
  27. AddQuestStepKill(Quest, 2, "I need to disrupt the northern Bloodskull offensive encampment", 1, 100, "I need to disrupt the orc encampments south of the kerran and ratonga communities.", 11, 330268) -- a Bloodskull orc in Northern Camp
  28. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  29. end
  30. function Step2Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have disrupted the northern Bloodskull offensive encampment.")
  32. AddQuestStep(Quest, 3, "I need to destroy boxes of Bloodskull supplies using explosives", 5, 100, "I need to disrupt the orc encampments south of the kerran and ratonga communities.", 655)
  33. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  34. end
  35. function Step3Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 3, "I have destroyed boxes of Bloodskull supplies.")
  37. AddQuestStep(Quest, 4, "I need to destroy the orc siege tower", 1, 100, "I need to disrupt the orc encampments south of the kerran and ratonga communities.", 2339)
  38. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  39. end
  40. function Step4Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 4, "I have destroyed the orc siege tower.")
  42. UpdateQuestTaskGroupDescription(Quest, 1, "I have disrupted the orc encampments.")
  43. AddQuestStepChat(Quest, 5, "I need to return to Rainus", 1, "Now that I have done as he asked, I should return to Rainus Canton.", 11, 330246)
  44. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  45. end
  46. function QuestComplete(Quest, QuestGiver, Player)
  47. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  48. UpdateQuestStepDescription(Quest, 5, "I have spoken with Rainus.")
  49. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Rainus Canton.")
  50. UpdateQuestDescription(Quest, "I have destroyed the orc supplies and siege tower and slain the orcs in the encampments. Rainus rewarded me for my work.")
  51. GiveQuestReward(Quest, Player)
  52. end
  53. function Reload(Quest, QuestGiver, Player, Step)
  54. if Step == 1 then
  55. Step1Complete(Quest, QuestGiver, Player)
  56. elseif Step == 2 then
  57. Step2Complete(Quest, QuestGiver, Player)
  58. elseif Step == 3 then
  59. Step3Complete(Quest, QuestGiver, Player)
  60. elseif Step == 4 then
  61. Step4Complete(Quest, QuestGiver, Player)
  62. elseif Step == 5 then
  63. QuestComplete(Quest, QuestGiver, Player)
  64. end
  65. end