123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- --[[
- Script Name : SpawnScripts/ScaleYard/BankerIzark.lua
- Script Purpose : Banker Izark
- Script Author : Dorbin
- Script Date : 2023.06.23
- Script Notes : Missing original VOs. Using others to compensate.
- --]]
- require "SpawnScripts/Generic/DialogModule"
- local Citizenship = 5863
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function InRange(NPC, Spawn)
- if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
- FaceTarget(NPC, Spawn)
- 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)
- end
- end
- function hailed(NPC, Spawn)
- if GetFactionAmount(Spawn,12) <0 then
- PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
- elseif HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
- Dialog2(NPC, Spawn)
- else
- Dialog1(NPC, Spawn)
- end
- end
- function Dialog1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("Your money is safe with the Freeport Reserve. Trust us. Just provide us your guild association.")
- Dialog.AddVoiceover("voiceover/english/banker_izark/fprt_hood06/banker_izark.mp3", 4233874879, 3981610343)
- Dialog.AddOption("I'll have to take your word for it.")
- Dialog.Start()
- end
- function Dialog2(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- 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?")
- Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval006.mp3", 973761594, 631533180)
- Dialog.AddOption(""..GetName(Spawn).."","Dialog2a")
- Dialog.Start()
- end
- function Dialog2a(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("Occupation?")
- Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval007.mp3", 3366909671, 2696654878)
- Dialog.AddOption("Adventurer","Dialog2b")
- Dialog.AddOption("Crafter","Dialog2b")
- if GetRace(Spawn)==0 then
- Dialog.AddOption("Mercenary for hire","Dialog2b")
- elseif GetRace(Spawn)==10 then
- Dialog.AddOption("Ruler of my own destiny","Dialog2b")
- end
- Dialog.Start()
- end
- function Dialog2b(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("Any surviving relatives, do you ever leave your house unarmed, and are you a deep sleeper?")
- Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval008.mp3", 77874907, 3978664262)
- PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
- Dialog.AddOption("No, no, and no.","Dialog2c")
- Dialog.AddOption("[Lie] No, no, and no.","Dialog2c")
- Dialog.AddOption("Huh?! Just... no!","Dialog2c")
- Dialog.Start()
- end
- function Dialog2c(NPC, Spawn)
- if HasQuest(Spawn,Citizenship) and GetQuestStep(Spawn,Citizenship)==4 then
- SetStepComplete(Spawn, Citizenship,4)
- end
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- 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?")
- Dialog.AddVoiceover("voiceover/english/banker_t_val/fprt_hood05/bnk_banker_tval009.mp3", 3196985272, 4183310653)
- PlayFlavor(NPC, "", "", "smirk", 0, 0, Spawn)
- Dialog.AddOption("Not right now.")
- Dialog.Start()
- end
|