local storageKey = 30002
local transformations = {
[2693] = {id = 2689},
[6277] = {id = 2687, count = 12},
}
function onAddItem(moveitem, tileitem, position)
local transformation = transformations[moveitem:getId()]
if transformation then
moveitem:transform(transformation.id, transformation.count or 1)
position:sendMagicEffect(CONST_ME_HITBYFIRE)
player:setStorageValue(storageKey, 1)
end
return true
end