striking_back_at_the_goblins_scout.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. dofile("SpawnScripts/Generic/ClassSkillCheck.lua")
  13. function Init(Quest)
  14. 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)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. 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.")
  21. Dialog.AddVoiceover("voiceover/english/vladiminn/tutorial_island02/vladiminn008.mp3", 2366018464, 490520943)
  22. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  23. Dialog.AddOption("I'll be back when I've gathered what you wish.")
  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 collected four rope harnesses.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I collected four rope harnesses from the battle at the village.")
  35. 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)
  36. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  37. end
  38. function QuestComplete(Quest, QuestGiver, Player)
  39. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  40. UpdateQuestStepDescription(Quest, 2, "I returned the wolf harnesses to Vladiminn")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I gathered the four wolf harnesses and gave them to Vladiminn.")
  42. 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.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end