function onUse(cid, item, fromPosition, itemEx, toPosition)
local upgmaterial = 2487
local upgresult = 2466
if itemEx.itemid == upgmaterial then
if getPlayerItemCount(cid, upgmaterial) > 1 then
doTransformItem(itemEx.uid, upgresult)
doPlayerRemoveItem(cid, upgmaterial, 2)...