function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.actionid == 8324) then
local szansza = math.random(1, 10)
if(szansa == 1) then
doPlayerAddItem(cid, 2487, 1)
elseif(szansa == 2) then
doPlayerAddItem(cid, 2488, 1)
elseif(szansa == 3) then
doPlayerAddItem(cid, 2491, 1)
elseif(szansa == 4) then
doPlayerAddItem(cid, 2519, 1)
elseif(szansa == 5) then
local szansacc = math.random(1, 6)
doPlayerAddItem(cid, 2160, szansacc)
end
doSendAnimatedText(toPosition, "Stuk!", 1)
elseif(itemEx.uid <= 65535 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
doTransformItem(itemEx.uid, 392)
doDecayItem(itemEx.uid)
doSendMagicEffect(toPosition, CONST_ME_POFF)
return TRUE
end
return FALSE
end