mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-29 17:19:20 +02:00
14 lines
286 B
Lua
14 lines
286 B
Lua
function onStepOut(creature, item, position, fromPosition)
|
|
local player = creature:getPlayer()
|
|
if player and player:isInGhostMode() then
|
|
return true
|
|
end
|
|
|
|
if item.itemid == 799 then
|
|
item:transform(6594)
|
|
else
|
|
item:transform(item.itemid + 15)
|
|
end
|
|
item:decay()
|
|
return true
|
|
end |