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

30 lines
No EOL
739 B
Lua
Executable file

--[[
Script Name : SpawnScripts/Commonlands/ATorturedMaid.lua
Script Author : Premierio015
Script Date : 2021.06.01 09:06:00
Script Purpose :
:
--]]
local LionManeHelm = 5249
function spawn(NPC)
dmgMod = GetStr(NPC)/10
SetInfoStructUInt(NPC, "override_primary_weapon", 1)
SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(55 + dmgMod))
SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(95 + dmgMod))
end
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
end
function respawn(NPC)
spawn(NPC)
end
function death(NPC, Spawn)
if HasCompletedQuest(Spawn, LionManeHelm) then
RemoveLootItem(NPC, 3826)
end
end