123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- --[[
- Script Name : SpawnScripts/QeynosCitizenshipTrialChamber/aFreeportpartisan.lua
- Script Author : Dorbin
- Script Date : 2022.08.31 05:08:02
- Script Purpose :
- :
- --]]
- require "SpawnScripts/Generic/DialogModule"
- local BQCitizen = 5718
- local CVQCitizen = 5719
- local GQCitizen = 5720
- local NQCitizen = 5721
- local SCQCitizen = 5722
- local WWQCitizen = 5723
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
- end
- function InRange(NPC, Spawn)
- PlayFlavor(NPC, "","Hello, friend. You look like a sensible Qeynosian!", "", 0,0, Spawn)
- end
- function hailed(NPC, Spawn)
- Dialog1(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function Dialog1(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- PlayAnimation(NPC,"539")
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("Qeynos has all our exits blocked, but perhaps you can find a way to get me through!")
- Dialog.AddVoiceover("voiceover/english/a_freeport_partisan/qey_catacomb_epic01/bribingtraitor000.mp3", 3482178504, 3473502837)
- Dialog.AddOption("How would I do that?", "Dialog2")
- Dialog.AddOption("You must be punished for your crimes!", "AttackTimer")
- Dialog.Start()
- end
- function Dialog2(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("I made arrangements to transfer my wealth to the Freeport Reserve, but mayhaps I can spare some coins if you let me go.")
- Dialog.AddVoiceover("voiceover/english/a_freeport_partisan/qey_catacomb_epic01/bribingtraitor001.mp3", 4211876752, 3637644957)
- PlayFlavor(NPC,"","","nod",0,0,Spawn)
- Dialog.AddOption("Perhaps. I need to think upon this further.")
- Dialog.AddOption("I'm not sure I can trust you. You're here as a traitor.", "Dialog3")
- Dialog.AddOption("Coin cannot cover what you've done!", "AttackTimer")
- Dialog.AddOption("No, there can be no bribery.", "AttackTimer")
- Dialog.Start()
- end
- function Dialog3(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- Dialog.New(NPC, Spawn)
- Dialog.AddDialog("I'm not asking you to trust my word ... trust my gold!")
- Dialog.AddVoiceover("voiceover/english/a_freeport_partisan/qey_catacomb_epic01/bribingtraitor002.mp3", 298356076, 2184308899)
- PlayFlavor(NPC,"","","whome",0,0,Spawn)
- Dialog.AddOption("Interesting. I will return shortly once I've considered this.")
- Dialog.AddOption("Tempting, but I have a duty to Qeynos. You must face judgement for your deeds.", "AttackTimer")
- Dialog.AddOption("No way!", "AttackTimer")
- Dialog.Start()
- end
- function AttackTimer(NPC,Spawn)
- AddTimer(NPC,1200,"Attacking",1,Spawn)
- end
- function Attacking(NPC,Spawn)
- SpawnSet(NPC,"attackable",1)
- SpawnSet(NPC,"show_level",1)
- SpawnSet(NPC,"command_primary",11)
- Attack(NPC,Spawn)
- end
- function aggro(NPC,Spawn)
- SpawnSet(NPC,"attackable",1)
- SpawnSet(NPC,"show_level",1)
- SpawnSet(NPC,"command_primary",11)
- SpawnSet(NPC,"action_state",0)
- end
- function death(NPC,Spawn)
- if HasQuest(Spawn,BQCitizen) then
- SetStepComplete(Spawn,BQCitizen,6)
- elseif HasQuest(Spawn,CVQCitizen) then
- SetStepComplete(Spawn,CVQCitizen,6)
- elseif HasQuest(Spawn,GQCitizen) then
- SetStepComplete(Spawn,GQCitizen,6)
- elseif HasQuest(Spawn,NQCitizen) then
- SetStepComplete(Spawn,NQCitizen,6)
- elseif HasQuest(Spawn,SCQCitizen) then
- SetStepComplete(Spawn,SCQCitizen,6)
- elseif HasQuest(Spawn,WWQCitizen) then
- SetStepComplete(Spawn,WWQCitizen,6)
- end
- end
|