--[[ Script Name : SpawnScripts/BeggarsCourt/BankerVoranius.lua Script Purpose : Banker Voranius Script Author : John Adams\\Dorbin Script Date : 2009.04.05 Script Notes : Auto-Generated Conversation from PacketParser Data --]] local DonationsfromtheBanker = 5657 require "SpawnScripts/Generic/DialogModule" local Citizenship = 5861 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("Hello there. Voranius is my name. I can help you with all your banking needs.") Dialog.AddVoiceover("voiceover/english/banker_voranius/fprt_hood04/bnk_banker_voranius.mp3", 2601161199, 994867740) if GetQuestStep(Spawn, DonationsfromtheBanker) == 1 then Dialog.AddOption("The gang is ready for another withdrawl. Do it and you'll avoid any... \"mess\".","Dialog3") end Dialog.AddOption("Thanks.") Dialog.Start() end function Dialog3(NPC, Spawn) FaceTarget(NPC, Spawn) Dialog.New(NPC, Spawn) 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!") Dialog.AddVoiceover("voiceover/english/banker_voranius/fprt_hood04/quests/maniusgalla/banker_manius_x2_initial.mp3", 4218680977, 2049323900) PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn) Dialog.AddOption("Hey!... I'm sure he won't like hearing that.") Dialog.Start() SetStepComplete(Spawn, DonationsfromtheBanker, 1) 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)==6 then Dialog.AddOption("Part-time Adventurer, Part-time Crafter","Dialog2b") elseif GetRace(Spawn)==9 then Dialog.AddOption("Entrepreneur","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("Err... 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