local config = {
manaCost = 0,
soulCost = 0,
chance = 7
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
chance = math.random(config.chance)
if chance == 1 then
if(item.itemid == 2147 and itemEx.itemid == 2342) then
doTransformItem(itemEx.uid, 2343)...