scouting_the_goblin_camp.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. AddQuestStepZoneLoc(Quest, 1, "I need to scout the goblin camp.", 14, "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,325)
  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. SendPopUpMessage(Player,"I have scouted the goblin camp.",255,255,255)
  35. 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)
  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 gave Vladiminn the information.")
  41. UpdateQuestTaskGroupDescription(Quest, 2, "I've told Vladiminn all I know of the main goblin encampment.")
  42. 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.")
  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