9
3

goblin_supply_raid.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/IsleofRefuge/goblin_supply_raid.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.10 07:09:40
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Brasken Ironforge
  8. Preceded by: Speaking with Brasken
  9. Followed by: Refugee Rescue
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, " I need to kill four goblin supply runners.", 4, 100, "I need to kill four goblin supply runners at one of their supply camps west of the outpost.", 91, 3250077)
  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("Now we're talking! Find the supply camp and look for goblin supply runners in the area. If you can kill several of those varmints it should buy the mages enough time to take care of the supply crates. ")
  20. Dialog.AddVoiceover("voiceover/english/braksan_steelforge/tutorial_island02/braksansteelforge004.mp3", 1964849884,396353877)
  21. PlayFlavor(QuestGiver, "", "", "happy", 0, 0, Player)
  22. Dialog.AddOption("Don't worry, I'll take care of them for you.")
  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've killed four supply runners.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I found and managed to kill four of the goblin supply runners. Brasken should hear about this development.")
  34. AddQuestStepChat(Quest, 2, "I need to report back to Braksan.", 1, "I need to return to Braksan and tell him of my deeds.", 11, 3250017)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I've given news of my victory to Braksan Steelforge.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've reported back to Braksan about the supply runners.")
  40. AddQuestStepChat(Quest, 3, "I need to pick up my boots from the bank.", 1, "I need to visit the bank in the village to pick up my boots.", 11,3250036)
  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 went to the bank to pick up my boots.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I went to the bank in the village to pick up my boots.")
  47. UpdateQuestDescription(Quest, "With the supply runners I killed, the mages shouldn't have much of a problem destroying the supply crates. Hopefully this combined effort will set the goblin advance back a few steps.")
  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