local itemID = 7723 ---- Item ID you use.
local xp = 10000000 ---- How much exp it will give.
local level = 200 -------From this level and less he can use this item.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerLevel(cid) <= level then
doPlayerAddExp(cid, xp)
doCreatureSay(cid, words, 1)
doRemoveItem(cid, item.uid, 1)
doCreatureSay(cid, "CONGRATULATIONS! You gained 10,000,000 EXP from the EXP SCROLL!. ", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "Sorry but you are to high lvl to use this scroll")
end
return 1
end