mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 17:49:20 +02:00
12 lines
518 B
Lua
12 lines
518 B
Lua
function onStepIn(creature, item, position, fromPosition)
|
|
if creature:isPlayer() and creature:getPlayer():getLevel() < 2 then
|
|
doRelocate(item:getPosition(),{x = item:getPosition().x - 1, y = 32176, z = 07})
|
|
Game.sendMagicEffect({x = item:getPosition().x - 1, y = 32176, z = 07}, 13)
|
|
end
|
|
end
|
|
|
|
function onAddItem(item, tileitem, position)
|
|
doRelocate(tileitem:getPosition(),{x = tileitem:getPosition().x - 1, y = 32176, z = 07})
|
|
Game.sendMagicEffect({x = tileitem:getPosition().x - 1, y = 32176, z = 07}, 13)
|
|
end
|