local stonePos = {x=100, y=100, z=7, stackpos=1}
local getThing = getThingFromPos(stonePos)
local stoneId = xxxx -- put your stone id here
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 and getThing.itemid == stoneId then
doRemoveItem(getThing.uid, 1)
doTransformItem(item.uid, item.itemid+1)
elseif item.itemid == 1946 and getThing.itemid ~= stoneId then
doCreateItem(stoneId, 1, stonePos)
else
return FALSE
end
return TRUE
end