I tried to get player level into the function but always returns an error
function onUse(cid, item, frompos, item2, topos)
doPlayerAddExp(cid, SKILL_LEVEL * 10000)
doCreatureSay(cid, "You open the book and start to read...suddenly you feel smarter.", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
return true
end