mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-11-29 07:46:52 +01:00
Full Distribution
This commit is contained in:
8
data/movements/scripts/misc/open_trap.lua
Normal file
8
data/movements/scripts/misc/open_trap.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
function onRemoveItem(item, tileitem, position)
|
||||
if item:getPosition():getDistance(position) > 0 then
|
||||
item:transform(3481, 1)
|
||||
item:decay()
|
||||
item:getPosition():sendMagicEffect(3)
|
||||
end
|
||||
return true
|
||||
end
|
||||
Reference in New Issue
Block a user