QuintiusCalacicus.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --[[
  2. Script Name : SpawnScripts/BigBend/QuintiusCalacicus.lua
  3. Script Purpose : Quintius Calacicus
  4. Script Author : Dorbin
  5. Script Date : 2023.06.28
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local PayingTheTab = 5625
  10. local Citizenship = 5860
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  13. end
  14. function InRange(NPC, Spawn)
  15. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  16. FaceTarget(NPC, Spawn)
  17. 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)
  18. end
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. --[[ if HasQuest(Spawn, PayingTheTab) and not HasCompletedQuest(Spawn, PayingTheTab) then
  24. SetStepComplete(Spawn, PayingTheTab, 1)
  25. end]]--
  26. function hailed(NPC, Spawn)
  27. if GetFactionAmount(Spawn,12) <0 then
  28. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  29. elseif HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  30. Dialog2(NPC, Spawn)
  31. else
  32. Dialog1(NPC, Spawn)
  33. end
  34. end
  35. function Dialog2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. 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?")
  39. Dialog.AddVoiceover("voiceover/english/banker_quintius_calacicus/fprt_hood1/bnk_quintiuscalacicus_hail005.mp3", 1931707060, 2633731022)
  40. Dialog.AddOption(""..GetName(Spawn).."","Dialog2a")
  41. Dialog.Start()
  42. end
  43. function Dialog2a(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("Occupation?")
  47. Dialog.AddVoiceover("voiceover/english/banker_quintius_calacicus/fprt_hood1/bnk_quintiuscalacicus_hail006.mp3", 237773570, 2383442663)
  48. Dialog.AddOption("Adventurer","Dialog2b")
  49. Dialog.AddOption("Crafter","Dialog2b")
  50. if GetRace(Spawn)==12 then
  51. Dialog.AddOption("Skull basher?","Dialog2b")
  52. elseif GetRace(Spawn)==14 then
  53. Dialog.AddOption("Ummm...I clobber rats good?","Dialog2b")
  54. end
  55. Dialog.Start()
  56. end
  57. function Dialog2b(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("Any surviving relatives, do you ever leave your house unarmed, and are you a deep sleeper?")
  61. Dialog.AddVoiceover("voiceover/english/banker_quintius_calacicus/fprt_hood1/bnk_quintiuscalacicus_hail007.mp3", 3182562544, 987337462)
  62. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  63. Dialog.AddOption("No, no, and no.","Dialog2c")
  64. Dialog.AddOption("[Lie] No, no, and no.","Dialog2c")
  65. Dialog.AddOption("No - Wait... what?","Dialog2c")
  66. Dialog.Start()
  67. end
  68. function Dialog2c(NPC, Spawn)
  69. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  70. SetStepComplete(Spawn, Citizenship,4)
  71. end
  72. FaceTarget(NPC, Spawn)
  73. Dialog.New(NPC, Spawn)
  74. 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?")
  75. Dialog.AddVoiceover("voiceover/english/banker_quintius_calacicus/fprt_hood1/bnk_quintiuscalacicus_hail008.mp3", 456708908, 2072469521)
  76. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  77. Dialog.AddOption("Not right now.")
  78. Dialog.Start()
  79. end
  80. function Dialog1(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. Dialog.AddDialog("Welcome to the Freeport Reserve. Will you entrust me with your valuables and cash? I'll take fine care of them.")
  84. Dialog.AddVoiceover("voiceover/english/banker_quintius_calacicus/fprt_hood1/bnk_quintiuscalacicus_hail.mp3", 3742555178, 748563821)
  85. Dialog.AddOption("Thank you.")
  86. Dialog.Start()
  87. end