krasa_isnt_taking_it_anymore.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/TempleStreet/krasa_isnt_taking_it_anymore.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.07 05:11:51
  5. Script Purpose :
  6. Zone : TempleStreet
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to talk to Spezi.", 1, "I need to give Spezi the message that Krasa will keep Krysa's door unlocked tonight. I think she's going to kill her in her sleep.", 11,1360015)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have spoken to Spezi.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I gave Spezi the message. I'm pretty certain I don't want anything to do with this.")
  19. AddQuestStepChat(Quest, 2, "I need to talk to Krasa.", 1, "I should let Krasa know that Spezi was given the message.", 11, 1360040)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function Accepted(Quest, QuestGiver, Player)
  23. FaceTarget(QuestGiver, Player)
  24. Dialog.New(QuestGiver, Player)
  25. Dialog.AddDialog("Go finds ugly Spezi. Shes hates Krysa as much as I dos! Actuallys, she hates her even more than I dos! Tell Spezi I am leaving Krysa's doors open tonights. She'll know what to do! Yous tells me when you give the message, yes?")
  26. Dialog.AddVoiceover("voiceover/english/barmaid_krasa/fprt_hood03/quests/krasa/krasa_x1_accept.mp3", 1302270028, 602595312)
  27. PlayFlavor(QuestGiver,"","","point",0,0,Player)
  28. Dialog.AddOption("Spezi will get the message!")
  29. Dialog.Start()
  30. end
  31. function Declined(Quest, QuestGiver, Player)
  32. -- Add dialog here for when the quest is declined
  33. end
  34. function Deleted(Quest, QuestGiver, Player)
  35. -- Remove any quest specific items here when the quest is deleted
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 1, "I've spoken to Krasa.")
  40. UpdateQuestTaskGroupDescription(Quest, 1, "I've informed Krasa that Spezi took the information to heart.")
  41. UpdateQuestDescription(Quest, "It seems Krasa has had a change of heart - at the last moment. Perhaps Krysa might actually live through the night.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end