mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-02 18:49:21 +02:00
12 lines
260 B
Lua
12 lines
260 B
Lua
function onStepIn(creature, item, position, fromPosition)
|
|
local player = creature:getPlayer()
|
|
if not player then
|
|
return true
|
|
end
|
|
|
|
position.z = position.z + 1
|
|
player:teleportTo(position)
|
|
position:sendMagicEffect(CONST_ME_EXPLOSIONAREA)
|
|
return true
|
|
end
|