function onUse(cid, item, frompos, item2, topos)
if item.actionid > 0 and item.actionid == item2.actionid then
match = 1
else
match = 0
end
if item2.itemid == 1210 then
if match == 1 then
doTransformItem(item2.uid,item2.itemid+1)
else
doPlayerSendCancel(cid,"The key does not match.")
end
elseif item2.itemid == 1211 then
if match == 1 then
doTransformItem(item2.uid,item2.itemid-1)
else
doPlayerSendCancel(cid,"The key does not match.")
end
else
return 0
end
return 1
end