###Exp Scroll##
---Eden Corporation---
-----Arkam-----
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
level = 50,
exp = 1000000,
storage = 5761
}
if getPlayerStorageValue(cid, configstorage) ~= 1 then
if getPlayerLevel(cid) >= config.level then
doPlayerAddExperience(cid, config.exp)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Gratulacje, dostales "..config.exp.." expa")
doPlayerSetStorageValue(cid, config.storage, 1)
doSendMagicEffect(getCreaturePosition(cid), 21)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Juz uzyles exp scrolla")
end
end
end