eq2emu-content/SpawnScripts/Antonica/RenuxtheUndying.lua
2024-10-26 11:37:28 +00:00

25 lines
No EOL
717 B
Lua
Executable file

--[[
Script Name : SpawnScripts/Antonica/RenuxtheUndying.lua
Script Author : LordPazuzu
Script Date : 2022.07.04 04:07:50
Script Purpose :
:
--]]
require "SpawnScripts/Generic/NPCModule"
function spawn(NPC, Spawn)
dmgMod = GetStr(NPC)/10
Named(NPC)
SetInfoStructUInt(NPC, "override_primary_weapon", 1)
SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(24 + dmgMod))
SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(60 + dmgMod))
RandomMovement(NPC, Spawn, 12, -12, 2, 8, 15)
end
function respawn(NPC, Spawn)
spawn(NPC)
end
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
end