local jaki_item = 2696
local gdzie_ma_teleportowac = {x=987,y=978,z=5}
local uniqueid_kratki = 1111
function onAddItem(moveItem, tileItem, pos, cid)
if getTileThingByPos(pos).uid ~= uniqueid_kratki then
return false
end
local getpos = getThingFromPos({x=pos.x,y=pos.y,z=pos.z,stackpos=STACKPOS_TOP_FIELD})
if moveItem.itemid == jaki_item then
doTeleportThing(cid, gdzie_ma_teleportowac)
doRemoveItem(moveItem.uid)
end
return true
end