ZaZaLenska.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/ZaZaLenska.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.20 07:05:14
  5. Script Purpose :
  6. :
  7. --]]
  8. local ZaZasLittleProblem = 451
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, ZaZasLittleProblem)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, ZaZasLittleProblem) and not HasCompletedQuest(Spawn, ZaZasLittleProblem) then
  16. AddConversationOption(conversation, "I don't know whether I have or not. Describe him for me.", "Option1")
  17. elseif GetQuestStep(Spawn, ZaZasLittleProblem) == 4 then
  18. AddConversationOption(conversation, "I've got what you needed.", "Option4")
  19. end
  20. AddConversationOption(conversation, "I've got to do some visiting of my own.")
  21. StartConversation(conversation, NPC, Spawn, "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.")
  22. PlayFlavor(NPC, "voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska000.mp3", "", "sad", 1406443097, 3435338985, Spawn)
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "Private residences? You mean, visiting friends?", "Option2")
  28. AddConversationOption(conversation, "Nope, haven't seen him. Good luck in your search.")
  29. StartConversation(conversation, NPC, Spawn, "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.")
  30. PlayFlavor(NPC, "voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska001.mp3", "", "flourish", 3365678449, 1708895230, Spawn)
  31. end
  32. function Option2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. AddConversationOption(conversation, "What kind of help are you looking for?", "Option3")
  36. AddConversationOption(conversation, "I won't be able to help. Sorry.")
  37. StartConversation(conversation, NPC, Spawn, "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?")
  38. PlayFlavor(NPC, "voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska002.mp3", "", "sad", 25646826, 3084524681, Spawn)
  39. end
  40. function Option3(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. AddConversationOption(conversation, "I will help you. What will you need?", "offer")
  44. AddConversationOption(conversation, "Perhaps another time.")
  45. StartConversation(conversation, NPC, Spawn, "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.")
  46. PlayFlavor(NPC, "voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska003.mp3", "", "flourish", 1627354695, 3008513581, Spawn)
  47. end
  48. function Option4(NPC, Spawn)
  49. SetStepComplete(Spawn, ZaZasLittleProblem, 4)
  50. FaceTarget(NPC, Spawn)
  51. local conversation = CreateConversation()
  52. AddConversationOption(conversation, "I hope your potion works. Whatever it does.")
  53. StartConversation(conversation, NPC, Spawn, "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...")
  54. PlayFlavor(NPC, "voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska008.mp3", "", "", 2402358505, 3193482805, Spawn)
  55. end
  56. function offer(NPC, Spawn)
  57. OfferQuest(NPC, Spawn, ZaZasLittleProblem)
  58. end
  59. function respawn(NPC)
  60. spawn(NPC)
  61. end