--[[ Script Name : campos.lua Script Purpose : Waypoint Path for campos.lua Script Author : Devn00b Script Date : 04/11/2020 09:43:22 PM Script Notes : Locations collected from Live --]] dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua") dofile("SpawnScripts/Generic/ExpelNonCitizen.lua") function spawn(NPC) SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange") waypoints(NPC) end function respawn(NPC) spawn(NPC) end function InRange(NPC, Spawn) NonCitizen(NPC,Spawn) if math.random(0, 100) <= 25 and GetFactionAmount(Spawn,11) > 20000 then FaceTarget(NPC, Spawn) GenericGuardHail(NPC, Spawn) CheckFaction(NPC, Spawn, "Qeynos") else CheckFaction(NPC, Spawn, "Qeynos") end end function LeaveRange(NPC, Spawn) end function hailed(NPC, Spawn) FaceTarget(NPC, Spawn) GenericGuardHail(NPC, Spawn) end function waypoints(NPC) MovementLoopAddLocation(NPC, 309.84, -21.61, 23.07, 2, 0) MovementLoopAddLocation(NPC, 321.33, -21.92, 35.4, 2, 0) MovementLoopAddLocation(NPC, 347.79, -21.26, 61.5, 2, 0) MovementLoopAddLocation(NPC, 354.26, -20.8, 88.65, 2, 0) MovementLoopAddLocation(NPC, 376.97, -20.5, 119.03, 2, 0) MovementLoopAddLocation(NPC, 371.99, -20.58, 125.21, 2, 0) MovementLoopAddLocation(NPC, 368.34, -20.88, 129.15, 2, 0) MovementLoopAddLocation(NPC, 364.46, -20.97, 130.68, 2, 0) MovementLoopAddLocation(NPC, 360.94, -20.97, 130.21, 2, 0) MovementLoopAddLocation(NPC, 345.35, -20.7, 125.9, 2, 0) MovementLoopAddLocation(NPC, 343.86, -20.67, 124.21, 2, 0) MovementLoopAddLocation(NPC, 343.15, -20.65, 122.13, 2, 0) MovementLoopAddLocation(NPC, 342.78, -20.6, 119.7, 2, 0) MovementLoopAddLocation(NPC, 342.77, -20.55, 116.88, 2, 0) MovementLoopAddLocation(NPC, 343.9, -20.41, 109.84, 2, 0) MovementLoopAddLocation(NPC, 347.82, -21.39, 73.93, 2, 0) MovementLoopAddLocation(NPC, 344, -21.64, 64.16, 2, 0) MovementLoopAddLocation(NPC, 337.2, -21.46, 52.68, 2, 0) MovementLoopAddLocation(NPC, 309.62, -21.6, 23.26, 2, 0) MovementLoopAddLocation(NPC, 295.75, -21.33, 4.62, 2, 0) MovementLoopAddLocation(NPC, 267.93, -21.53, -16.49, 2, 0) MovementLoopAddLocation(NPC, 221.3, -21.86, -19.01, 2, 0) MovementLoopAddLocation(NPC, 267.93, -21.53, -16.49, 2, 0) MovementLoopAddLocation(NPC, 295.75, -21.33, 4.62, 2, 0) MovementLoopAddLocation(NPC, 309.62, -21.6, 23.26, 2, 0) MovementLoopAddLocation(NPC, 337.2, -21.46, 52.68, 2, 0) MovementLoopAddLocation(NPC, 344, -21.64, 64.16, 2, 0) MovementLoopAddLocation(NPC, 347.82, -21.39, 73.93, 2, 0) MovementLoopAddLocation(NPC, 343.9, -20.41, 109.84, 2, 0) MovementLoopAddLocation(NPC, 342.77, -20.55, 116.88, 2, 0) MovementLoopAddLocation(NPC, 342.78, -20.6, 119.7, 2, 0) MovementLoopAddLocation(NPC, 343.15, -20.65, 122.13, 2, 0) MovementLoopAddLocation(NPC, 343.86, -20.67, 124.21, 2, 0) MovementLoopAddLocation(NPC, 345.35, -20.7, 125.9, 2, 0) MovementLoopAddLocation(NPC, 360.94, -20.97, 130.21, 2, 0) MovementLoopAddLocation(NPC, 364.46, -20.97, 130.68, 2, 0) MovementLoopAddLocation(NPC, 368.34, -20.88, 129.15, 2, 0) MovementLoopAddLocation(NPC, 371.99, -20.58, 125.21, 2, 0) MovementLoopAddLocation(NPC, 376.97, -20.5, 119.03, 2, 0) MovementLoopAddLocation(NPC, 354.26, -20.8, 88.65, 2, 0) MovementLoopAddLocation(NPC, 347.79, -21.26, 61.5, 2, 0) MovementLoopAddLocation(NPC, 321.33, -21.92, 35.4, 2, 0) MovementLoopAddLocation(NPC, 309.84, -21.61, 23.07, 2, 0) end