an_enchanting_evening_with_krysa.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : Quests/TempleStreet/an_enchanting_evening_with_krysa.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.07 10:11:22
  5. Script Purpose :
  6. Zone : TempleStreet
  7. Quest Giver: Krysa
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to speak with Raban in Stonestair Byway.", 1, "I need to find Raban. She should be in Stonestair Byway.", 11, 1350037)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Stonestair Byway")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've spoken with Raban.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have had a little conversation with Raban. It seems she's behind all of this.")
  20. UpdateQuestZone(Quest,"Temple Street")
  21. AddQuestStepChat(Quest, 2, "I have to speak with Krysa.", 1, "I should let Krysa know that Raban has offered to continue casting these spells free of charge.", 11, 1360042)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("Even though I don't have makeup, I still have the helps of a witch in the Erudite district. You go there for me, yes? When you get there, look for a woman named Raban. She is the witch who helps me. Tell her I brings her money if she makes Spezi and Krasa more ugly. Okay?")
  28. Dialog.AddVoiceover("voiceover/english/krysa/fprt_hood03/quests/krysa/krysa_x2_accept.mp3", 67608218, 4287928755)
  29. PlayFlavor(QuestGiver,"","","agree",0,0,Player)
  30. Dialog.AddOption("I'll try to find her in Stonestair.")
  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 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've spoken with Krysa.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I have told Krysa that Raban has offered to cast the spells free of charge.")
  43. UpdateQuestDescription(Quest, "Those three women have no idea how badly they're being played. Their vanity is so great that Raban the Erudite is playing them like little marionettes. It seems that Raban has been casting some type of special enchantment to make Krasa and Spezi ugly. I think it's best to not get involved at this point.")
  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