local itemID = your item id
local xp = 16566945600
local level = 8
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerLevel(cid) <= level then
doPlayerAddExp(cid, xp)
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "You need to be level 8 to use this item!")
end
return true
end