SemproniaGallus.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/SemproniaGallus.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.06.28 05:06:22
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Citizenship = 5864
  10. local Keys = 5921
  11. function spawn(NPC)
  12. ProvidesQuest(NPC,Keys)
  13. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  14. end
  15. function InRange(NPC, Spawn)
  16. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  17. FaceTarget(NPC, Spawn)
  18. PlayFlavor(NPC, "", "Are you the one opening the new account?", "bye", 0, 0, Spawn)
  19. end
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end
  24. function hailed(NPC, Spawn)
  25. if GetFactionAmount(Spawn,12) <0 then
  26. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  27. elseif HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  28. Dialog2(NPC, Spawn)
  29. else
  30. Dialog1(NPC, Spawn)
  31. end
  32. end
  33. function Dialog2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. 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?")
  37. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/bnk_semproniagallus_hail005.mp3", 261268347, 2512652131)
  38. Dialog.AddOption(""..GetName(Spawn).."","Dialog2a")
  39. Dialog.Start()
  40. end
  41. function Dialog2a(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Occupation?")
  45. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/bnk_semproniagallus_hail006.mp3", 1872994041, 2564550567)
  46. Dialog.AddOption("Adventurer","Dialog2b")
  47. Dialog.AddOption("Crafter","Dialog2b")
  48. if GetRace(Spawn)==5 then
  49. Dialog.AddOption("Making things explode... Demolition expert?","Dialog2b")
  50. elseif GetRace(Spawn)==13 then
  51. Dialog.AddOption("I can sniff out all the best treasures!","Dialog2b")
  52. end
  53. Dialog.Start()
  54. end
  55. function Dialog2b(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("Any surviving relatives, do you ever leave your house unarmed, and are you a deep sleeper?")
  59. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/bnk_semproniagallus_hail007.mp3", 482951073, 2945397215)
  60. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  61. Dialog.AddOption("No, no, and no.","Dialog2c")
  62. Dialog.AddOption("[Lie] No, no, and no.","Dialog2c")
  63. Dialog.AddOption("No - Wait... what?","Dialog2c")
  64. Dialog.Start()
  65. end
  66. function Dialog2c(NPC, Spawn)
  67. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  68. SetStepComplete(Spawn, Citizenship,4)
  69. end
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. 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?")
  73. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/bnk_semproniagallus_hail008.mp3", 2091439632, 2628015098)
  74. PlayFlavor(NPC, "", "", "scheme", 0, 0, Spawn)
  75. Dialog.AddOption("Not right now.")
  76. Dialog.Start()
  77. end
  78. function Dialog1(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. Dialog.AddDialog("This is the Freeport Reserve. Please make sure all deposits are in exact change and recognizable currency, thank you.")
  82. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/bnk_semproniagallus_hail.mp3", 2059269441, 1111799165)
  83. if CanReceiveQuest(Spawn,Keys) then
  84. Dialog.AddOption("Aren't you a little tall for a place like this?","Quest1")
  85. elseif GetQuestStep(Spawn,Keys) == 2 then
  86. Dialog.AddOption("The ratonga has been \"cured\". Here are your keys. ","Quest1Done")
  87. end
  88. Dialog.AddOption("Thank you.")
  89. Dialog.Start()
  90. end
  91. function Quest1(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. Dialog.AddDialog("It seems you are painfully unaware of the consequences of allowing either Ratonga or Gnomes handling and distributing large amounts of money. The Coalition of Tradesfolke have sent me to this district to try to prevent anymore mishaps that are a result of allowing these races a position with the bank. As it stands, we are still looking for a Ratonga who has all of the keys to our safety deposit vaults.")
  95. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/quests/semproniagallus/sempronia_x1_initial.mp3", 986781087, 1487041958)
  96. PlayFlavor(NPC, "", "", "scold", 0, 0, Spawn)
  97. Dialog.AddOption("Is there something I could do?","Quest1Offer")
  98. Dialog.AddOption("Lost bank keys?! I want nothing to do with this bank!")
  99. Dialog.Start()
  100. end
  101. function Quest1Offer(NPC,Spawn)
  102. FaceTarget(NPC, Spawn)
  103. OfferQuest(NPC,Spawn,Keys)
  104. end
  105. function Quest1Done(NPC, Spawn)
  106. SetStepComplete(Spawn, Keys,2)
  107. FaceTarget(NPC, Spawn)
  108. Dialog.New(NPC, Spawn)
  109. Dialog.AddDialog("Excellent... were the Coalition to have found out someone managed to abscond with the vault keys.... well, I don't even like thinking about it. As per our agreement, here are some coins for your time. Perhaps you may wish to deposit them within the Reserves?")
  110. Dialog.AddVoiceover("voiceover/english/banker_sempronia_gallus/fprt_hood03/quests/semproniagallus/sempronia_x1_finish.mp3", 1236347558, 864344705)
  111. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  112. Dialog.AddOption("I'll consider it.")
  113. Dialog.Start()
  114. end