9
3

BarmaidKrasa.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/BarmaidKrasa.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.23 04:10:13
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/UnknownLanguage.lua")
  10. local KrasaWontTakeIt = 5924
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC,9, "InRange", "LeaveRange")
  13. SetInfoStructString(NPC, "action_state", "ponder")
  14. ProvidesQuest(Quest,KrasaWontTakeIt)
  15. end
  16. function InRange(NPC,Spawn)
  17. if GetFactionAmount(Spawn,12)<0 then
  18. FactionCheckCallout(NPC,Spawn,faction)
  19. else
  20. end
  21. end
  22. function hailed(NPC, Spawn)
  23. SetTarget(NPC,Spawn)
  24. if GetFactionAmount(Spawn,12) <0 then
  25. FaceTarget(NPC, Spawn)
  26. PlayFlavor(NPC, "","","shakefist",0,0, Spawn)
  27. elseif not HasLanguage(Spawn,26) then
  28. FaceTarget(NPC, Spawn)
  29. Garbled(NPC,Spawn)
  30. else
  31. Dialog1(NPC,Spawn)
  32. end
  33. end
  34. function Dialog1(NPC,Spawn)
  35. SetTarget(NPC,Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. Dialog.AddDialog("Whys, hello! Be a dears and buys a drinks from Pshavost's bar. He runs a cleans and honest establishment, he does.")
  39. Dialog.AddVoiceover("voiceover/english/barmaid_krasa/fprt_hood03/mer_barmaidkrasa_hail.mp3", 176271092, 4124908502)
  40. PlayFlavor(NPC, "","","hello",0,0, Spawn)
  41. Dialog.AddLanguage(26)
  42. if CanReceiveQuest(Spawn, KrasaWontTakeIt) then
  43. Dialog.AddOption("I could use a drink. Bring me one.", "Dialog2")
  44. elseif GetQuestStep(Spawn, KrasaWontTakeIt)==2 then
  45. Dialog.AddOption("I've told Spezi. You're right... she really does hate Krysa.", "Dialog3")
  46. end
  47. Dialog.AddOption("I'll consider it.")
  48. Dialog.Start()
  49. end
  50. function Dialog2(NPC,Spawn)
  51. SetTarget(NPC,Spawn)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. Dialog.AddDialog("That's it! I'm sick of being \"just the waitress.\" I ams beautiful, and I can dance better than my stupid sister Krysa! Everyone always says: \"Krysa is so pretty\" and \"Krysa is so friendly.\" No mores, you hear me? No mores! She goes down tonight! You send a message for me, yes?")
  55. Dialog.AddVoiceover("voiceover/english/barmaid_krasa/fprt_hood03/quests/krasa/krasa_x1_initial.mp3", 1408869566, 4041581758)
  56. PlayFlavor(NPC, "","","frustrated",0,0, Spawn)
  57. Dialog.AddLanguage(26)
  58. Dialog.AddOption("Take it easy! What do you need?", "Offer")
  59. Dialog.AddOption("I only wanted a drink! Yeesh!")
  60. Dialog.Start()
  61. end
  62. function Offer(NPC,Spawn)
  63. OfferQuest(NPC,Spawn,KrasaWontTakeIt)
  64. end
  65. function Dialog3(NPC,Spawn)
  66. SetStepComplete(Spawn,KrasaWontTakeIt,2)
  67. SetTarget(NPC,Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. Dialog.AddDialog("Yes. She does hate Krysa. I think I acted too fast. Maybe I don't keeps the doors open after all. We see, eh? For now, here's some coins for sending the message.")
  71. Dialog.AddVoiceover("voiceover/english/barmaid_krasa/fprt_hood03/quests/krasa/krasa_x1_finish.mp3", 3356111057, 1390552450)
  72. PlayFlavor(NPC, "","","wince",0,0, Spawn)
  73. Dialog.AddLanguage(26)
  74. Dialog.AddOption("Thanks, I hope you know what you're doing.")
  75. Dialog.Start()
  76. end
  77. function respawn(NPC)
  78. spawn(NPC)
  79. end