--[[ Script Name : SpawnScripts/Caves/Slaverjaw.lua Script Author : Dorbin Script Date : 2022.5.6 : --]] function spawn(NPC) dmgMod = GetStr(NPC)/10 SetInfoStructUInt(NPC, "override_primary_weapon", 1) SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(30 + dmgMod)) SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(60 + dmgMod)) waypoints(NPC) end function respawn(NPC) spawn(NPC) end function waypoints(NPC) MovementLoopAddLocation(NPC, 36.57, 37.21, -126.94, 1, 0) MovementLoopAddLocation(NPC, 41.11, 37.87, -97.86, 1, 0) MovementLoopAddLocation(NPC, 47.03, 38.03, -84.46, 1, 0) MovementLoopAddLocation(NPC, 43.58, 37.89, -75.54, 1, 0) MovementLoopAddLocation(NPC, 37.81, 37.87, -70.18, 1, 0) MovementLoopAddLocation(NPC, 26.93, 37.87, -68.61, 1, 0) MovementLoopAddLocation(NPC, 18.27, 37.87, -66.03, 1, 0) MovementLoopAddLocation(NPC, 8.86, 37.87, -57.67, 1, 0) MovementLoopAddLocation(NPC, 5.85, 37.2, -48.15, 1, 0) MovementLoopAddLocation(NPC, 8.11, 37.55, -40.98, 1, 0) MovementLoopAddLocation(NPC, 7.58, 37.87, -34.39, 1, 0) MovementLoopAddLocation(NPC, 1.81, 37.87, -26.32, 1, 0) MovementLoopAddLocation(NPC, -7, 37.87, -24.71, 1, 0) MovementLoopAddLocation(NPC, -6.91, 37.87, -34.57, 1, 0) MovementLoopAddLocation(NPC, -16.26, 37.87, -39.14, 1, 0) MovementLoopAddLocation(NPC, -8.51, 38.49, -74.12, 1, 0) MovementLoopAddLocation(NPC, -3.8, 37.87, -77.85, 1, 0) MovementLoopAddLocation(NPC, 0.02, 37.87, -78.75, 1, 0) MovementLoopAddLocation(NPC, 4.24, 37.87, -77.68, 1, 0) MovementLoopAddLocation(NPC, 26.4, 37.67, -102.15, 1, 0) MovementLoopAddLocation(NPC, 25.7, 38.44, -115.87, 1, 0) MovementLoopAddLocation(NPC, 22.86, 38.7, -121.11, 1, 0) MovementLoopAddLocation(NPC, 14.23, 37.21, -133.53, 1, 0) MovementLoopAddLocation(NPC, 2.24, 36.52, -133.07, 1, 0) MovementLoopAddLocation(NPC, -4.72, 32.68, -132.85, 1, 0) MovementLoopAddLocation(NPC, -8.65, 30.99, -129.37, 1, 0) MovementLoopAddLocation(NPC, -9.94, 29.6, -126.64, 1, 0) MovementLoopAddLocation(NPC, -9.91, 25.43, -120.51, 1, 0) MovementLoopAddLocation(NPC, -6.81, 20.35, -115.5, 1, 0) MovementLoopAddLocation(NPC, -8.79, 28.61, -124.67, 1, 0) MovementLoopAddLocation(NPC, -7.23, 31.7, -129.95, 1, 0) MovementLoopAddLocation(NPC, 0.71, 35.86, -133.05, 1, 0) MovementLoopAddLocation(NPC, 8.66, 37.01, -132.83, 1, 0) MovementLoopAddLocation(NPC, 11.89, 37.21, -132.74, 1, 0) MovementLoopAddLocation(NPC, 15.38, 37.64, -128.3, 1, 0) MovementLoopAddLocation(NPC, 15.05, 39.08, -121.91, 1, 0) MovementLoopAddLocation(NPC, 15, 39.1, -121.68, 1, 0) MovementLoopAddLocation(NPC, 22.08, 37.87, -112.78, 1, 0) MovementLoopAddLocation(NPC, 26.6, 37.87, -106, 1, 0) MovementLoopAddLocation(NPC, 26.64, 38.01, -91.84, 1, 0) MovementLoopAddLocation(NPC, 43.04, 37.89, -77.05, 1, 0) MovementLoopAddLocation(NPC, 43.33, 37.88, -70.29, 1, 0) MovementLoopAddLocation(NPC, 48.27, 37.96, -68.55, 1, 0) MovementLoopAddLocation(NPC, 55.59, 38.14, -71.23, 1, 0) MovementLoopAddLocation(NPC, 63.39, 37.66, -75.95, 1, 0) MovementLoopAddLocation(NPC, 66.83, 37.24, -76.77, 1, 0) MovementLoopAddLocation(NPC, 71.4, 36.43, -77.16, 1, 0) MovementLoopAddLocation(NPC, 76.41, 36.03, -74.39, 1, 0) MovementLoopAddLocation(NPC, 78.73, 35.42, -71.24, 1, 0) MovementLoopAddLocation(NPC, 79.97, 34.52, -66.01, 1, 0) MovementLoopAddLocation(NPC, 78.54, 31.35, -59.81, 1, 0) MovementLoopAddLocation(NPC, 75.16, 29.52, -56, 1, 0) MovementLoopAddLocation(NPC, 71.31, 28.38, -55.15, 1, 0) MovementLoopAddLocation(NPC, 67.78, 27.91, -55.53, 1, 0) MovementLoopAddLocation(NPC, 64.7, 26.89, -57.24, 1, 0) MovementLoopAddLocation(NPC, 58.91, 24.43, -67.18, 1, 0) MovementLoopAddLocation(NPC, 57.48, 24.25, -70.93, 1, 0) MovementLoopAddLocation(NPC, 61.59, 20.96, -78.33, 1, 0) MovementLoopAddLocation(NPC, 63.5, 18.3, -84.83, 1, 0) MovementLoopAddLocation(NPC, 58.25, 12.38, -89.27, 1, 0) MovementLoopAddLocation(NPC, 51.7, 12.38, -88.61, 1, 0) MovementLoopAddLocation(NPC, 18.36, 12.58, -102.12, 1, 0) MovementLoopAddLocation(NPC, 16.33, 12.87, -107.1, 1, 0) MovementLoopAddLocation(NPC, 13.94, 13.32, -109.99, 1, 0) MovementLoopAddLocation(NPC, 4.13, 12.14, -107.8, 1, 0) MovementLoopAddLocation(NPC, 4.34, 12.1, -101.98, 1, 0) MovementLoopAddLocation(NPC, 3.05, 12.15, -99.36, 1, 0) MovementLoopAddLocation(NPC, -0.13, 12.06, -97.85, 1, 0) MovementLoopAddLocation(NPC, -11.76, 12.03, -95.61, 1, 0) MovementLoopAddLocation(NPC, -14.92, 12.07, -92.46, 1, 0) MovementLoopAddLocation(NPC, -17.02, 12.01, -85.38, 1, 0) MovementLoopAddLocation(NPC, -15.74, 12.08, -74.93, 1, 0) MovementLoopAddLocation(NPC, -11.13, 13.03, -70.26, 1, 0) MovementLoopAddLocation(NPC, 5.41, 13.84, -67.08, 1, 0) MovementLoopAddLocation(NPC, 21.2, 12.36, -64.56, 1, 0) MovementLoopAddLocation(NPC, 24.67, 12.38, -65.91, 1, 0) MovementLoopAddLocation(NPC, 24.63, 12.38, -68.44, 1, 0) MovementLoopAddLocation(NPC, 15.54, 12.38, -77.61, 1, 0) MovementLoopAddLocation(NPC, 10.73, 14.04, -91.38, 1, 0) MovementLoopAddLocation(NPC, 13.14, 13.35, -96.48, 1, 0) MovementLoopAddLocation(NPC, 17.57, 12.69, -102.3, 1, 0) MovementLoopAddLocation(NPC, 18.5, 12.45, -109.05, 1, 0) MovementLoopAddLocation(NPC, 19.08, 12.38, -114.32, 1, 0) MovementLoopAddLocation(NPC, 21.1, 13.43, -116.34, 1, 0) MovementLoopAddLocation(NPC, 22.05, 14.77, -118.93, 1, 0) MovementLoopAddLocation(NPC, 24.57, 16.65, -118.85, 1, 0) MovementLoopAddLocation(NPC, 28.82, 16.14, -117.68, 1, 0) MovementLoopAddLocation(NPC, 32.8, 12.5, -115.71, 1, 0) MovementLoopAddLocation(NPC, 43.11, 12.38, -112.51, 1, 0) MovementLoopAddLocation(NPC, 55.32, 13, -113.34, 1, 0) MovementLoopAddLocation(NPC, 59.87, 12.31, -104.4, 1, 0) MovementLoopAddLocation(NPC, 64.04, 14.57, -96.08, 1, 0) MovementLoopAddLocation(NPC, 65.46, 16.51, -89.44, 1, 0) MovementLoopAddLocation(NPC, 64.38, 18.79, -83.37, 1, 0) MovementLoopAddLocation(NPC, 63.31, 20.2, -79.68, 1, 0) MovementLoopAddLocation(NPC, 57.53, 23.82, -72.41, 1, 0) MovementLoopAddLocation(NPC, 58.85, 24.43, -68.02, 1, 0) MovementLoopAddLocation(NPC, 62.05, 25.56, -61.39, 1, 0) MovementLoopAddLocation(NPC, 65.8, 27.32, -56.49, 1, 0) MovementLoopAddLocation(NPC, 70.08, 28.2, -54.7, 1, 0) MovementLoopAddLocation(NPC, 73.24, 28.8, -55.07, 1, 0) MovementLoopAddLocation(NPC, 76.34, 30.21, -57.41, 1, 0) MovementLoopAddLocation(NPC, 80.15, 33.7, -63.74, 1, 0) MovementLoopAddLocation(NPC, 78.98, 35.45, -71.46, 1, 0) MovementLoopAddLocation(NPC, 73.3, 36.21, -75.84, 1, 0) MovementLoopAddLocation(NPC, 68.61, 36.94, -77.36, 1, 0) MovementLoopAddLocation(NPC, 62.77, 37.75, -75.18, 1, 0) MovementLoopAddLocation(NPC, 53.27, 38.02, -69.93, 1, 0) MovementLoopAddLocation(NPC, 47.28, 37.89, -67.34, 1, 0) MovementLoopAddLocation(NPC, 42.73, 37.88, -68.44, 1, 0) MovementLoopAddLocation(NPC, 36.78, 38.38, -80.85, 1, 0) MovementLoopAddLocation(NPC, 36.52, 38.13, -99.37, 1, 0) MovementLoopAddLocation(NPC, 39.25, 38.04, -102.13, 1, 0) MovementLoopAddLocation(NPC, 46.91, 37.87, -87.93, 1, 0) MovementLoopAddLocation(NPC, 44.47, 37.91, -77.36, 1, 0) MovementLoopAddLocation(NPC, 37.02, 37.87, -69.1, 1, 0) MovementLoopAddLocation(NPC, 27.3, 37.87, -68.59, 1, 0) MovementLoopAddLocation(NPC, 17.78, 37.87, -65.07, 1, 0) MovementLoopAddLocation(NPC, 8.14, 37.87, -56.88, 1, 0) MovementLoopAddLocation(NPC, 6.24, 37.19, -45.11, 1, 0) MovementLoopAddLocation(NPC, 8.46, 37.48, -41.06, 1, 0) MovementLoopAddLocation(NPC, 7.6, 37.87, -33.86, 1, 0) MovementLoopAddLocation(NPC, -5.93, 37.87, -24.27, 1, 0) MovementLoopAddLocation(NPC, -6.75, 37.87, -24.94, 1, 0) MovementLoopAddLocation(NPC, -8.01, 37.88, -30.01, 1, 0) MovementLoopAddLocation(NPC, -7.06, 37.87, -33.12, 1, 0) MovementLoopAddLocation(NPC, -15.65, 37.87, -38.99, 1, 0) MovementLoopAddLocation(NPC, -16.91, 37.87, -44.35, 1, 0) MovementLoopAddLocation(NPC, -9.16, 38.46, -73.37, 1, 0) MovementLoopAddLocation(NPC, -4.32, 37.87, -77.37, 1, 0) MovementLoopAddLocation(NPC, 5.1, 37.87, -78.4, 1, 0) MovementLoopAddLocation(NPC, 13.73, 37.87, -84.36, 1, 0) MovementLoopAddLocation(NPC, 25.74, 37.61, -102.12, 1, 0) MovementLoopAddLocation(NPC, 26.36, 37.87, -109.41, 1, 0) MovementLoopAddLocation(NPC, 25.21, 38.53, -116.34, 1, 0) MovementLoopAddLocation(NPC, 21.49, 38.64, -122.25, 1, 0) MovementLoopAddLocation(NPC, 19.53, 37.21, -128.32, 1, 0) MovementLoopAddLocation(NPC, 10.06, 37.16, -133.28, 1, 0) MovementLoopAddLocation(NPC, 3.25, 36.58, -132.68, 1, 0, "Action") MovementLoopAddLocation(NPC, 3.25, 36.58, -132.68, 1, 20, "Action") end function Action(NPC) Despawn(NPC) end