BankerVoranius.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/BankerVoranius.lua
  3. Script Purpose : Banker Voranius <Banker>
  4. Script Author : John Adams\\Dorbin
  5. Script Date : 2009.04.05
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local DonationsfromtheBanker = 5657
  9. require "SpawnScripts/Generic/DialogModule"
  10. local Citizenship = 5861
  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("Hello there. Voranius is my name. I can help you with all your banking needs.")
  36. Dialog.AddVoiceover("voiceover/english/banker_voranius/fprt_hood04/bnk_banker_voranius.mp3", 2601161199, 994867740)
  37. if GetQuestStep(Spawn, DonationsfromtheBanker) == 1 then
  38. Dialog.AddOption("The gang is ready for another withdrawl. Do it and you'll avoid any... \"mess\".","Dialog3")
  39. end
  40. Dialog.AddOption("Thanks.")
  41. Dialog.Start()
  42. end
  43. function Dialog3(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("What in the world are you talking about? I think I'll need to deduct some more -- wait, do you mean Galla's gang? He's asking for more again? I see he's running out of thugs and just using idiots now. Fine, fine, FINE! Here's some money for him. I hope some witch makes his berries rot -- serves him right, I say. Now get out!")
  47. Dialog.AddVoiceover("voiceover/english/banker_voranius/fprt_hood04/quests/maniusgalla/banker_manius_x2_initial.mp3", 4218680977, 2049323900)
  48. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  49. Dialog.AddOption("Hey!... I'm sure he won't like hearing that.")
  50. Dialog.Start()
  51. SetStepComplete(Spawn, DonationsfromtheBanker, 1)
  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)==6 then
  69. Dialog.AddOption("Part-time Adventurer, Part-time Crafter","Dialog2b")
  70. elseif GetRace(Spawn)==9 then
  71. Dialog.AddOption("Entrepreneur","Dialog2b")
  72. end
  73. Dialog.Start()
  74. end
  75. function Dialog2b(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. Dialog.AddDialog("Any surviving relatives, do you ever leave your house unarmed, and are you a deep sleeper?")
  79. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval008.mp3", 77874907, 3978664262)
  80. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  81. Dialog.AddOption("No, no, and no.","Dialog2c")
  82. Dialog.AddOption("[Lie] No, no, and no.","Dialog2c")
  83. Dialog.AddOption("Err... Just... no!","Dialog2c")
  84. Dialog.Start()
  85. end
  86. function Dialog2c(NPC, Spawn)
  87. if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
  88. SetStepComplete(Spawn, Citizenship,4)
  89. end
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. 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?")
  93. Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval009.mp3", 3196985272, 4183310653)
  94. PlayFlavor(NPC, "", "", "smirk", 0, 0, Spawn)
  95. Dialog.AddOption("Not right now.")
  96. Dialog.Start()
  97. end