--[[ Script Name : SpawnScripts/Commonlands/KizdeanGix.lua Script Author : LordPazuzu Script Date : 2024.02.18 04:02:16 Script Purpose : : --]] require "SpawnScripts/Generic/NPCModule" 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)) AddTimer(NPC, 6000, "waypoints") end function hailed(NPC, Spawn) FaceTarget(NPC, Spawn) end function respawn(NPC) spawn(NPC) end function waypoints(NPC) MovementLoopAddLocation(NPC, 1097.15, -39.09, -365.92, 2, 0) MovementLoopAddLocation(NPC, 1099.76, -38.75, -319.8, 2, 0) MovementLoopAddLocation(NPC, 1102.63, -38.65, -300.75, 2, 0) MovementLoopAddLocation(NPC, 1107.13, -39.01, -280.9, 2, 0) MovementLoopAddLocation(NPC, 1113.07, -39.93, -266.85, 2, 0) MovementLoopAddLocation(NPC, 1119.85, -40.44, -256.74, 2, 0) MovementLoopAddLocation(NPC, 1136.4, -41.85, -242.27, 2, 0) MovementLoopAddLocation(NPC, 1143.52, -42.19, -230.14, 2, 0) MovementLoopAddLocation(NPC, 1148.07, -42.37, -211.93, 2, 0) MovementLoopAddLocation(NPC, 1145.61, -42.37, -194.23, 2, 0) MovementLoopAddLocation(NPC, 1138.69, -42.41, -175.32, 2, 0) MovementLoopAddLocation(NPC, 1127.67, -42.42, -155.45, 2, 0) MovementLoopAddLocation(NPC, 1114.67, -42.66, -134.83, 2, 0) MovementLoopAddLocation(NPC, 1085.05, -44.97, -79.89, 2, 0) MovementLoopAddLocation(NPC, 1078.44, -45.1, -70.18, 2, 0) MovementLoopAddLocation(NPC, 1069.05, -45.16, -59.48, 2, 0) MovementLoopAddLocation(NPC, 1062.95, -45.15, -54.51, 2, 0) MovementLoopAddLocation(NPC, 1054.21, -45.09, -48.24, 2, 0) MovementLoopAddLocation(NPC, 1026.77, -44.87, -31.35, 2, 0) MovementLoopAddLocation(NPC, 1008.64, -44.97, -18.77, 2, 0) MovementLoopAddLocation(NPC, 981.84, -44.9, 3.4, 2, 0) MovementLoopAddLocation(NPC, 971.18, -44.97, 14.53, 2, 0) MovementLoopAddLocation(NPC, 963.24, -45.23, 25.29, 2, 0) MovementLoopAddLocation(NPC, 955.27, -45.9, 42.18, 2, 0) MovementLoopAddLocation(NPC, 950.99, -46.18, 50.52, 2, 0) MovementLoopAddLocation(NPC, 942, -46.57, 63.5, 2, 0) MovementLoopAddLocation(NPC, 928.65, -46.66, 75.44, 2, 0) MovementLoopAddLocation(NPC, 915.41, -46.62, 83.04, 2, 0) MovementLoopAddLocation(NPC, 890.2, -46.42, 90.98, 2, 0) MovementLoopAddLocation(NPC, 880.58, -46.24, 95.18, 2, 0) MovementLoopAddLocation(NPC, 843.29, -45.33, 124.17, 2, 0) MovementLoopAddLocation(NPC, 816.5, -43.91, 143.08, 2, 0) MovementLoopAddLocation(NPC, 769.93, -45.04, 182.28, 2, 0) MovementLoopAddLocation(NPC, 761.9, -45.09, 188.72, 2, 0) MovementLoopAddLocation(NPC, 749.77, -45.31, 196.83, 2, 0) MovementLoopAddLocation(NPC, 660.6, -47.57, 247.61, 2, 0) MovementLoopAddLocation(NPC, 655.74, -47.76, 249.78, 2, 0) MovementLoopAddLocation(NPC, 633.82, -47.81, 257.35, 2, 0) MovementLoopAddLocation(NPC, 623.04, -47.61, 259.92, 2, 0) MovementLoopAddLocation(NPC, 615.78, -47.48, 261.6, 2, 0) MovementLoopAddLocation(NPC, 601.93, -47.38, 262.82, 2, 0) MovementLoopAddLocation(NPC, 601.93, -47.38, 262.82, 2, 0) MovementLoopAddLocation(NPC, 615.78, -47.48, 261.6, 2, 0) MovementLoopAddLocation(NPC, 623.04, -47.61, 259.92, 2, 0) MovementLoopAddLocation(NPC, 633.82, -47.81, 257.35, 2, 0) MovementLoopAddLocation(NPC, 655.74, -47.76, 249.78, 2, 0) MovementLoopAddLocation(NPC, 660.6, -47.57, 247.61, 2, 0) MovementLoopAddLocation(NPC, 749.77, -45.31, 196.83, 2, 0) MovementLoopAddLocation(NPC, 761.9, -45.09, 188.72, 2, 0) MovementLoopAddLocation(NPC, 769.93, -45.04, 182.28, 2, 0) MovementLoopAddLocation(NPC, 816.5, -43.91, 143.08, 2, 0) MovementLoopAddLocation(NPC, 843.29, -45.33, 124.17, 2, 0) MovementLoopAddLocation(NPC, 880.58, -46.24, 95.18, 2, 0) MovementLoopAddLocation(NPC, 890.2, -46.42, 90.98, 2, 0) MovementLoopAddLocation(NPC, 915.41, -46.62, 83.04, 2, 0) MovementLoopAddLocation(NPC, 928.65, -46.66, 75.44, 2, 0) MovementLoopAddLocation(NPC, 942, -46.57, 63.5, 2, 0) MovementLoopAddLocation(NPC, 950.99, -46.18, 50.52, 2, 0) MovementLoopAddLocation(NPC, 955.27, -45.9, 42.18, 2, 0) MovementLoopAddLocation(NPC, 963.24, -45.23, 25.29, 2, 0) MovementLoopAddLocation(NPC, 971.18, -44.97, 14.53, 2, 0) MovementLoopAddLocation(NPC, 981.84, -44.9, 3.4, 2, 0) MovementLoopAddLocation(NPC, 1008.64, -44.97, -18.77, 2, 0) MovementLoopAddLocation(NPC, 1026.77, -44.87, -31.35, 2, 0) MovementLoopAddLocation(NPC, 1054.21, -45.09, -48.24, 2, 0) MovementLoopAddLocation(NPC, 1062.95, -45.15, -54.51, 2, 0) MovementLoopAddLocation(NPC, 1069.05, -45.16, -59.48, 2, 0) MovementLoopAddLocation(NPC, 1078.44, -45.1, -70.18, 2, 0) MovementLoopAddLocation(NPC, 1085.05, -44.97, -79.89, 2, 0) MovementLoopAddLocation(NPC, 1114.67, -42.66, -134.83, 2, 0) MovementLoopAddLocation(NPC, 1127.67, -42.42, -155.45, 2, 0) MovementLoopAddLocation(NPC, 1138.69, -42.41, -175.32, 2, 0) MovementLoopAddLocation(NPC, 1145.61, -42.37, -194.23, 2, 0) MovementLoopAddLocation(NPC, 1148.07, -42.37, -211.93, 2, 0) MovementLoopAddLocation(NPC, 1143.52, -42.19, -230.14, 2, 0) MovementLoopAddLocation(NPC, 1136.4, -41.85, -242.27, 2, 0) MovementLoopAddLocation(NPC, 1119.85, -40.44, -256.74, 2, 0) MovementLoopAddLocation(NPC, 1113.07, -39.93, -266.85, 2, 0) MovementLoopAddLocation(NPC, 1107.13, -39.01, -280.9, 2, 0) MovementLoopAddLocation(NPC, 1102.63, -38.65, -300.75, 2, 0) MovementLoopAddLocation(NPC, 1099.76, -38.75, -319.8, 2, 0) MovementLoopAddLocation(NPC, 1097.15, -39.09, -365.92, 2, 0) end