9
3

becoming_a_sorcerer.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : Quests/Hallmark/becoming_a_sorcerer.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.29 03:09:49
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to duel Dasicar T'Lys.", 1, 100,"I need to seek out Dasicar T'Lys in the Academy dueling room to have our duel.", 611)
  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("You will face a fellow student, Dasicar T'Lys, in a battle of the arcane arts. The victor of this battle shall acquire the right to be called a sorcerer of Freeport. Make your way inside and enter the dueling chamber. If you win the battle, return to me.")
  20. Dialog.AddVoiceover("voiceover/english/arcanist_sonius/fprt_north/arcanistsonius019.mp3", 861072118, 1987867443)
  21. Dialog.AddOption("I will return victorious!")
  22. Dialog.Start()
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I defeated Dasicar T'Lys.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I defeated Dasicar T'Lys in a duel.")
  33. AddQuestStepChat(Quest, 2, "I need to speak with the Arcanist.", 1, "I need to return to Arcanist Sonius and let her know I was the victor.", 11,1)
  34. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 2, "I spoke with the Arcanist.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I have spoken to Arcanist Sonius.")
  40. UpdateQuestDescription(Quest, "I defeated Dasicar T'Lys in a duel of mages. Arcanist Sonius was surprised that I won and Dasicar was the vanquished. It doesn't matter. I am the one that is now the Sorcerer.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end