9
3

gruttooth_invasion_priest.lua 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/Hallmark/gruttooth_invasion_priest.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.09 08:09:42
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver: Garven Tralk
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Grab a weapon from the nearby weapon rack.", 1, 100, "I need to grab a weapon off of the weapon rack on the beach and help defend the outpost.", 45)
  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("All right then. Quickly now, grab a weapon from the rack here and go to the west gate. Our scouts have reported that another group of goblins is going to charge the barricade at any moment now -- if they haven't already.")
  20. Dialog.AddVoiceover("voiceover/english/garven_tralk/tutorial_island02/garventralk017.mp3",2814753632, 2666092435)
  21. Dialog.AddOption("Continue.", "PContinue2")
  22. Dialog.Start()
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. PlayFlavor(QuestGiver, "voiceover/english/garven_tralk/tutorial_island02_fvo_onaoienter.mp3", "You there! Stop standing around like a drunken sailor and get over here!", "", 4010256509, 3318344012, Player)
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. PlayFlavor(QuestGiver, "voiceover/english/garven_tralk/tutorial_island02_fvo_onaoienter.mp3", "You there! Stop standing around like a drunken sailor and get over here!", "", 4010256509, 3318344012, Player)
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "Got my weapon, now to kill some goblins.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I've got my weapon and am ready to do my part defending the outpost.")
  33. AddQuestStepKill(Quest, 2, "I must kill one of the Gruttooth invaders attacking the outpost.", 1, 100, "I must head up the stairs and out to the west gate. Just past the barricades there I'll find goblin invaders attacking the outpost. It's my job to kill at least one of the buggers.", 11, 3250063)
  34. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "I've killed one of the Gruttooth invaders attacking the outpost.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I've done my part in helping defend the outpost against a goblin raid.")
  39. AddQuestStepChat(Quest, 3, "I need to talk to Garven again.", 1, "I've done my duty and should talk to Garven on the beach again.", 11, 3250020)
  40. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  41. end
  42. function QuestComplete(Quest, QuestGiver, Player)
  43. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  44. UpdateQuestStepDescription(Quest, 3, "Garven has rewarded me for my efforts")
  45. UpdateQuestTaskGroupDescription(Quest, 3, "Garven has rewarded me for my efforts.")
  46. UpdateQuestDescription(Quest, "I successfully helped fend off one of the nearly constant goblin raids on this island, even managing to kill one of the invaders myself. Garven has instructed me to seek out the trainer of my profession on the Isle for further tasks. With any luck I'll be headed for one of the larger cities sometime soon.")
  47. GiveQuestReward(Quest, Player)
  48. end
  49. function Reload(Quest, QuestGiver, Player, Step)
  50. if Step == 1 then
  51. Step1Complete(Quest, QuestGiver, Player)
  52. elseif Step == 2 then
  53. Step2Complete(Quest, QuestGiver, Player)
  54. elseif Step == 3 then
  55. QuestComplete(Quest, QuestGiver, Player)
  56. end
  57. end