removing_the_orc_menace_.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : Quests/IsleofRefuge/removing_the_orc_menace_.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.24 03:09:05
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Nathinia
  8. Preceded by: Striking Back at the Goblins
  9. Followed by: None
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to enter the orc cave.", 1, "I must find and enter the lair of the orc leader. His cave should be somewhere on the northeastern part of the island, past the main goblin encampment.", 11, -13.77, 0.00, -3.00, 324)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("Good. Others are planning an attack on the creature. Go now and aid them with your healing and blessing powers. They depend on you to keep them alive and well. Be safe, young priest. The orc hides in a cave at the far northeast side of the isle. Find the cave and destroy the beast.")
  20. Dialog.AddVoiceover("voiceover/english/nathinia_sparklebright/tutorial_island02/nathiniasparklebright013.mp3", 969428761,2830927430)
  21. Dialog.AddEmote("agree")
  22. -- PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  23. Dialog.AddOption("I will return to you after slaying this beast.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I found the orc cave.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I found the orc cave.")
  35. AddQuestStepKill(Quest, 2, " I need to slay the orc in the cave.", 1, 100, " I need to slay Grimgash the Black, the orc leader that is behind the goblin attacks.", 11, 3240000)
  36. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  37. end
  38. function Step2Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I killed Grimgash the Black.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I killed Grimgash the Black.")
  41. AddQuestStepChat(Quest, 3, "I need to return to Nathinia to let her know the orc has been removed from power.", 1, "I should tell Nathinia that Grimgash is dead.", 11, 3250014)
  42. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  43. end
  44. function QuestComplete(Quest, QuestGiver, Player)
  45. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  46. UpdateQuestStepDescription(Quest, 3, "I spoke to Nathinia.")
  47. UpdateQuestTaskGroupDescription(Quest, 3, "I spoke to Nathinia.")
  48. UpdateQuestDescription(Quest, "I was able to assist in helping remove the orc from power. In time, the goblins should now stop attacking the outpost and return to a less aggressive nature. I was awarded a scepter for my part in putting an end to this menace.")
  49. GiveQuestReward(Quest, Player)
  50. end
  51. function Reload(Quest, QuestGiver, Player, Step)
  52. if Step == 1 then
  53. Step1Complete(Quest, QuestGiver, Player)
  54. elseif Step == 2 then
  55. Step2Complete(Quest, QuestGiver, Player)
  56. elseif Step == 3 then
  57. QuestComplete(Quest, QuestGiver, Player)
  58. end
  59. end