bring_out_your_souls.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : bring_out_your_souls.lua
  3. Script Purpose : Handles the quest, "Bring Out Your Souls"
  4. Script Author : premierio015\\Dorbin
  5. Script Date : 25.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Graveyard
  8. Quest Giver : Zekvila Dizelk
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "Kill undead knights", 10, 100, "Zekvila asked me to destroy some undead knights in the Graveyard. I'll hold out the crystal as each one is destroyed.", 611, 1250007, 1250006, 1250010, 1250008, 1250018, 1250012, 1250013, 1250019, 1250030, 1250033, 1250026, 1250023, 1250028, 1250024, 1250021,8390034,8390040)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Graveyard")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. Dialog.New(QuestGiver, Player)
  21. Dialog.AddDialog("You choose wisely, friend. I shall use the lessons taught to the Iksar by our dead emperor, Venril Sathir. This is where you come in ... the magic of the dead will put a stop to Ithelz's pompous belief that he is our new ruler. I will tell you only once: take the crystal, go to the graveyard, and kill the undead knights. As the beasts die, hold out the crystal and collect their souls. Return when you fill the crystal.")
  22. Dialog.AddVoiceover("voiceover/english/zekvila_dizelk/fprt_hood06/quests/zekviladizelk/zekvila_x1_accept.mp3", 159211273, 3086323061)
  23. Dialog.AddOption("I understand. I'll be back when it's done.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "I have killed the undead.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed ten undead and collected their souls.")
  35. UpdateQuestZone(Quest,"Scale Yard")
  36. AddQuestStepChat(Quest, 2, "Speak with Zekvila", 1, "I should return the crystal to Zekvila in the Scale Yard.", 1178, 1250034,1390128)
  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 have spoken with Zekvila.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have given Zekvila the crystal filled with souls.")
  43. UpdateQuestDescription(Quest, "Zekvila was pleased with the crystal. She claims that it will help her topple her rival's rule. I think I may ask her later if she needs any more help, in case she actually is successful.")
  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