9
3

BankerIzark.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --[[
  2. Script Name : SpawnScripts/ScaleYard/BankerIzark.lua
  3. Script Purpose : Banker Izark
  4. Script Author : Dorbin
  5. Script Date : 2023.06.23
  6. Script Notes : Missing original VOs. Using others to compensate.
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Citizenship = 5863
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  18. FaceTarget(NPC, Spawn)
  19. 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)
  20. end
  21. end
  22. function hailed(NPC, Spawn)
  23. if GetFactionAmount(Spawn,12) <0 then
  24. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  25. elseif HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  26. Dialog2(NPC, Spawn)
  27. else
  28. Dialog1(NPC, Spawn)
  29. end
  30. end
  31. function Dialog1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. Dialog.AddDialog("Your money is safe with the Freeport Reserve. Trust us. Just provide us your guild association.")
  35. Dialog.AddVoiceover("voiceover/english/banker_izark/fprt_hood06/banker_izark.mp3", 4233874879, 3981610343)
  36. Dialog.AddOption("I'll have to take your word for it.")
  37. Dialog.Start()
  38. end
  39. function Dialog2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. 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?")
  43. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval006.mp3", 973761594, 631533180)
  44. Dialog.AddOption(""..GetName(Spawn).."","Dialog2a")
  45. Dialog.Start()
  46. end
  47. function Dialog2a(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("Occupation?")
  51. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval007.mp3", 3366909671, 2696654878)
  52. Dialog.AddOption("Adventurer","Dialog2b")
  53. Dialog.AddOption("Crafter","Dialog2b")
  54. if GetRace(Spawn)==0 then
  55. Dialog.AddOption("Mercenary for hire","Dialog2b")
  56. elseif GetRace(Spawn)==10 then
  57. Dialog.AddOption("Ruler of my own destiny","Dialog2b")
  58. end
  59. Dialog.Start()
  60. end
  61. function Dialog2b(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. Dialog.New(NPC, Spawn)
  64. Dialog.AddDialog("Any surviving relatives, do you ever leave your house unarmed, and are you a deep sleeper?")
  65. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval008.mp3", 77874907, 3978664262)
  66. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  67. Dialog.AddOption("No, no, and no.","Dialog2c")
  68. Dialog.AddOption("[Lie] No, no, and no.","Dialog2c")
  69. Dialog.AddOption("Huh?! Just... no!","Dialog2c")
  70. Dialog.Start()
  71. end
  72. function Dialog2c(NPC, Spawn)
  73. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  74. SetStepComplete(Spawn, Citizenship,4)
  75. end
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. 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?")
  79. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval009.mp3", 3196985272, 4183310653)
  80. PlayFlavor(NPC, "", "", "smirk", 0, 0, Spawn)
  81. Dialog.AddOption("Not right now.")
  82. Dialog.Start()
  83. end