function onSay(cid, words, param)
local dir = getCreatureLookDirection(cid)
pos = getCreaturePosition(cid)
if dir == NORTH then
pos = {x=pos.x, y=pos.y-1, z=pos.z, stackpos=1}
elseif dir == EAST then
pos = {x=pos.x+1, y=pos.y, z=pos.z, stackpos=1}
elseif dir == SOUTH then
pos = {x=pos.x, y=pos.y+1, z=pos.z, stackpos=1}
else
pos = {x=pos.x-1, y=pos.y, z=pos.z, stackpos=1}
end
local getpos = getThingFromPos(pos)
if getpos.itemid == 6253 then
doTransformItem(getpos.uid, 6254)
else
doPlayerSendCancel(cid, 'Nie ma czego otworzyc')
end
return true
end