9
3

war_statues.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : Quests/IsleofRefuge/war_statues.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.10 07:09:06
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Nathinia Sparklebright
  8. Preceded by: Speaking with Nathinia
  9. Followed by: Venom Sac Collection
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to use my smite spell to destroy 3 war statues.", 3, 100, "I must travel through the northern archway just west of the outpost where I met the Gruttooth invaders. In the eastern corner of the grove there I should find the mystics worshipping their depraved idols. I need to use my smite spell to destroy three of the idols.", 372, 3250089)
  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("Thank you. Be wary of the mystics who guard the idols. Even without the idols they could prove to be deadly enemies. May the gods protect you and guide your hand in this task.")
  20. Dialog.AddVoiceover("voiceover/english/nathinia_sparklebright/tutorial_island02/nathiniasparklebright004.mp3", 3851336954,3648952364)
  21. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  22. Dialog.AddOption("Thank you.")
  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've destroyed 3 war statues.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I found and managed to destroy three of the goblin idols. Nathinia should be very pleased.")
  34. AddQuestStepChat(Quest, 2, "I must speak with Nathinia Sparklebright. ", 1, "I need to return to Nathinia Sparklebright in the outpost and tell her of my victory.", 11, 3250014)
  35. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I've given news of my victory to Nathinia Sparklebright.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've informed Nathinia of the destruction of the statues.")
  40. AddQuestStepChat(Quest, 3, "I need to pick up my boots from the bank.", 1, "I need to visit the bank in the village to pick up my boots.", 11,3250036)
  41. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 3, "I went to the bank to pick up my boots.")
  46. UpdateQuestTaskGroupDescription(Quest, 3, "I went to the bank in the village to pick up my boots.")
  47. UpdateQuestDescription(Quest, "With the power of my smite spell I was able to destroy three of the war statues. With their mystics weakened the goblins should have a much harder time with their assaults on the outpost.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. QuestComplete(Quest, QuestGiver, Player)
  57. end
  58. end