Try this:
function onMoveItem(cid, item, count, toContainer, fromContainer, fromPos, toPos)
if getPlayerVocation(cid) == 0 then
doRemoveItem(item.uid, 1)
return false
end
end
In TFS 1.2 i used this:
if item.itemid == 2223 then
item:remove(-1)
return...