local t = {
storage = 10000,
exp = 100000
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, t.storage) < 1 then
doPlayerAddExp(cid, 2500000)
doSendAnimatedText(getThingPos(cid), t.exp, TEXTCOLOR_WHITE)
doCreatureSay(cid, "You gained " .. t.exp .. " experience!", TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
setPlayerStorageValue(cid, t.storage, 1)
doRemoveItem(item.uid, 1)
else
doCreatureSay(cid, "You can only use 1 scroll per character.", TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
end
return true
end