9
3

magical_retribution.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : magical_retribution.lua
  3. Script Purpose : Handles the quest, "Magical Retribution"
  4. Script Author : torsten
  5. Script Date : 19.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Lotni K`Iria
  9. Preceded by : The Missing Book
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I must kill ten Black Magis insurgents", 10, 100, "I should travel to the Sprawl and kill those Black Magi. I won't be done until I've killed at least ten of them.", 611, 1260012)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. UpdateQuestZone(Quest,"Sprawl")
  17. end
  18. function QuestComplete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have killed the Black Magis insurgents")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've killed the mages like I said I would.")
  21. UpdateQuestDescription(Quest, "I have killed a number of the Black Magi. They appear to have taught a number of their kin how to use magic, so they're not all dead. I'll decide whether to kill some more or just continue on. Either way, at least ten of them will no longer practice the forbidden magics. Neither will the last one need the magical necklace it possessed.")
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("Hmmm ... yes, at least you could prevent a few of those beasts from learning the secrets of the ancient book. It won't solve the problem, but it's a fitting lesson -- if they play with fire, then they should expect to be burned. Go to the sprawl and kill as many ratonga as you can find.")
  28. PlayFlavor(QuestGiver,"","","ponder",0,0,Player)
  29. -- Dialog.AddVoiceover("voiceover/english/standard_dark_elf_female/fprt_hood05/quests/lotniklria/lotni_x2_accept.mp3", 1332546096, 2822860601) Missing VO Keys
  30. Dialog.AddOption("I'll see it done.")
  31. Dialog.Start()
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is declined
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. -- Remove any quest specific items here when the quest is deleted
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end