eq2emu-content/RegionScripts/neriak/death.lua
2024-10-26 11:37:28 +00:00

13 lines
285 B
Lua
Executable file

function EnterRegion(Zone, Spawn, RegionType)
-- RegionType 2 is 'lava' or 'death' regions, RegionType 1 is water
local invul = IsInvulnerable(Spawn)
if invul == true then
return 0
end
if RegionType == 2 then
KillSpawn(Spawn, null, 1)
end
end