eq2emu-content/SpawnScripts/Commonlands/LightbringerWisp.lua
2025-02-17 20:23:31 +00:00

25 lines
No EOL
698 B
Lua
Executable file

--[[
Script Name : SpawnScripts/Commonlands/LightbringerWisp.lua
Script Author : LordPazuzu
Script Date : 1/22/2024
Script Purpose :
:
--]]
require "SpawnScripts/Generic/NPCModule"
function spawn(NPC, Spawn)
Named(NPC)
dmgMod = GetStr(NPC)/10
SetInfoStructUInt(NPC, "override_primary_weapon", 1)
SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(45 + dmgMod))
SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(85 + dmgMod))
RandomMovement(NPC, Spawn, 25, -25, 2, 8, 15)
end
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
end
function respawn(NPC)
spawn(NPC)
end