------Creditos a BoMBi------
function onUse(cid, item, frompos, item2, topos)
if getPlayerMagLevel(cid) >= 1 then
if item2.itemid == cid then
doSendMagicEffect(topos,12)
doPlayerSay(item2.uid,"Aaaaah...Coca fresca!",1)
doPlayerAddMana(item2.uid,100)
doPlayerAddHealth(cid, -100)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
return 0
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Eres muy joven para tomar cocaina,sube a mlvl 1!")
end
return 1
end