striking_back_at_the_goblins_mage.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/IsleofRefuge/striking_back_at_the_goblins_mage.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.13 09:09:59
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver: Mizan Vaeolin (3250057)
  8. Preceded by: Gathering Sealant Components
  9. Followed by: Attack on the Orc Leader
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. dofile("SpawnScripts/Generic/ClassSkillCheck.lua")
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I need to collect 4 Goblin Blood from Gruttooth Brutes.", 4, 70, "I need to collect four goblin blood samples from brutes found in the goblin village on the northwestern part of the island and return them to Mizan.", 178, 3250134,3250123,3250124)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. SkillCheck(QuestGiver,Player)
  19. FaceTarget(QuestGiver, Player)
  20. Dialog.New(QuestGiver, Player)
  21. Dialog.AddDialog("Very good. The village is located in the northwest portion of the isle. The others should already be on their way to the village. You are to provide magical support for the assault. The sooner you return with the samples, the sooner my teacher can begin to work on the warding spells.")
  22. Dialog.AddVoiceover("voiceover/english/mizan_vaeoulin/tutorial_island02/mizanvaeoulin010.mp3", 703383333, 2042531315)
  23. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  24. Dialog.AddOption("I'll be back soon with the four blood samples for you.")
  25. Dialog.Start()
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "I collected 4 Goblin Blood from Gruttooth Brutes.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have four goblin blood samples.")
  36. AddQuestStepChat(Quest, 2, "I need to take these goblin blood samples to Mizan.", 1, "I need to return to Mizan with these goblin blood samples.", 11, 3250057)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 2, "I took the samples to Mizan.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I gave the blood samples to Mizan.")
  43. UpdateQuestDescription(Quest, "I was able to collect four goblin blood samples for Mizan and helped with the attacks on the village. Mizan's teacher Malvonicus should be able to put the samples to good use.")
  44. GiveQuestReward(Quest, Player)
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end