9
3

ZaZaLenska.lua 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/ZaZaLenska.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.27 12:10:49
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ZaZasLittleProblem = 451
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, ZaZasLittleProblem)
  12. SetInfoStructString(NPC, "action_state", "tapfoot")
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function Dialog1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. Dialog.New(NPC, Spawn)
  24. Dialog.AddDialog("Have you seen my husband, Valeri? He leaves home too often. He comes and goes as he pleases, and I never know where he is! I've had other husbands, and I know the signs of a cheater.")
  25. Dialog.AddVoiceover("voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska000.mp3", 1406443097, 3435338985)
  26. if CanReceiveQuest(Spawn, ZaZasLittleProblem) then
  27. Dialog.AddOption("I don't know whether I have or not. Describe him for me.", "Dialog2")
  28. elseif GetQuestStep(Spawn, ZaZasLittleProblem) == 4 then
  29. Dialog.AddOption("I've got what you needed.", "Dialog5")
  30. end
  31. Dialog.AddOption("I've got to do some visiting of my own.")
  32. Dialog.Start()
  33. end
  34. function Dialog2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("He's tall and slim with jet black fur and three hoops in his left ear. He's handsome, oh, so handsome! Surely you could not have missed him! Unless, perhaps, his visits are in a ... private home.")
  38. Dialog.AddVoiceover("voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska001.mp3", 3365678449, 1708895230)
  39. PlayFlavor(NPC,"","","flustered",0,0,Spawn)
  40. Dialog.AddOption("Private residences? You mean, visiting friends?", "Dialog3")
  41. Dialog.AddOption("Nope, haven't seen him. Good luck in your search.")
  42. Dialog.Start()
  43. end
  44. function Dialog3(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. Dialog.AddDialog("Oh, to think of Valeri--my sweet, precious husband--in the arms of another! No! I cannot bear it! I must know the truth! And I know just the way. Mama's potion will show me whether he's faithful to his ZaZa, or not. Can you help this poor, unhappy wife?")
  48. Dialog.AddVoiceover("voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska002.mp3", 25646826, 3084524681)
  49. PlayFlavor(NPC,"","","cry",0,0,Spawn)
  50. Dialog.AddOption("What kind of help are you looking for?", "Dialog4")
  51. Dialog.AddOption("I won't be able to help. Sorry.")
  52. Dialog.Start()
  53. end
  54. function Dialog4(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("I need ingredients for my potion. Not too many and they must be fresh. I need to spread this potion on my Valeri's clothes ... and then I will have the answers I need. Let me write this down for you; it's complex.")
  58. Dialog.AddVoiceover("voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska003.mp3", 1627354695, 3008513581)
  59. PlayFlavor(NPC,"","","agree",0,0,Spawn)
  60. Dialog.AddOption("I will help you. What will you need?", "Offer")
  61. Dialog.AddOption("Perhaps another time.")
  62. Dialog.Start()
  63. end
  64. function Offer(NPC,Spawn)
  65. OfferQuest(NPC,Spawn,ZaZasLittleProblem)
  66. end
  67. function Dialog5(NPC, Spawn)
  68. SetStepComplete(Spawn, ZaZasLittleProblem, 4)
  69. FaceTarget(NPC, Spawn)
  70. Dialog.New(NPC, Spawn)
  71. Dialog.AddDialog("Oh, yes ... I'm sure you do. Well, then, you helped me, and I can repay you. It's not much, considering what you did for me and my Valeri, but it's all I can give you. At least for now...")
  72. Dialog.AddVoiceover("voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska008.mp3", 2402358505, 3193482805)
  73. PlayFlavor(NPC,"","","happy",0,0,Spawn)
  74. Dialog.AddOption("I hope your potion works. Whatever it does.")
  75. Dialog.Start()
  76. end