TVal.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/TVal.lua
  3. Script Purpose : T`Val
  4. Script Author : torsten
  5. Script Date : 2022.07.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ForThatSpecialSomeone = 5673
  10. local Citizenship = 5862
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  19. FaceTarget(NPC, Spawn)
  20. PlayFlavor(NPC, "voiceover/english/banker_quintius_calacicus/fprt_hood1/100_bankerquintiuscalacicus_housing_quest_1_22bf58bf.mp3", "Are you the one opening the new account?", "bye", 1249171681, 483955197, Spawn)
  21. end
  22. end
  23. function hailed(NPC, Spawn)
  24. if GetFactionAmount(Spawn,12) <0 then
  25. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  26. elseif HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  27. Dialog2(NPC, Spawn)
  28. else
  29. Dialog1(NPC, Spawn)
  30. end
  31. end
  32. function Dialog1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("Hail to you. Currency exchange, secure storage of goods, I offer a range of services tailored to the needs of Freeport guild members.")
  36. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval.mp3", 90970771, 1252206294)
  37. if GetQuestStep(Spawn, ForThatSpecialSomeone) == 1 then
  38. Dialog.AddOption("Your wife asked me to bring you this bottle of wine.","Wine")
  39. end
  40. Dialog.AddOption("I'll keep that in mind.")
  41. Dialog.Start()
  42. end
  43. function Wine(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("She did? Why? Well... let me see that wine! Hmmm... my favorite. It smells normal. I guess it's all right, then. Tell her that I will thank her when I next see her. I'll... um... be working late again tonight, so tell her not to wait up.")
  47. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval006.mp3", 415080394, 1146938462)
  48. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  49. Dialog.AddOption("I will let her know...")
  50. SetStepComplete(Spawn, ForThatSpecialSomeone, 1)
  51. Dialog.Start()
  52. end
  53. function Dialog2(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. Dialog.New(NPC, Spawn)
  56. Dialog.AddDialog("Yes, you look like the one Valthun described. Before we can open your account, we need some information from you. What's your name?")
  57. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval006.mp3", 973761594, 631533180)
  58. Dialog.AddOption(""..GetName(Spawn).."","Dialog2a")
  59. Dialog.Start()
  60. end
  61. function Dialog2a(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. Dialog.New(NPC, Spawn)
  64. Dialog.AddDialog("Occupation?")
  65. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval007.mp3", 3366909671, 2696654878)
  66. Dialog.AddOption("Adventurer","Dialog2b")
  67. Dialog.AddOption("Crafter","Dialog2b")
  68. if GetRace(Spawn)==1 then
  69. Dialog.AddOption("A purveyor of all things forbiden, so I guess Adventurer of sorts?","Dialog2b")
  70. elseif GetRace(Spawn)==17 then
  71. Dialog.AddOption("I'm still waiting for you Teir'Dal to sort all that out...","Dialog2b")
  72. elseif GetRace(Spawn)==19 then
  73. Dialog.AddOption("Blood sucker doesn't really a job, but it is.","Dialog2b")
  74. end
  75. Dialog.Start()
  76. end
  77. function Dialog2b(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. Dialog.New(NPC, Spawn)
  80. Dialog.AddDialog("Any surviving relatives, do you ever leave your house unarmed, and are you a deep sleeper?")
  81. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval008.mp3", 77874907, 3978664262)
  82. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  83. Dialog.AddOption("No, no, and no.","Dialog2c")
  84. Dialog.AddOption("[Lie] No, no, and no.","Dialog2c")
  85. Dialog.AddOption("What are with these questions?! Just... no!","Dialog2c")
  86. Dialog.Start()
  87. end
  88. function Dialog2c(NPC, Spawn)
  89. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  90. SetStepComplete(Spawn, Citizenship,4)
  91. end
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. Dialog.AddDialog("How convenient for you. Very well ... we've set aside a place for you within the Freeport Reserve vaults. Feel free to deposit large amounts of coin or valuable artifacts with us anytime. We'll be sure to keep it ... safe. Is there anything else?")
  95. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval009.mp3", 3196985272, 4183310653)
  96. PlayFlavor(NPC, "", "", "smirk", 0, 0, Spawn)
  97. Dialog.AddOption("Not right now.")
  98. Dialog.Start()
  99. end