123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- --[[
- Script Name : SpawnScripts/QeynosHarbor/MitchellMcNolan.lua
- Script Author : Dorbin
- Script Date : 2022.06.11 02:06:42
- Script Purpose :
- :
- --]]
- dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
- function spawn(NPC)
- waypoints(NPC)
- SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- GenericRaceCheckHail(NPC, Spawn, faction)
- end
- function InRange(NPC,Spawn)
- GenericRaceCheckCallout(NPC, Spawn, faction)
- end
-
- function Drink(NPC)
- PlayFlavor(NPC,"","","drinking_idle",0,0)
- AddTimer(NPC,8000, "Drink2")
- end
- function Drink2(NPC)
- choice = math.random(1,3)
- if choice == 1 then
- PlayFlavor(NPC,"","","yawn",0,0)
- elseif choice == 2 then
- PlayFlavor(NPC,"","","drinking_idle",0,0)
- else
- PlayFlavor(NPC,"","","happy",0,0)
- end
- AddTimer(NPC,6000, "Drink3")
- end
- function Drink3(NPC)
- PlayFlavor(NPC,"","","drinking_idle",0,0)
- end
- function Door1(NPC,Spawn)
- local door = GetSpawn(NPC, 2210346)
- UseWidget(door)
- end
- function Door2(NPC,Spawn)
- local door = GetSpawn(NPC, 2210361)
- UseWidget(door)
- end
- function waypoints(NPC)
- MovementLoopAddLocation(NPC, 788, -23.05, 64.21, 2, 8)
- MovementLoopAddLocation(NPC, 802.95, -23.37, 36.26, 2, 25)
- MovementLoopAddLocation(NPC, 812.84, -23.28, 31.13, 2, 22)
- MovementLoopAddLocation(NPC, 826.2, -23.37, 42.56, 2, 0)
- MovementLoopAddLocation(NPC, 857.75, -25.39, 38.55, 2, 0)
- MovementLoopAddLocation(NPC, 879.77, -25.42, 41.52, 2, 0)
- MovementLoopAddLocation(NPC, 887.38, -25.39, 41.14, 2, 0)
- MovementLoopAddLocation(NPC, 896.78, -25.38, 27.65, 2, 0)
- MovementLoopAddLocation(NPC, 918.45, -25.5, 24.65, 2, 0)
- MovementLoopAddLocation(NPC, 939.57, -25.51, 23.59, 2, 2,"Door1")
- MovementLoopAddLocation(NPC, 941.67, -25.55, 22.64, 2, 0)
- MovementLoopAddLocation(NPC, 943.32, -25.55, 16.07, 2, 0)
- MovementLoopAddLocation(NPC, 949.06, -25.55, 13.96, 2, 0)
- MovementLoopAddLocation(NPC, 953.77, -25.55, 12.22, 2, 0)
- MovementLoopAddLocation(NPC, 953.76, -22.55, 2.26, 2, 0)
- MovementLoopAddLocation(NPC, 947.29, -19.55, 2.43, 2, 0)
- MovementLoopAddLocation(NPC, 946.79, -19.55, 0.54, 2, 0)
- MovementLoopAddLocation(NPC, 937.19, -19.55, 0.75, 2, 0)
- MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 1)
- MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 30,"Drink")
- MovementLoopAddLocation(NPC, 939.96, -19.55, 0.88, 2, 4)
- MovementLoopAddLocation(NPC, 939.96, -19.55, 0.88, 2, 0)
- MovementLoopAddLocation(NPC, 946.93, -19.55, 0.91, 2, 0)
- MovementLoopAddLocation(NPC, 949.27, -19.6, 2.6, 2, 0)
- MovementLoopAddLocation(NPC, 954.15, -22.55, 2.94, 2, 0)
- MovementLoopAddLocation(NPC, 954.49, -25.55, 10.3, 2, 0)
- MovementLoopAddLocation(NPC, 946.31, -25.55, 15.31, 2, 0)
- MovementLoopAddLocation(NPC, 942.69, -25.55, 17.05, 2, 2,"Door1")
- MovementLoopAddLocation(NPC, 942.34, -25.55, 22.07, 2, 0)
- MovementLoopAddLocation(NPC, 930.08, -25.49, 21.97, 2, 2)
- MovementLoopAddLocation(NPC, 920.41, -25.46, 18.23, 2, 0)
- MovementLoopAddLocation(NPC, 916.71, -25.45, 17.14, 2, 0)
- MovementLoopAddLocation(NPC, 908.19, -25.44, 8.28, 2, 0)
- MovementLoopAddLocation(NPC, 909.31, -25.4, -9.04, 2, 0)
- MovementLoopAddLocation(NPC, 906.41, -25.38, -22.51, 2, 0)
- MovementLoopAddLocation(NPC, 899.97, -23.42, -38.05, 2, 0)
- MovementLoopAddLocation(NPC, 893, -25.36, -55.66, 2, 0)
- MovementLoopAddLocation(NPC, 881.19, -25.36, -62.5, 2, 0)
- MovementLoopAddLocation(NPC, 859.74, -25.4, -60.19, 2, 0)
- MovementLoopAddLocation(NPC, 832.36, -25.06, -59.3, 2, 0)
- MovementLoopAddLocation(NPC, 794.68, -21.04, -58.06, 2, 0)
- MovementLoopAddLocation(NPC, 791.27, -20.95, -48.79, 2, 0)
- MovementLoopAddLocation(NPC, 792.97, -20.88, -47.72, 2, 25)
- MovementLoopAddLocation(NPC, 792.97, -20.88, -47.72, 2, 0)
- MovementLoopAddLocation(NPC, 792.27, -20.87, -47.38, 2, 0)
- MovementLoopAddLocation(NPC, 771.3, -20.64, -22.65, 2, 0)
- MovementLoopAddLocation(NPC, 766.26, -20.9, -17.62, 2, 8)
- MovementLoopAddLocation(NPC, 739.94, -20.99, -9.15, 2, 0)
- MovementLoopAddLocation(NPC, 738.21, -21.17, -14.91, 2, 25)
- MovementLoopAddLocation(NPC, 690.46, -20.64, -23.32, 2, 0)
- MovementLoopAddLocation(NPC, 684.96, -20.64, -18.23, 2, 0)
- MovementLoopAddLocation(NPC, 684.94, -20.81, 0.12, 2, 2,"Door2")
- MovementLoopAddLocation(NPC, 679.56, -20.66, 9.82, 2, 2)
- MovementLoopAddLocation(NPC, 676.45, -20.63, 17.39, 2, 0)
- MovementLoopAddLocation(NPC, 686.12, -20.66, 25.15, 2, 35)
- MovementLoopAddLocation(NPC, 685.97, -20.66, 27.07, 2, 0)
- MovementLoopAddLocation(NPC, 686.12, -20.66, 25.15, 2, 0)
- MovementLoopAddLocation(NPC, 676.45, -20.63, 17.39, 2, 0)
- MovementLoopAddLocation(NPC, 679.56, -20.66, 9.82, 2,"Door2")
- MovementLoopAddLocation(NPC, 684.94, -20.81, 0.12, 2, 2)
- MovementLoopAddLocation(NPC, 684.96, -20.64, -18.23, 2, 0)
- MovementLoopAddLocation(NPC, 690.46, -20.64, -23.32, 2, 0)
- MovementLoopAddLocation(NPC, 738.21, -21.17, -14.91, 2, 0)
- MovementLoopAddLocation(NPC, 739.94, -20.99, -9.15, 2, 25)
- MovementLoopAddLocation(NPC, 739.94, -20.99, -9.15, 2, 0)
- MovementLoopAddLocation(NPC, 766.26, -20.9, -17.62, 2, 0)
- MovementLoopAddLocation(NPC, 771.3, -20.64, -22.65, 2, 0)
- MovementLoopAddLocation(NPC, 792.27, -20.87, -47.38, 2, 25)
- MovementLoopAddLocation(NPC, 792.27, -20.87, -47.38, 2, 0)
- MovementLoopAddLocation(NPC, 792.97, -20.88, -47.72, 2, 0)
- MovementLoopAddLocation(NPC, 791.27, -20.95, -48.79, 2, 0)
- MovementLoopAddLocation(NPC, 794.68, -21.04, -58.06, 2, 0)
- MovementLoopAddLocation(NPC, 832.36, -25.06, -59.3, 2, 0)
- MovementLoopAddLocation(NPC, 859.74, -25.4, -60.19, 2, 0)
- MovementLoopAddLocation(NPC, 881.19, -25.36, -62.5, 2, 0)
- MovementLoopAddLocation(NPC, 893, -25.36, -55.66, 2, 0)
- MovementLoopAddLocation(NPC, 899.97, -23.42, -38.05, 2, 0)
- MovementLoopAddLocation(NPC, 906.41, -25.38, -22.51, 2, 0)
- MovementLoopAddLocation(NPC, 909.31, -25.4, -9.04, 2, 0)
- MovementLoopAddLocation(NPC, 908.19, -25.44, 8.28, 2, 0)
- MovementLoopAddLocation(NPC, 916.71, -25.45, 17.14, 2, 0)
- MovementLoopAddLocation(NPC, 920.41, -25.46, 18.23, 2, 0)
- MovementLoopAddLocation(NPC, 930.08, -25.49, 21.97, 2, 2)
- MovementLoopAddLocation(NPC, 942.34, -25.55, 22.07, 2, 2,"Door1")
- MovementLoopAddLocation(NPC, 942.69, -25.55, 17.05, 2, 0)
- MovementLoopAddLocation(NPC, 946.31, -25.55, 15.31, 2, 0)
- MovementLoopAddLocation(NPC, 954.49, -25.55, 10.3, 2, 0)
- MovementLoopAddLocation(NPC, 954.15, -22.55, 2.94, 2, 0)
- MovementLoopAddLocation(NPC, 949.27, -19.6, 2.6, 2, 0)
- MovementLoopAddLocation(NPC, 946.93, -19.55, 0.91, 2, 0)
- MovementLoopAddLocation(NPC, 939.96, -19.55, 0.88, 2, 0)
- MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 1)
- MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 30,"Drink")
- MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 0)
- MovementLoopAddLocation(NPC, 937.19, -19.55, 0.75, 2, 0)
- MovementLoopAddLocation(NPC, 946.79, -19.55, 0.54, 2, 0)
- MovementLoopAddLocation(NPC, 947.29, -19.55, 2.43, 2, 0)
- MovementLoopAddLocation(NPC, 953.76, -22.55, 2.26, 2, 0)
- MovementLoopAddLocation(NPC, 953.77, -25.55, 12.22, 2, 0)
- MovementLoopAddLocation(NPC, 949.06, -25.55, 13.96, 2, 0)
- MovementLoopAddLocation(NPC, 943.32, -25.55, 16.07, 2, 2,"Door1")
- MovementLoopAddLocation(NPC, 941.67, -25.55, 22.64, 2, 0)
- MovementLoopAddLocation(NPC, 939.57, -25.51, 23.59, 2, 0)
- MovementLoopAddLocation(NPC, 918.45, -25.5, 24.65, 2, 0)
- MovementLoopAddLocation(NPC, 896.78, -25.38, 27.65, 2, 0)
- MovementLoopAddLocation(NPC, 887.38, -25.39, 41.14, 2, 0)
- MovementLoopAddLocation(NPC, 879.77, -25.42, 41.52, 2, 0)
- MovementLoopAddLocation(NPC, 857.75, -25.39, 38.55, 2, 0)
- MovementLoopAddLocation(NPC, 826.2, -23.37, 42.56, 2, 25)
- MovementLoopAddLocation(NPC, 826.2, -23.37, 42.56, 2, 0)
- MovementLoopAddLocation(NPC, 812.84, -23.28, 31.13, 2, 0)
- MovementLoopAddLocation(NPC, 802.95, -23.37, 36.26, 2, 25)
- MovementLoopAddLocation(NPC, 788, -23.05, 64.21, 2, 8)
- end
|