removing_the_orc_menace_Fighter.lua 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/IsleofRefuge/removing_the_orc_menace_Fighter.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.24 03:09:47
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Braksen
  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 find the orc's cave.", 1, "I need to find the orc's cave on the northeast 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("The others will rely on you to handle most of the fighting but I know you can handle it. You're a brave fighter after all! Go, meet with the others in the village and give those goblins what they deserve! While you are at it friend, fetch me some flint head spears that the goblins carry. I figure it's the least those buggers owe me, considering all of my gear they've stole or broke in the past few weeks. Quickly now! Time is a wasting!")
  20. Dialog.AddVoiceover("voiceover/english/braksan_steelforge/tutorial_island02/braksansteelforge013.mp3", 3489827867,2503461206)
  21. PlayFlavor(QuestGiver, "", "", "no", 0, 0, Player)
  22. Dialog.AddOption("I'll put an end to this.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I found the orc cave.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I found the orc cave.")
  34. AddQuestStepKill(Quest, 2, "I need to kill Grimgash the Black.", 1, 100, "I need to kill Grimgash the Black who I now know to be the cause of the goblin uprising.", 11, 3240000)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I killed Grimgash the Black.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I killed Grimgash the Black.")
  40. AddQuestStepChat(Quest, 3, "I should tell Braksan that Grimgash is dead.", 1, "I should tell Braksan that Grimgash is dead.", 11, 3250017)
  41. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 3, "I spoke to Braksan.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I spoke to Braksan.")
  47. UpdateQuestDescription(Quest, "I found Grimgash the Black and helped slay him. That orc will not be organizing raids any time soon... For all my hard work Braksan gave me a buckler as a reward for my service to the outpost.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. QuestComplete(Quest, QuestGiver, Player)
  57. end
  58. end