scouting_the_goblin_camp.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/IsleofRefuge/scouting_the_goblin_camp.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.11 12:09:20
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Vladiminn (3250016)
  8. Preceded by: Deer Hunting
  9. Followed by: Striking Back at the Goblins
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I need to scout the goblin camp.", 12, "I need to scout out the main goblin camp and gather information for the outpost. If I can sneak past the brutes and manage to get close enough to their central camps in the north I should be able to get the information I need.", 11, 195.26, -0.68, -188.07)
  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("You must move stealthy past the goblin guards and spy on the camp. Get a headcount of goblins and a layout of the camp. Be careful if a goblin finds you, you'll be ripped to pieces without mercy. Remember this is a scout mission. Don't attempt any heroic acts you'll only end up dead.")
  20. Dialog.AddVoiceover("voiceover/english/vladiminn/tutorial_island02/vladiminn005.mp3", 3243100129, 1880511698)
  21. PlayFlavor(QuestGiver, "", "", "orate", 0, 0, Player)
  22. Dialog.AddOption("Don't worry about me, worry about the new refugees.")
  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 scouted the goblin camp.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I gathered information about the goblins' camp.")
  34. AddQuestStepChat(Quest, 2, "I need to give the information to Vladiminn.", 1, "I should report back to Vladiminn with the information I've gathered on the goblin camp.", 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 gave Vladiminn the information.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I've told Vladiminn all I know of the main goblin encampment.")
  41. UpdateQuestDescription(Quest, "It seems that the goblin numbers are more than they'd first expected. I think Vladiminn will try to recruit me later to help out with the effort to drive back the goblins, but in the meantime, he's given me a pair of leggings to match the boots I received earlier.")
  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