local itemID = [COLOR="Red"]2345[/COLOR]
local mls = [COLOR="Blue"]3 ---- How much mlvls it will give[/COLOR].
local maglevel =[COLOR="Blue"] 40 -------From this maglevel and less he can [/COLOR]use this item.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerMagLevel(cid) <= maglevel then
doCreatureSay(cid, "You just used an Magic Level Scroll!!!" ,19)
doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid) + mls))
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "Sorry but you are to high maglvl to use this scroll")
end
return 1
end