9
3

TheBloodskullThreat.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : Quests/Commonlands/TheBloodskullThreat.lua
  3. Script Purpose : Handles the quest, "The Bloodskull Threat"
  4. Script Author : premierio015
  5. Script Date : 14.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Tecera Valnos
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to kill six Bloodskull shamans", 6, 100, "I need to attack the encampment of Bloodskull orcs that Tecera has been tracking.", 611, 330335)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. AddConversationOption(conversation, "I will")
  20. StartConversation(conversation, QuestGiver, Player, "Thank you, and be careful.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have slain the Bloodskull shamans.")
  30. AddQuestStepKill(Quest, 2, "I need to kill Vurog Ma'gar", 1, 100, "I need to attack the encampment of Bloodskull orcs that Tecera has been tracking.", 2488, 330336)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I have slain Vurog Ma'gar.")
  35. AddQuestStepKill(Quest, 3, "I need to kill Jyrok the Stone", 1, 100, "I need to attack the encampment of Bloodskull orcs that Tecera has been tracking.", 2489, 330337)
  36. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  37. end
  38. function Step3Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I have slain Jyrok the Stone.")
  40. AddQuestStepChat(Quest, 4, "I need to collect Arnisu Tobian's report", 1, "I need to attack the encampment of Bloodskull orcs that Tecera has been tracking.", 75, 330338)
  41. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  42. end
  43. function Step4Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 4, "I have collected Arnisu Tobian's report.")
  45. UpdateQuestTaskGroupDescription(Quest, 1, "I have slain the orcs and their leaders and retrieved Arnisu's report.")
  46. AddQuestStepChat(Quest, 5, "I need to return to Tecera", 1, "Now that I have done as she asked, I should return to Tecera.", 11, 330199)
  47. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  48. end
  49. function QuestComplete(Quest, QuestGiver, Player)
  50. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  51. UpdateQuestStepDescription(Quest, 5, "I have spoken with Tecera.")
  52. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken with Tecera.")
  53. UpdateQuestDescription(Quest, "I have brought Arnisu's report to Tecera. She was pleased at my success.")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. Step1Complete(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. Step2Complete(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. Step3Complete(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. Step4Complete(Quest, QuestGiver, Player)
  65. elseif Step == 5 then
  66. QuestComplete(Quest, QuestGiver, Player)
  67. end
  68. end