striking_back_at_the_goblins_scout.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/IsleofRefuge/striking_back_at_the_goblins_scout.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.13 09:09:34
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Vladiminn (3250016)
  8. Preceded by: Scouting the Goblin Camp
  9. Followed by: Hunting the Orcish Leader
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to gather four wolf harnesses and return to Vladiminn.", 4, 70, "My part in the raid on the main goblin camp will consist of slaying the trained battle and war wolves that the goblins keep there. Vladiminn would like me to return four wolf harnesses to him.", 286, 3250128,3250129)
  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("Cinch up your belt and inspect your weapons, you're going goblin hunting. I need a few of those collars their wolves wear. You'll probably want to find some friends to go with you. The island's leaders have decided to try and find out what's behind these attacks, so we need to bring back anything we can find. All the priests, fighters and mages will be out looking to find what they can as well.")
  20. Dialog.AddVoiceover("voiceover/english/vladiminn/tutorial_island02/vladiminn008.mp3", 2366018464, 490520943)
  21. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  22. Dialog.AddOption("I'll be back when I've gathered what you wish.")
  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 collected four rope harnesses.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I collected four rope harnesses from the battle at the village.")
  34. AddQuestStepChat(Quest, 2, "I need to give these harnesses to Vladiminn.", 1, "I need to return to Vladiminn at the outpost and give him these rope harnesses.", 11, 3250016)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I returned the wolf harnesses to Vladiminn")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I gathered the four wolf harnesses and gave them to Vladiminn.")
  41. UpdateQuestDescription(Quest, "It appears that Vladiminn recognized something about either the workmanship or style of the harnesses I brought him. He didn't explain directly what he meant, only that my part in all this was at an end, though I think if I prod him a bit, he may divulge what he's afraid of, or at least what it was he noticed about the collars.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end