2019-01-16 17:16:38 -05:00

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