local t = {
levels = 500,
storage_id = 1337
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (getPlayerStorageValue(cid, t.storage_id) >= 3) then
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can only use this scroll 2x times!")
end
else
doPlayerAddLevel(cid ,t.levels)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, t.storage_id) + 1)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_BLUE)
end
return true
end