--[[ Script Name : SpawnScripts/BeggarsCourt/arat.lua Script Author : Dorbin Script Date : 2023.11.28 02:11:12 Script Purpose : : --]] function spawn(NPC) AddTimer(NPC,MakeRandomInt(3000,6000),"waypoints") AddTimer(NPC,MakeRandomInt(3000,6000),"CatCheck") end function respawn(NPC) spawn(NPC) end function CatCheck(NPC,Spawn) if IsAlive(NPC) then AddTimer(NPC,MakeRandomInt(2000,4000),"CatCheck") local zone = GetZone(NPC) local Cat = GetSpawnByLocationID(zone,402996) if not IsInCombat(NPC) and Cat~= nil and not IsInCombat(Cat)then local Distance = GetDistance(NPC,Cat,1) if Distance <=5 then Attack(Cat,NPC) Attack(NPC,Cat) local x = GetX(Cat) local y = GetY(Cat) local z = GetZ(Cat) SetFollowTarget(Cat,NPC) SetFollowTarget(NPC,Cat) ToggleFollow(Cat) ToggleFollow(NPC) SetTarget(Cat,NPC) FaceTarget(Cat,NPC) FaceTarget(NPC,Cat) PlayFlavor(NPC,"","","attack",0,0) AddTimer(NPC,MakeRandomInt(2500,4500),"kill",1,Spawn) end end end end function kill (NPC,Spawn) ApplySpellVisual(NPC,51) local zone = GetZone(NPC) local Cat = GetSpawnByLocationID(zone,402996) PlayFlavor(Cat,"","","attack",0,0) KillSpawn(NPC) AddTimer(Cat,2500,"scoop") AddTimer(NPC,3000,"Despawning") end function Despawning(NPC,Spawn) Despawn(NPC) end function waypoints(NPC) if GetSpawnLocationID(NPC) == 402872 then MovementLoopAddLocation(NPC, -25.69, 2, -4.01, 4, 0) MovementLoopAddLocation(NPC, -26.28, 2, -2.81, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -25.13, 2, -5.04, 4, 0) MovementLoopAddLocation(NPC, -23.58, 2, -7.44, 4, 0) MovementLoopAddLocation(NPC, -18.5, 2, -6.74, 4, 0) MovementLoopAddLocation(NPC, -9.28, 2.25, -2.86, 4, 0) MovementLoopAddLocation(NPC, -3.85, 3, -2.24, 4, 0) MovementLoopAddLocation(NPC, -0.59, 3.3, -2.33, 4, 0) MovementLoopAddLocation(NPC, 1.6, 3.5, -5.91, 4, 0) MovementLoopAddLocation(NPC, 5.47, 3.5, -7.62, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -0.8, 3.5, -3.7, 4, 0) MovementLoopAddLocation(NPC, -0.93, 3, 0.5, 4, 0) MovementLoopAddLocation(NPC, 2.17, 2.75, 3.58, 4, 0) MovementLoopAddLocation(NPC, 8.18, 2.75, 8.65, 4, 0) MovementLoopAddLocation(NPC, 9.65, 2.75, 10.63, 4, 0) MovementLoopAddLocation(NPC, 12.53, 2.75, 12.06, 4, 0) MovementLoopAddLocation(NPC, 14.54, 2.75, 13.5, 4, 0) MovementLoopAddLocation(NPC, 16.15, 2.75, 14.3, 4, 0) MovementLoopAddLocation(NPC, 18.62, 2.75, 14.22, 4, 0) MovementLoopAddLocation(NPC, 24.8, 2, 17.56, 4, 0) MovementLoopAddLocation(NPC, 28.59, 2, 19.06, 4, 0) MovementLoopAddLocation(NPC, 31.43, 2.19, 19.65, 4, 0) MovementLoopAddLocation(NPC, 32.09, 2, 19.88, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 32.56, 2, 18.07, 4, 0) MovementLoopAddLocation(NPC, 34.7, 2, 14.49, 4, 0) MovementLoopAddLocation(NPC, 34.98, 2.73, 8.01, 4, 0) MovementLoopAddLocation(NPC, 32.44, 3.5, -0.11, 4, 0) MovementLoopAddLocation(NPC, 33.63, 3.5, -0.37, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 32.14, 3.5, -1.36, 4, 0) MovementLoopAddLocation(NPC, 31.54, 3.54, -1.77, 4, 0) MovementLoopAddLocation(NPC, 27.66, 3.5, -1.36, 4, 0) MovementLoopAddLocation(NPC, 24.84, 3.5, -1.74, 4, 0) MovementLoopAddLocation(NPC, 19.16, 3.5, -3.61, 4, 0) MovementLoopAddLocation(NPC, 18.05, 3.5, -7.38, 4, 0) MovementLoopAddLocation(NPC, 14.1, 3.5, -10.08, 4, 0) MovementLoopAddLocation(NPC, 9.23, 3.5, -11.58, 4, 0) MovementLoopAddLocation(NPC, 5.38, 3.5, -12.38, 4, 0) MovementLoopAddLocation(NPC, -1.82, 3.5, -15.79, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -1.72, 3.5, -18.77, 4, 0) MovementLoopAddLocation(NPC, -7.04, 3.25, -18.53, 4, 0) MovementLoopAddLocation(NPC, -8.52, 3, -18.53, 4, 0) MovementLoopAddLocation(NPC, -12.66, 3, -17.13, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -11.97, 3, -18.45, 4, 0) MovementLoopAddLocation(NPC, -12.13, 3, -19.93, 4, 0) MovementLoopAddLocation(NPC, -15.16, 3.25, -25.85, 4, 0) MovementLoopAddLocation(NPC, -17.21, 3.25, -27.24, 4, 0) MovementLoopAddLocation(NPC, -20.47, 3.25, -31.18, 4, 0) MovementLoopAddLocation(NPC, -19.89, 3.58, -32.53, 4, 0) MovementLoopAddLocation(NPC, -19.28, 3.76, -33.44, 4, 0) MovementLoopAddLocation(NPC, -18.73, 4, -35.16, 4, 0) MovementLoopAddLocation(NPC, -20.38, 4, -38.86, 4, 0) MovementLoopAddLocation(NPC, -19.79, 4, -40.42, 4, 0) MovementLoopAddLocation(NPC, -16.27, 4, -41.12, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -18.89, 4, -40.56, 4, 0) MovementLoopAddLocation(NPC, -20.06, 4, -40.31, 4, 0) MovementLoopAddLocation(NPC, -19.76, 4, -38.3, 4, 0) MovementLoopAddLocation(NPC, -19.04, 3.75, -33.3, 4, 0) MovementLoopAddLocation(NPC, -20.34, 3.45, -32.06, 4, 0) MovementLoopAddLocation(NPC, -21.3, 3, -29.21, 4, 0) MovementLoopAddLocation(NPC, -22.69, 2.75, -26.72, 4, 0) MovementLoopAddLocation(NPC, -20.99, 2.5, -15.38, 4, 0) elseif GetSpawnLocationID(NPC) == 402881 then MovementLoopAddLocation(NPC, -7.41, -0.62, 13.03, 4, 0) MovementLoopAddLocation(NPC, -3.56, 1.39, 14.13, 4, 0) MovementLoopAddLocation(NPC, -0.81, 1.97, 14.24, 4, 0) MovementLoopAddLocation(NPC, 0.26, 2.03, 12.72, 4, 0) MovementLoopAddLocation(NPC, 1.09, 2.01, 11.49, 4, 0) MovementLoopAddLocation(NPC, 5.55, 2, 13.7, 4, 0) MovementLoopAddLocation(NPC, 7.94, 2, 15.9, 4, 0) MovementLoopAddLocation(NPC, 10.23, 2, 18.74, 4, 0) MovementLoopAddLocation(NPC, 13.14, 2, 21.74, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 13.29, 2, 20.26, 4, 0) MovementLoopAddLocation(NPC, 14.25, 2.25, 16.78, 4, 0) MovementLoopAddLocation(NPC, 7.53, 2.25, 12.67, 4, 0) MovementLoopAddLocation(NPC, 0.31, 2.02, 11.48, 4, 0) MovementLoopAddLocation(NPC, -3.82, 2.03, 9.96, 4, 0) MovementLoopAddLocation(NPC, -4.98, 2.03, 9.73, 4, 0) MovementLoopAddLocation(NPC, -6.95, 2.04, 8.96, 4, 0) MovementLoopAddLocation(NPC, -7.58, 2.04, 8.72, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -8.8, 2.02, 5.74, 4, 0) MovementLoopAddLocation(NPC, -9.99, 2.01, 3.81, 4, 0) MovementLoopAddLocation(NPC, -11.52, 2, 1.88, 4, 0) MovementLoopAddLocation(NPC, -15.18, 2, -0.29, 4, 0) MovementLoopAddLocation(NPC, -18.83, 2, -1.06, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -17.13, 2, -0.26, 4, 0) MovementLoopAddLocation(NPC, -11.03, 2, -0.81, 4, 0) MovementLoopAddLocation(NPC, -8.87, 2.02, 5.64, 4, 0) MovementLoopAddLocation(NPC, -7.91, 2.04, 8.58, 4, 0) MovementLoopAddLocation(NPC, -6.59, 2.03, 9.1, 4, 0) MovementLoopAddLocation(NPC, -3.03, 2.03, 10.48, 4, 0) MovementLoopAddLocation(NPC, -1.58, 2.03, 10.81, 4, 0) MovementLoopAddLocation(NPC, 0.42, 2.01, 13.5, 4, 0) MovementLoopAddLocation(NPC, -0.58, 1.91, 15.49, 4, 0) MovementLoopAddLocation(NPC, -5.57, 0.33, 13.46, 4, 0) MovementLoopAddLocation(NPC, -9.29, -1.69, 12.06, 4, 0) MovementLoopAddLocation(NPC, -11.14, -2.89, 10.41, 4, 0) MovementLoopAddLocation(NPC, -13.54, -4.48, 8.27, 4, 0) MovementLoopAddLocation(NPC, -15.59, -5, 7.97, 4, 0) MovementLoopAddLocation(NPC, -17.55, -5.01, 11.51, 4, 0) MovementLoopAddLocation(NPC, -21.29, -5, 13.25, 4, 0) MovementLoopAddLocation(NPC, -23.4, -5, 12.93, 4, 0) MovementLoopAddLocation(NPC, -24.16, -5, 14.44, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -22.79, -5, 16.99, 4, 0) MovementLoopAddLocation(NPC, -19.48, -5, 17.28, 4, 0) MovementLoopAddLocation(NPC, -14.61, -5, 12.97, 4, 0) MovementLoopAddLocation(NPC, -12.89, -5, 12.66, 4, 0) MovementLoopAddLocation(NPC, -10.58, -5, 14.7, 4, 0) MovementLoopAddLocation(NPC, -5.14, -5, 16.86, 4, 0) MovementLoopAddLocation(NPC, -2.72, -5.29, 21.3, 4, 0) MovementLoopAddLocation(NPC, -0.08, -6, 25.79, 4, 0) MovementLoopAddLocation(NPC, 1.26, -6, 28.49, 4, 0) MovementLoopAddLocation(NPC, 1.76, -6, 32.41, 4, 0) MovementLoopAddLocation(NPC, -0.48, -6, 36.8, 4, 0) MovementLoopAddLocation(NPC, -3.53, -6, 36.71, 4, 0) MovementLoopAddLocation(NPC, -3.53, -6, 36.71, 4, 0) MovementLoopAddLocation(NPC, -4.53, -6, 35.22, 4, 0) MovementLoopAddLocation(NPC, -5.49, -6, 32.42, 4, 0) MovementLoopAddLocation(NPC, -3.19, -6, 31.36, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -4.18, -6, 32.04, 4, 0) MovementLoopAddLocation(NPC, -5.43, -6, 34.08, 4, 0) MovementLoopAddLocation(NPC, -2.54, -6, 35.54, 4, 0) MovementLoopAddLocation(NPC, -0.86, -6, 33.74, 4, 0) MovementLoopAddLocation(NPC, 1.78, -6, 30.81, 4, 0) MovementLoopAddLocation(NPC, 5.82, -5, 23.62, 4, 0) MovementLoopAddLocation(NPC, 4.42, -5, 21, 4, 0) MovementLoopAddLocation(NPC, 4.42, -5, 21, 4, 0) MovementLoopAddLocation(NPC, 1.87, -5, 19.47, 4, 0) MovementLoopAddLocation(NPC, -2.26, -5, 18.32, 4, 0) MovementLoopAddLocation(NPC, -6.61, -5, 17.42, 4, 0) MovementLoopAddLocation(NPC, -11.49, -5, 15.1, 4, 0) MovementLoopAddLocation(NPC, -15.13, -5.01, 11.82, 4, 0) MovementLoopAddLocation(NPC, -16.04, -5.01, 9.14, 4, 0) MovementLoopAddLocation(NPC, -14.65, -4.98, 6.78, 4, 0) MovementLoopAddLocation(NPC, -12.04, -3.53, 9.3, 4, 0) MovementLoopAddLocation(NPC, -9.31, -1.64, 12.31, 4, 0) elseif GetSpawnLocationID(NPC) == 402904 then MovementLoopAddLocation(NPC, 27.52, 5.25, -13.3, 4, 0) MovementLoopAddLocation(NPC, 31.61, 5.25, -19.41, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 29.66, 5.25, -15.7, 4, 0) MovementLoopAddLocation(NPC, 29.79, 5.25, -14.52, 4, 0) MovementLoopAddLocation(NPC, 31.84, 5.25, -14.15, 4, 0) MovementLoopAddLocation(NPC, 34.73, 5.25, -15.65, 4, 0) MovementLoopAddLocation(NPC, 40.91, 5.25, -19.78, 4, 0) MovementLoopAddLocation(NPC, 41.22, 5.25, -21.76, 4, 0) MovementLoopAddLocation(NPC, 40.33, 5.25, -24.46, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 42.19, 5.25, -23.02, 4, 0) MovementLoopAddLocation(NPC, 42.4, 5.25, -21.17, 4, 0) MovementLoopAddLocation(NPC, 43.61, 5.25, -19.87, 4, 0) MovementLoopAddLocation(NPC, 45.41, 5.25, -19.91, 4, 0) MovementLoopAddLocation(NPC, 46.96, 5.25, -20.79, 4, 0) MovementLoopAddLocation(NPC, 48.86, 5.12, -23.18, 4, 0) MovementLoopAddLocation(NPC, 52.82, 5, -26.39, 4, 0) MovementLoopAddLocation(NPC, 55.44, 5, -27.45, 4, 0) MovementLoopAddLocation(NPC, 57.94, 5, -27.89, 4, 0) MovementLoopAddLocation(NPC, 60.45, 5, -27.32, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 62.86, 5, -27.74, 4, 0) MovementLoopAddLocation(NPC, 63.6, 5, -26.44, 4, 0) MovementLoopAddLocation(NPC, 64.01, 5, -23.14, 4, 0) MovementLoopAddLocation(NPC, 63.85, 5, -18.76, 4, 0) MovementLoopAddLocation(NPC, 63.37, 5, -14.91, 4, 0) MovementLoopAddLocation(NPC, 60.45, 4.75, -10.55, 4, 0) MovementLoopAddLocation(NPC, 58.84, 4.29, -7.75, 4, 0) MovementLoopAddLocation(NPC, 57.53, 4, -5.45, 4, 0) MovementLoopAddLocation(NPC, 58.15, 4, -1.86, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 57.37, 4, -0.8, 4, 0) MovementLoopAddLocation(NPC, 56.78, 3.98, 0.92, 4, 0) MovementLoopAddLocation(NPC, 55.01, 3.66, 2.04, 4, 0) MovementLoopAddLocation(NPC, 52.6, 3.25, 4.66, 4, 0) MovementLoopAddLocation(NPC, 47.22, 2.75, 8.99, 4, 0) MovementLoopAddLocation(NPC, 42.5, 2.75, 7.02, 4, 0) MovementLoopAddLocation(NPC, 39.61, 2.75, 5.61, 4, 0) MovementLoopAddLocation(NPC, 35.6, 2.75, 7.12, 4, 0) MovementLoopAddLocation(NPC, 31.22, 2.75, 9.87, 4, 0) MovementLoopAddLocation(NPC, 26.61, 2.75, 10.55, 4, 0) MovementLoopAddLocation(NPC, 22.79, 2.75, 12.47, 4, 0) MovementLoopAddLocation(NPC, 17.12, 3.5, 9.38, 4, 0) MovementLoopAddLocation(NPC, 16, 3.5, 5.79, 4, 0) MovementLoopAddLocation(NPC, 13.65, 3.5, -0.37, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 12.52, 3.5, -1.34, 4, 0) MovementLoopAddLocation(NPC, 12.68, 3.5, -2.86, 4, 0) MovementLoopAddLocation(NPC, 13.18, 3.5, -10.14, 4, 0) MovementLoopAddLocation(NPC, 12.71, 4, -15.12, 4, 0) MovementLoopAddLocation(NPC, 13.34, 4.5, -18.38, 4, 0) MovementLoopAddLocation(NPC, 14.5, 4.75, -21.21, 4, 0) MovementLoopAddLocation(NPC, 15.93, 5, -27.42, 4, 0) MovementLoopAddLocation(NPC, 16.6, 5, -31.99, 4, 0) MovementLoopAddLocation(NPC, 19.55, 5, -38.53, 4, 0) MovementLoopAddLocation(NPC, 22.28, 5.25, -42.47, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 22.31, 5.25, -40.68, 4, 0) MovementLoopAddLocation(NPC, 23.51, 5.25, -38.49, 4, 0) MovementLoopAddLocation(NPC, 26.04, 5.25, -33.64, 4, 0) MovementLoopAddLocation(NPC, 24.22, 5.25, -28.13, 4, 0) MovementLoopAddLocation(NPC, 23.02, 5.25, -26.12, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 22.68, 5.25, -23.52, 4, 0) MovementLoopAddLocation(NPC, 22.68, 5.25, -23.52, 4, 0) MovementLoopAddLocation(NPC, 23.02, 5.25, -26.12, 4, 0) MovementLoopAddLocation(NPC, 24.22, 5.25, -28.13, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 26.04, 5.25, -33.64, 4, 0) MovementLoopAddLocation(NPC, 23.51, 5.25, -38.49, 4, 0) MovementLoopAddLocation(NPC, 22.31, 5.25, -40.68, 4, 0) MovementLoopAddLocation(NPC, 22.28, 5.25, -42.47, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 19.55, 5, -38.53, 4, 0) MovementLoopAddLocation(NPC, 16.6, 5, -31.99, 4, 0) MovementLoopAddLocation(NPC, 15.93, 5, -27.42, 4, 0) MovementLoopAddLocation(NPC, 14.5, 4.75, -21.21, 4, 0) MovementLoopAddLocation(NPC, 13.34, 4.5, -18.38, 4, 0) MovementLoopAddLocation(NPC, 12.71, 4, -15.12, 4, 0) MovementLoopAddLocation(NPC, 13.18, 3.5, -10.14, 4, 0) MovementLoopAddLocation(NPC, 12.68, 3.5, -2.86, 4, 0) MovementLoopAddLocation(NPC, 12.52, 3.5, -1.34, 4, 0) MovementLoopAddLocation(NPC, 13.65, 3.5, -0.37, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 16, 3.5, 5.79, 4, 0) MovementLoopAddLocation(NPC, 17.12, 3.5, 9.38, 4, 0) MovementLoopAddLocation(NPC, 22.79, 2.75, 12.47, 4, 0) MovementLoopAddLocation(NPC, 26.61, 2.75, 10.55, 4, 0) MovementLoopAddLocation(NPC, 31.22, 2.75, 9.87, 4, 0) MovementLoopAddLocation(NPC, 35.6, 2.75, 7.12, 4, 0) MovementLoopAddLocation(NPC, 39.61, 2.75, 5.61, 4, 0) MovementLoopAddLocation(NPC, 42.5, 2.75, 7.02, 4, 0) MovementLoopAddLocation(NPC, 47.22, 2.75, 8.99, 4, 0) MovementLoopAddLocation(NPC, 52.6, 3.25, 4.66, 4, 0) MovementLoopAddLocation(NPC, 55.01, 3.66, 2.04, 4, 0) MovementLoopAddLocation(NPC, 56.78, 3.98, 0.92, 4, 0) MovementLoopAddLocation(NPC, 57.37, 4, -0.8, 4, 0) MovementLoopAddLocation(NPC, 58.15, 4, -1.86, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 57.53, 4, -5.45, 4, 0) MovementLoopAddLocation(NPC, 58.84, 4.29, -7.75, 4, 0) MovementLoopAddLocation(NPC, 60.45, 4.75, -10.55, 4, 0) MovementLoopAddLocation(NPC, 63.37, 5, -14.91, 4, 0) MovementLoopAddLocation(NPC, 63.85, 5, -18.76, 4, 0) MovementLoopAddLocation(NPC, 64.01, 5, -23.14, 4, 0) MovementLoopAddLocation(NPC, 63.6, 5, -26.44, 4, 0) MovementLoopAddLocation(NPC, 62.86, 5, -27.74, 4, 0) MovementLoopAddLocation(NPC, 60.45, 5, -27.32, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 57.94, 5, -27.89, 4, 0) MovementLoopAddLocation(NPC, 55.44, 5, -27.45, 4, 0) MovementLoopAddLocation(NPC, 52.82, 5, -26.39, 4, 0) MovementLoopAddLocation(NPC, 48.86, 5.12, -23.18, 4, 0) MovementLoopAddLocation(NPC, 46.96, 5.25, -20.79, 4, 0) MovementLoopAddLocation(NPC, 45.41, 5.25, -19.91, 4, 0) MovementLoopAddLocation(NPC, 43.61, 5.25, -19.87, 4, 0) MovementLoopAddLocation(NPC, 42.4, 5.25, -21.17, 4, 0) MovementLoopAddLocation(NPC, 42.19, 5.25, -23.02, 4, 0) MovementLoopAddLocation(NPC, 40.33, 5.25, -24.46, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 41.22, 5.25, -21.76, 4, 0) MovementLoopAddLocation(NPC, 40.91, 5.25, -19.78, 4, 0) MovementLoopAddLocation(NPC, 34.73, 5.25, -15.65, 4, 0) MovementLoopAddLocation(NPC, 31.84, 5.25, -14.15, 4, 0) MovementLoopAddLocation(NPC, 29.79, 5.25, -14.52, 4, 0) MovementLoopAddLocation(NPC, 29.66, 5.25, -15.7, 4, 0) MovementLoopAddLocation(NPC, 31.61, 5.25, -19.41, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 27.52, 5.25, -13.3, 4, 0) elseif GetSpawnLocationID(NPC) == 402914 then MovementLoopAddLocation(NPC, 41.87, 2.25, 12.16, 4, 0) MovementLoopAddLocation(NPC, 40.39, 2, 14.41, 4, 0) MovementLoopAddLocation(NPC, 40.76, 2, 17.09, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 39.53, 2, 14.96, 4, 0) MovementLoopAddLocation(NPC, 40.19, 2, 13.32, 4, 0) MovementLoopAddLocation(NPC, 45.26, 2.48, 10.97, 4, 0) MovementLoopAddLocation(NPC, 48.44, 2.75, 8.76, 4, 0) MovementLoopAddLocation(NPC, 49.84, 3, 6.7, 4, 0) MovementLoopAddLocation(NPC, 54.17, 3.47, 5.8, 4, 0) MovementLoopAddLocation(NPC, 56.49, 3.75, 4.46, 4, 0) MovementLoopAddLocation(NPC, 59.8, 3.75, 1.95, 4, 0) MovementLoopAddLocation(NPC, 61.49, 4, -0.34, 4, 0) MovementLoopAddLocation(NPC, 61.93, 4, -1.14, 4, 0) MovementLoopAddLocation(NPC, 61.02, 4, -4.05, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 61.19, 4, -5.62, 4, 0) MovementLoopAddLocation(NPC, 59.83, 4.25, -7.14, 4, 0) MovementLoopAddLocation(NPC, 56.37, 4.25, -7.18, 4, 0) MovementLoopAddLocation(NPC, 51.21, 4.25, -8.17, 4, 0) MovementLoopAddLocation(NPC, 48.95, 4.25, -9.49, 4, 0) MovementLoopAddLocation(NPC, 46.77, 3.75, -9.82, 4, 0) MovementLoopAddLocation(NPC, 45.9, 3.75, -9.5, 4, 0) MovementLoopAddLocation(NPC, 42.29, 3.75, -8.03, 4, 0) MovementLoopAddLocation(NPC, 41.36, 3.5, -5.14, 4, 0) MovementLoopAddLocation(NPC, 43.99, 3.5, -3.29, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 41.5, 3.5, -3.25, 4, 0) MovementLoopAddLocation(NPC, 40.15, 3.5, -1.19, 4, 0) MovementLoopAddLocation(NPC, 39.23, 3.5, 2.15, 4, 0) MovementLoopAddLocation(NPC, 35.86, 3.25, 4.68, 4, 0) MovementLoopAddLocation(NPC, 33.9, 3, 6.49, 4, 0) MovementLoopAddLocation(NPC, 29.32, 3.5, 4.54, 4, 0) MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0) MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0) MovementLoopAddLocation(NPC, 21.35, 3.62, -3.56, 4, 0) MovementLoopAddLocation(NPC, 14.37, 3.5, -4.68, 4, 0) MovementLoopAddLocation(NPC, 9.88, 3.5, -7.86, 4, 0) MovementLoopAddLocation(NPC, 5.79, 3.5, -11.23, 4, 0) MovementLoopAddLocation(NPC, 3.51, 3.5, -14.44, 4, 0) MovementLoopAddLocation(NPC, 1.75, 3.5, -18.22, 4, 0) MovementLoopAddLocation(NPC, 0.62, 3.5, -20.15, 4, 0) MovementLoopAddLocation(NPC, -1.29, 3.5, -17.96, 4, 0) MovementLoopAddLocation(NPC, -1.63, 3.5, -17.03, 4, 0) MovementLoopAddLocation(NPC, -1.53, 3.5, -15.82, 4, 0) MovementLoopAddLocation(NPC, -0.84, 3.5, -13.74, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 1.16, 3.5, -12.4, 4, 0) MovementLoopAddLocation(NPC, 3.17, 3.5, -12.37, 4, 0) MovementLoopAddLocation(NPC, 4.21, 3.5, -14.89, 4, 0) MovementLoopAddLocation(NPC, 4.21, 3.94, -19.6, 4, 0) MovementLoopAddLocation(NPC, 1.78, 4, -22.92, 4, 0) MovementLoopAddLocation(NPC, 0.72, 4, -24.87, 4, 0) MovementLoopAddLocation(NPC, -2.81, 4, -28.53, 4, 0) MovementLoopAddLocation(NPC, -4.26, 3.75, -33.4, 4, 0) MovementLoopAddLocation(NPC, -4.69, 3.75, -35.5, 4, 0) MovementLoopAddLocation(NPC, -5.86, 3.82, -38.58, 4, 0) MovementLoopAddLocation(NPC, -6.21, 4, -41.03, 4, 0) MovementLoopAddLocation(NPC, -6.15, 4, -44.25, 4, 0) MovementLoopAddLocation(NPC, -8.86, 4, -49, 4, 0) MovementLoopAddLocation(NPC, -12.89, 4.35, -56.23, 4, 0) MovementLoopAddLocation(NPC, -16.55, 4.18, -63.29, 4, 0) MovementLoopAddLocation(NPC, -22.07, 4.18, -61.86, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -20.24, 4.18, -61.94, 4, 0) MovementLoopAddLocation(NPC, -13.37, 4.18, -65.29, 4, 0) MovementLoopAddLocation(NPC, -9.04, 4.18, -68.32, 4, 0) MovementLoopAddLocation(NPC, -6.44, 4.18, -70.71, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -11.68, 4.18, -66.85, 4, 0) MovementLoopAddLocation(NPC, -14.87, 4.18, -65.11, 4, 0) MovementLoopAddLocation(NPC, -19.16, 4.18, -67.27, 4, 0) MovementLoopAddLocation(NPC, -21.02, 4.18, -70.34, 4, 0) MovementLoopAddLocation(NPC, -22.16, 4.18, -73.77, 4, 0) MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, 0) MovementLoopAddLocation(NPC, -24.23, 4.18, -76.5, 4, 0) MovementLoopAddLocation(NPC, -20.26, 4.18, -72.13, 4, 0) MovementLoopAddLocation(NPC, -14.33, 4.18, -59.88, 4, 0) MovementLoopAddLocation(NPC, -10.02, 4.14, -52.5, 4, 0) MovementLoopAddLocation(NPC, -7.9, 4, -48.62, 4, 0) MovementLoopAddLocation(NPC, -2.37, 4.75, -45.25, 4, 0) MovementLoopAddLocation(NPC, 1.31, 5, -43.12, 4, 0) MovementLoopAddLocation(NPC, 2.74, 5, -41.35, 4, 0) MovementLoopAddLocation(NPC, 3.5, 5, -38.83, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 3.95, 5, -42.98, 4, 0) MovementLoopAddLocation(NPC, 3.85, 4.75, -47.63, 4, 0) MovementLoopAddLocation(NPC, 3.63, 4.75, -49.72, 4, 0) MovementLoopAddLocation(NPC, 4.39, 4.99, -52.12, 4, 2) MovementLoopAddLocation(NPC, 3.63, 4.75, -49.72, 4, 0) MovementLoopAddLocation(NPC, 3.85, 4.75, -47.63, 4, 0) MovementLoopAddLocation(NPC, 3.95, 5, -42.98, 4, 0) MovementLoopAddLocation(NPC, 3.5, 5, -38.83, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 2.74, 5, -41.35, 4, 0) MovementLoopAddLocation(NPC, 1.31, 5, -43.12, 4, 0) MovementLoopAddLocation(NPC, -2.37, 4.75, -45.25, 4, 0) MovementLoopAddLocation(NPC, -7.9, 4, -48.62, 4, 0) MovementLoopAddLocation(NPC, -10.02, 4.14, -52.5, 4, 0) MovementLoopAddLocation(NPC, -14.33, 4.18, -59.88, 4, 0) MovementLoopAddLocation(NPC, -20.26, 4.18, -72.13, 4, 0) MovementLoopAddLocation(NPC, -24.23, 4.18, -76.5, 4, 0) MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, 0) MovementLoopAddLocation(NPC, -28.92, 4.17, -81.67, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -22.16, 4.18, -73.77, 4, 0) MovementLoopAddLocation(NPC, -21.02, 4.18, -70.34, 4, 0) MovementLoopAddLocation(NPC, -19.16, 4.18, -67.27, 4, 0) MovementLoopAddLocation(NPC, -14.87, 4.18, -65.11, 4, 0) MovementLoopAddLocation(NPC, -11.68, 4.18, -66.85, 4, 0) MovementLoopAddLocation(NPC, -6.44, 4.18, -70.71, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -9.04, 4.18, -68.32, 4, 0) MovementLoopAddLocation(NPC, -13.37, 4.18, -65.29, 4, 0) MovementLoopAddLocation(NPC, -20.24, 4.18, -61.94, 4, 0) MovementLoopAddLocation(NPC, -22.07, 4.18, -61.86, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -16.55, 4.18, -63.29, 4, 0) MovementLoopAddLocation(NPC, -12.89, 4.35, -56.23, 4, 0) MovementLoopAddLocation(NPC, -8.86, 4, -49, 4, 0) MovementLoopAddLocation(NPC, -6.15, 4, -44.25, 4, 0) MovementLoopAddLocation(NPC, -6.21, 4, -41.03, 4, 0) MovementLoopAddLocation(NPC, -5.86, 3.82, -38.58, 4, 0) MovementLoopAddLocation(NPC, -4.69, 3.75, -35.5, 4, 0) MovementLoopAddLocation(NPC, -4.26, 3.75, -33.4, 4, 0) MovementLoopAddLocation(NPC, -2.81, 4, -28.53, 4, 0) MovementLoopAddLocation(NPC, 0.72, 4, -24.87, 4, 0) MovementLoopAddLocation(NPC, 1.78, 4, -22.92, 4, 0) MovementLoopAddLocation(NPC, 4.21, 3.94, -19.6, 4, 0) MovementLoopAddLocation(NPC, 4.21, 3.5, -14.89, 4, 0) MovementLoopAddLocation(NPC, 3.17, 3.5, -12.37, 4, 0) MovementLoopAddLocation(NPC, 1.16, 3.5, -12.4, 4, 0) MovementLoopAddLocation(NPC, -0.84, 3.5, -13.74, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -1.53, 3.5, -15.82, 4, 0) MovementLoopAddLocation(NPC, -1.63, 3.5, -17.03, 4, 0) MovementLoopAddLocation(NPC, -1.29, 3.5, -17.96, 4, 0) MovementLoopAddLocation(NPC, 0.62, 3.5, -20.15, 4, 0) MovementLoopAddLocation(NPC, 1.75, 3.5, -18.22, 4, 0) MovementLoopAddLocation(NPC, 3.51, 3.5, -14.44, 4, 0) MovementLoopAddLocation(NPC, 5.79, 3.5, -11.23, 4, 0) MovementLoopAddLocation(NPC, 9.88, 3.5, -7.86, 4, 0) MovementLoopAddLocation(NPC, 14.37, 3.5, -4.68, 4, 0) MovementLoopAddLocation(NPC, 21.35, 3.62, -3.56, 4, 0) MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0) MovementLoopAddLocation(NPC, 25.19, 3.5, -0.95, 4, 0) MovementLoopAddLocation(NPC, 29.32, 3.5, 4.54, 4, 0) MovementLoopAddLocation(NPC, 33.9, 3, 6.49, 4, 0) MovementLoopAddLocation(NPC, 35.86, 3.25, 4.68, 4, 0) MovementLoopAddLocation(NPC, 39.23, 3.5, 2.15, 4, 0) MovementLoopAddLocation(NPC, 40.15, 3.5, -1.19, 4, 0) MovementLoopAddLocation(NPC, 41.5, 3.5, -3.25, 4, 0) MovementLoopAddLocation(NPC, 43.99, 3.5, -3.29, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 41.36, 3.5, -5.14, 4, 0) MovementLoopAddLocation(NPC, 42.29, 3.75, -8.03, 4, 0) MovementLoopAddLocation(NPC, 45.9, 3.75, -9.5, 4, 0) MovementLoopAddLocation(NPC, 46.77, 3.75, -9.82, 4, 0) MovementLoopAddLocation(NPC, 48.95, 4.25, -9.49, 4, 0) MovementLoopAddLocation(NPC, 51.21, 4.25, -8.17, 4, 0) MovementLoopAddLocation(NPC, 56.37, 4.25, -7.18, 4, 0) MovementLoopAddLocation(NPC, 59.83, 4.25, -7.14, 4, 0) MovementLoopAddLocation(NPC, 61.19, 4, -5.62, 4, 0) MovementLoopAddLocation(NPC, 61.02, 4, -4.05, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 61.93, 4, -1.14, 4, 0) MovementLoopAddLocation(NPC, 61.49, 4, -0.34, 4, 0) MovementLoopAddLocation(NPC, 59.8, 3.75, 1.95, 4, 0) MovementLoopAddLocation(NPC, 56.49, 3.75, 4.46, 4, 0) MovementLoopAddLocation(NPC, 54.17, 3.47, 5.8, 4, 0) MovementLoopAddLocation(NPC, 49.84, 3, 6.7, 4, 0) MovementLoopAddLocation(NPC, 48.44, 2.75, 8.76, 4, 0) MovementLoopAddLocation(NPC, 45.26, 2.48, 10.97, 4, 0) MovementLoopAddLocation(NPC, 40.19, 2, 13.32, 4, 0) MovementLoopAddLocation(NPC, 39.53, 2, 14.96, 4, 0) MovementLoopAddLocation(NPC, 40.76, 2, 17.09, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 40.39, 2, 14.41, 4, 0) MovementLoopAddLocation(NPC, 41.87, 2.25, 12.16, 4, 0) elseif GetSpawnLocationID(NPC) == 402893 then MovementLoopAddLocation(NPC, 17.74, -6.5, 47.03, 4, 0) MovementLoopAddLocation(NPC, 19.56, -6.5, 47.35, 4, 0) MovementLoopAddLocation(NPC, 23.82, -6.5, 47.57, 4, 0) MovementLoopAddLocation(NPC, 27.69, -6.5, 48.42, 4, 0) MovementLoopAddLocation(NPC, 31.37, -6.5, 48.73, 4, 0) MovementLoopAddLocation(NPC, 35.84, -6.5, 47.63, 4, 0) MovementLoopAddLocation(NPC, 36.97, -6.5, 47.32, 4, 0) MovementLoopAddLocation(NPC, 41.95, -6.5, 47.98, 4, 0) MovementLoopAddLocation(NPC, 46, -7, 50.83, 4, 0) MovementLoopAddLocation(NPC, 52.15, -7, 55.55, 4, 0) MovementLoopAddLocation(NPC, 57.63, -7, 59.75, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 56.11, -6.99, 61.26, 4, 0) MovementLoopAddLocation(NPC, 53.39, -6.96, 62.03, 4, 0) MovementLoopAddLocation(NPC, 49.46, -6.99, 59.01, 4, 0) MovementLoopAddLocation(NPC, 47.74, -7, 54.95, 4, 0) MovementLoopAddLocation(NPC, 49.67, -6, 47.72, 4, 0) MovementLoopAddLocation(NPC, 51, -5.5, 44.37, 4, 0) MovementLoopAddLocation(NPC, 52.35, -5, 39.12, 4, 0) MovementLoopAddLocation(NPC, 50.72, -5, 36.77, 4, 0) MovementLoopAddLocation(NPC, 48.66, -5, 36.54, 4, 0) MovementLoopAddLocation(NPC, 46.04, -5, 37.16, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 43.96, -5, 35.1, 4, 0) MovementLoopAddLocation(NPC, 37.8, -5, 33.31, 4, 0) MovementLoopAddLocation(NPC, 32.66, -5.05, 32.26, 4, 0) MovementLoopAddLocation(NPC, 28.17, -6, 32.67, 4, 0) MovementLoopAddLocation(NPC, 24.57, -6, 34.2, 4, 0) MovementLoopAddLocation(NPC, 20.83, -6, 35.36, 4, 0) MovementLoopAddLocation(NPC, 18.78, -6, 35.39, 4, 0) MovementLoopAddLocation(NPC, 18.69, -6, 36.07, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 17.69, -6, 36.99, 4, 0) MovementLoopAddLocation(NPC, 17.58, -6, 39.94, 4, 0) MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, 0) MovementLoopAddLocation(NPC, 17.52, -6, 41.9, 4, 0) MovementLoopAddLocation(NPC, 12.32, -6.25, 43.54, 4, 0) MovementLoopAddLocation(NPC, 8.07, -6.25, 41.48, 4, 0) MovementLoopAddLocation(NPC, 1.85, -6.25, 39.71, 4, 0) MovementLoopAddLocation(NPC, -3.41, -6.25, 39.37, 4, 0) MovementLoopAddLocation(NPC, -6.94, -6.5, 40.07, 4, 0) MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, 0) MovementLoopAddLocation(NPC, -11.03, -7, 42.96, 4, 0) MovementLoopAddLocation(NPC, -9, -7, 48.27, 4, 0) MovementLoopAddLocation(NPC, -5.82, -7, 54.34, 4, 0) MovementLoopAddLocation(NPC, -4.59, -7, 62.37, 4, 0) MovementLoopAddLocation(NPC, -3, -7, 69.92, 4, 0) MovementLoopAddLocation(NPC, 0.22, -6.49, 79.37, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -0.09, -7, 78.81, 4, 0) MovementLoopAddLocation(NPC, -1.14, -7, 75.7, 4, 0) MovementLoopAddLocation(NPC, -4.57, -7, 62.61, 4, 0) MovementLoopAddLocation(NPC, -6.45, -7, 58.98, 4, 0) MovementLoopAddLocation(NPC, -12.92, -7, 57.33, 4, 0) MovementLoopAddLocation(NPC, -14.39, -7, 53.7, 4, 0) MovementLoopAddLocation(NPC, -15.76, -7, 49.89, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -14.63, -7, 51.33, 4, 0) MovementLoopAddLocation(NPC, -13.83, -7, 53.33, 4, 0) MovementLoopAddLocation(NPC, -11.43, -7, 52.64, 4, 0) MovementLoopAddLocation(NPC, -1.99, -7, 46.07, 4, 0) MovementLoopAddLocation(NPC, 1.72, -6.75, 43.49, 4, 0) MovementLoopAddLocation(NPC, 2.49, -6.75, 42.96, 4, 0) MovementLoopAddLocation(NPC, 7.7, -6.75, 44.8, 4, 0) MovementLoopAddLocation(NPC, 13.37, -6.75, 47.94, 4, 0) MovementLoopAddLocation(NPC, 19.02, -6.75, 48.94, 4, 0) MovementLoopAddLocation(NPC, 23.2, -7, 56.42, 4, 0) MovementLoopAddLocation(NPC, 25.93, -7.25, 63.48, 4, 0) MovementLoopAddLocation(NPC, 26.56, -7.36, 67.57, 4, 0) MovementLoopAddLocation(NPC, 23.7, -7.17, 69.78, 4, 0) MovementLoopAddLocation(NPC, 21.52, -7, 69.1, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 23.88, -7.19, 68.66, 4, 0) MovementLoopAddLocation(NPC, 22.2, -7.05, 60.89, 4, 0) MovementLoopAddLocation(NPC, 17.94, -7, 54.02, 4, 0) MovementLoopAddLocation(NPC, 15.38, -6.75, 48.89, 4, 0) MovementLoopAddLocation(NPC, 14.81, -6, 42.72, 4, 0) MovementLoopAddLocation(NPC, 14.26, -6, 37.09, 4, 0) MovementLoopAddLocation(NPC, 13.17, -5.75, 34.5, 4, 0) MovementLoopAddLocation(NPC, 9.96, -5.75, 34, 4, 0) MovementLoopAddLocation(NPC, 9.36, -6, 35.07, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 9.96, -5.75, 34, 4, 0) MovementLoopAddLocation(NPC, 13.17, -5.75, 34.5, 4, 0) MovementLoopAddLocation(NPC, 14.26, -6, 37.09, 4, 0) MovementLoopAddLocation(NPC, 14.81, -6, 42.72, 4, 0) MovementLoopAddLocation(NPC, 15.38, -6.75, 48.89, 4, 0) MovementLoopAddLocation(NPC, 17.94, -7, 54.02, 4, 0) MovementLoopAddLocation(NPC, 22.2, -7.05, 60.89, 4, 0) MovementLoopAddLocation(NPC, 23.88, -7.19, 68.66, 4, 0) MovementLoopAddLocation(NPC, 21.52, -7, 69.1, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 23.7, -7.17, 69.78, 4, 0) MovementLoopAddLocation(NPC, 26.56, -7.36, 67.57, 4, 0) MovementLoopAddLocation(NPC, 25.93, -7.25, 63.48, 4, 0) MovementLoopAddLocation(NPC, 23.2, -7, 56.42, 4, 0) MovementLoopAddLocation(NPC, 19.02, -6.75, 48.94, 4, 0) MovementLoopAddLocation(NPC, 13.37, -6.75, 47.94, 4, 0) MovementLoopAddLocation(NPC, 7.7, -6.75, 44.8, 4, 0) MovementLoopAddLocation(NPC, 2.49, -6.75, 42.96, 4, 0) MovementLoopAddLocation(NPC, 1.72, -6.75, 43.49, 4, 0) MovementLoopAddLocation(NPC, -1.99, -7, 46.07, 4, 0) MovementLoopAddLocation(NPC, -11.43, -7, 52.64, 4, 0) MovementLoopAddLocation(NPC, -13.83, -7, 53.33, 4, 0) MovementLoopAddLocation(NPC, -14.63, -7, 51.33, 4, 0) MovementLoopAddLocation(NPC, -15.76, -7, 49.89, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -14.39, -7, 53.7, 4, 0) MovementLoopAddLocation(NPC, -12.92, -7, 57.33, 4, 0) MovementLoopAddLocation(NPC, -6.45, -7, 58.98, 4, 0) MovementLoopAddLocation(NPC, -4.57, -7, 62.61, 4, 0) MovementLoopAddLocation(NPC, -1.14, -7, 75.7, 4, 0) MovementLoopAddLocation(NPC, -0.09, -7, 78.81, 4, 0) MovementLoopAddLocation(NPC, 0.22, -6.49, 79.37, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -3, -7, 69.92, 4, 0) MovementLoopAddLocation(NPC, -4.59, -7, 62.37, 4, 0) MovementLoopAddLocation(NPC, -5.82, -7, 54.34, 4, 0) MovementLoopAddLocation(NPC, -9, -7, 48.27, 4, 0) MovementLoopAddLocation(NPC, -11.03, -7, 42.96, 4, 0) MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, 0) MovementLoopAddLocation(NPC, -12.98, -7, 40.86, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -6.94, -6.5, 40.07, 4, 0) MovementLoopAddLocation(NPC, -3.41, -6.25, 39.37, 4, 0) MovementLoopAddLocation(NPC, 1.85, -6.25, 39.71, 4, 0) MovementLoopAddLocation(NPC, 8.07, -6.25, 41.48, 4, 0) MovementLoopAddLocation(NPC, 12.32, -6.25, 43.54, 4, 0) MovementLoopAddLocation(NPC, 17.52, -6, 41.9, 4, 0) MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, 0) MovementLoopAddLocation(NPC, 18.29, -5.97, 40.75, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 17.58, -6, 39.94, 4, 0) MovementLoopAddLocation(NPC, 17.69, -6, 36.99, 4, 0) MovementLoopAddLocation(NPC, 18.69, -6, 36.07, 4, 15) MovementLoopAddLocation(NPC, 18.78, -6, 35.39, 4, 0) MovementLoopAddLocation(NPC, 20.83, -6, 35.36, 4, 0) MovementLoopAddLocation(NPC, 24.57, -6, 34.2, 4, 0) MovementLoopAddLocation(NPC, 28.17, -6, 32.67, 4, 0) MovementLoopAddLocation(NPC, 32.66, -5.05, 32.26, 4, 0) MovementLoopAddLocation(NPC, 37.8, -5, 33.31, 4, 0) MovementLoopAddLocation(NPC, 43.96, -5, 35.1, 4, 0) MovementLoopAddLocation(NPC, 46.04, -5, 37.16, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 48.66, -5, 36.54, 4, 0) MovementLoopAddLocation(NPC, 50.72, -5, 36.77, 4, 0) MovementLoopAddLocation(NPC, 52.35, -5, 39.12, 4, 0) MovementLoopAddLocation(NPC, 51, -5.5, 44.37, 4, 0) MovementLoopAddLocation(NPC, 49.67, -6, 47.72, 4, 0) MovementLoopAddLocation(NPC, 47.74, -7, 54.95, 4, 0) MovementLoopAddLocation(NPC, 49.46, -6.99, 59.01, 4, 0) MovementLoopAddLocation(NPC, 53.39, -6.96, 62.03, 4, 0) MovementLoopAddLocation(NPC, 56.11, -6.99, 61.26, 4, 0) MovementLoopAddLocation(NPC, 57.63, -7, 59.75, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, 52.15, -7, 55.55, 4, 0) MovementLoopAddLocation(NPC, 46, -7, 50.83, 4, 0) MovementLoopAddLocation(NPC, 41.95, -6.5, 47.98, 4, 0) MovementLoopAddLocation(NPC, 36.97, -6.5, 47.32, 4, 0) MovementLoopAddLocation(NPC, 35.84, -6.5, 47.63, 4, 0) MovementLoopAddLocation(NPC, 31.37, -6.5, 48.73, 4, 0) MovementLoopAddLocation(NPC, 27.69, -6.5, 48.42, 4, 0) MovementLoopAddLocation(NPC, 23.82, -6.5, 47.57, 4, 0) MovementLoopAddLocation(NPC, 19.56, -6.5, 47.35, 4, 0) MovementLoopAddLocation(NPC, 17.74, -6.5, 47.03, 4, 0) elseif GetSpawnLocationID(NPC) == 402869 then MovementLoopAddLocation(NPC, -30.78, -5.75, 22.15, 4, 0) MovementLoopAddLocation(NPC, -30.67, -5.25, 17.51, 4, 0) MovementLoopAddLocation(NPC, -31, -5.2, 14.66, 4, 0) MovementLoopAddLocation(NPC, -32.15, -5, 10.84, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -30.29, -5, 14.11, 4, 0) MovementLoopAddLocation(NPC, -28.71, -5, 15.16, 4, 0) MovementLoopAddLocation(NPC, -25.94, -5, 15.84, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -28.86, -5.25, 19.07, 4, 0) MovementLoopAddLocation(NPC, -29.86, -5.5, 21.13, 4, 0) MovementLoopAddLocation(NPC, -27.67, -5.75, 23.64, 4, 0) MovementLoopAddLocation(NPC, -18.78, -7, 30.85, 4, 0) MovementLoopAddLocation(NPC, -13.54, -6.75, 34.55, 4, 0) MovementLoopAddLocation(NPC, -9.13, -6.75, 39.29, 4, 0) MovementLoopAddLocation(NPC, -8.21, -7, 48.96, 4, 0) MovementLoopAddLocation(NPC, -9.84, -7, 54.89, 4, 0) MovementLoopAddLocation(NPC, -17.46, -7, 59.88, 4, 0) MovementLoopAddLocation(NPC, -17.3, -7, 64.56, 4, 0) MovementLoopAddLocation(NPC, -17.91, -6.93, 72.4, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -18.08, -7, 69.15, 4, 0) MovementLoopAddLocation(NPC, -17.59, -7, 65.26, 4, 0) MovementLoopAddLocation(NPC, -20.34, -7, 64.88, 4, 0) MovementLoopAddLocation(NPC, -29.55, -7, 61.91, 4, 0) MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, 0) MovementLoopAddLocation(NPC, -28.38, -7, 57.87, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -29.38, -7, 59.79, 4, 0) MovementLoopAddLocation(NPC, -29.06, -7, 61.56, 4, 0) MovementLoopAddLocation(NPC, -28.18, -7, 62.75, 4, 0) MovementLoopAddLocation(NPC, -24.02, -7, 61.12, 4, 0) MovementLoopAddLocation(NPC, -22.88, -7, 58.92, 4, 0) MovementLoopAddLocation(NPC, -16.97, -7, 56.33, 4, 0) MovementLoopAddLocation(NPC, -12.76, -7, 55.73, 4, 0) MovementLoopAddLocation(NPC, -9.91, -7, 51.69, 4, 0) MovementLoopAddLocation(NPC, -11.58, -7, 48.2, 4, 0) MovementLoopAddLocation(NPC, -14.76, -7, 45.45, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -13.63, -7, 47.25, 4, 0) MovementLoopAddLocation(NPC, -10.71, -7, 45.21, 4, 0) MovementLoopAddLocation(NPC, -11.27, -7, 41.4, 4, 0) MovementLoopAddLocation(NPC, -13.64, -7, 39.39, 4, 0) MovementLoopAddLocation(NPC, -18.41, -7, 38.09, 4, 0) MovementLoopAddLocation(NPC, -24.03, -7, 35.43, 4, 0) MovementLoopAddLocation(NPC, -33.63, -6.85, 34.05, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -30.91, -5.75, 25.88, 4, 0) MovementLoopAddLocation(NPC, -30.65, -5.5, 21.06, 4, 0) MovementLoopAddLocation(NPC, -33.71, -5.5, 19.09, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -30.65, -5.5, 21.06, 4, 0) MovementLoopAddLocation(NPC, -30.91, -5.75, 25.88, 4, 0) MovementLoopAddLocation(NPC, -33.63, -6.85, 34.05, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -24.03, -7, 35.43, 4, 0) MovementLoopAddLocation(NPC, -18.41, -7, 38.09, 4, 0) MovementLoopAddLocation(NPC, -13.64, -7, 39.39, 4, 0) MovementLoopAddLocation(NPC, -11.27, -7, 41.4, 4, 0) MovementLoopAddLocation(NPC, -10.71, -7, 45.21, 4, 0) MovementLoopAddLocation(NPC, -13.63, -7, 47.25, 4, 0) MovementLoopAddLocation(NPC, -14.76, -7, 45.45, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -11.58, -7, 48.2, 4, 0) MovementLoopAddLocation(NPC, -9.91, -7, 51.69, 4, 0) MovementLoopAddLocation(NPC, -12.76, -7, 55.73, 4, 0) MovementLoopAddLocation(NPC, -16.97, -7, 56.33, 4, 0) MovementLoopAddLocation(NPC, -22.88, -7, 58.92, 4, 0) MovementLoopAddLocation(NPC, -24.02, -7, 61.12, 4, 0) MovementLoopAddLocation(NPC, -28.18, -7, 62.75, 4, 0) MovementLoopAddLocation(NPC, -29.06, -7, 61.56, 4, 0) MovementLoopAddLocation(NPC, -29.38, -7, 59.79, 4, 0) MovementLoopAddLocation(NPC, -28.38, -7, 57.87, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, 0) MovementLoopAddLocation(NPC, -30.35, -7, 59.91, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -29.55, -7, 61.91, 4, 0) MovementLoopAddLocation(NPC, -20.34, -7, 64.88, 4, 0) MovementLoopAddLocation(NPC, -17.59, -7, 65.26, 4, 0) MovementLoopAddLocation(NPC, -18.08, -7, 69.15, 4, 0) MovementLoopAddLocation(NPC, -17.91, -6.93, 72.4, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -17.3, -7, 64.56, 4, 0) MovementLoopAddLocation(NPC, -17.46, -7, 59.88, 4, 0) MovementLoopAddLocation(NPC, -9.84, -7, 54.89, 4, 0) MovementLoopAddLocation(NPC, -8.21, -7, 48.96, 4, 0) MovementLoopAddLocation(NPC, -9.13, -6.75, 39.29, 4, 0) MovementLoopAddLocation(NPC, -13.54, -6.75, 34.55, 4, 0) MovementLoopAddLocation(NPC, -18.78, -7, 30.85, 4, 0) MovementLoopAddLocation(NPC, -27.67, -5.75, 23.64, 4, 0) MovementLoopAddLocation(NPC, -29.86, -5.5, 21.13, 4, 0) MovementLoopAddLocation(NPC, -28.86, -5.25, 19.07, 4, 0) MovementLoopAddLocation(NPC, -25.94, -5, 15.84, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -28.71, -5, 15.16, 4, 0) MovementLoopAddLocation(NPC, -30.29, -5, 14.11, 4, 0) MovementLoopAddLocation(NPC, -32.15, -5, 10.84, 4, MakeRandomInt(8,16)) MovementLoopAddLocation(NPC, -31, -5.2, 14.66, 4, 0) MovementLoopAddLocation(NPC, -30.67, -5.25, 17.51, 4, 0) MovementLoopAddLocation(NPC, -30.78, -5.75, 22.15, 4, 0) elseif GetSpawnLocationID(NPC) == 133788262 then MovementLoopAddLocation(NPC, 77.61, 5.02, -34.97, 2, MakeRandomInt(8,12)) MovementLoopAddLocation(NPC, 77.61, 5.02, -34.97, 2, 0) MovementLoopAddLocation(NPC, 75.62, 5.02, -33.15, 2, 0) MovementLoopAddLocation(NPC, 73.74, 5.02, -31.86, 2, 0) MovementLoopAddLocation(NPC, 73.24, 5.02, -29.53, 2, 0) MovementLoopAddLocation(NPC, 76.61, 5.02, -23.29, 2, 0) MovementLoopAddLocation(NPC, 76.05, 5.02, -17.99, 2, 0) MovementLoopAddLocation(NPC, 75.48, 5.02, -14.69, 2, 0) MovementLoopAddLocation(NPC, 71.61, 5.02, -8.12, 2, MakeRandomInt(8,12)) MovementLoopAddLocation(NPC, 71.61, 5.02, -8.12, 2, 0) MovementLoopAddLocation(NPC, 73.15, 5.02, -9.02, 2, 0) MovementLoopAddLocation(NPC, 75.78, 5.02, -10.55, 2, 0) MovementLoopAddLocation(NPC, 77.07, 5.02, -11.3, 2, 0) MovementLoopAddLocation(NPC, 85.03, 5.02, -8.05, 2, MakeRandomInt(8,12)) MovementLoopAddLocation(NPC, 85.03, 5.02, -8.05, 2, 0) MovementLoopAddLocation(NPC, 82.12, 5.02, -7.35, 2, 0) MovementLoopAddLocation(NPC, 79.81, 5.02, -6.79, 2, 0) MovementLoopAddLocation(NPC, 77.59, 5.02, -7.67, 2, 0) MovementLoopAddLocation(NPC, 77.1, 5.02, -9.06, 2, 0) MovementLoopAddLocation(NPC, 76.29, 5.02, -10.25, 2, 0) MovementLoopAddLocation(NPC, 75.49, 5.02, -10.73, 2, 0) MovementLoopAddLocation(NPC, 74.51, 5.02, -13.86, 2, 0) MovementLoopAddLocation(NPC, 75.64, 5.02, -18.09, 2, 0) MovementLoopAddLocation(NPC, 79.27, 5.02, -20.23, 2, 0) MovementLoopAddLocation(NPC, 80.78, 5.02, -17.85, 2, MakeRandomInt(8,12)) MovementLoopAddLocation(NPC, 80.78, 5.02, -17.85, 2, 0) MovementLoopAddLocation(NPC, 83.36, 5.02, -15.76, 2, 0) MovementLoopAddLocation(NPC, 86.51, 5.02, -13.89, 2, MakeRandomInt(8,12)) MovementLoopAddLocation(NPC, 86.51, 5.02, -13.89, 2, 0) MovementLoopAddLocation(NPC, 82.21, 5.02, -15.64, 2, 0) MovementLoopAddLocation(NPC, 79.55, 5.02, -15.74, 2, 0) MovementLoopAddLocation(NPC, 78.12, 5.02, -18.21, 2, 0) MovementLoopAddLocation(NPC, 75.03, 5.02, -21.79, 2, 0) MovementLoopAddLocation(NPC, 73.58, 5.02, -27.67, 2, 0) MovementLoopAddLocation(NPC, 73.78, 5.03, -34.47, 2, MakeRandomInt(8,12)) MovementLoopAddLocation(NPC, 73.78, 5.03, -34.47, 2, 0) MovementLoopAddLocation(NPC, 87.81, 5.02, -30.69, 2, MakeRandomInt(8,12)) MovementLoopAddLocation(NPC, 87.81, 5.02, -30.69, 2, 0) MovementLoopAddLocation(NPC, 77.15, 5.02, -32.83, 2, 0) end end