mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
13 lines
285 B
Lua
Executable file
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
|