local config = {
level = 50,
skill = SKILL__LEVEL,
item = 2160,
count = 5,
storage = 1337
}
function onAdvance(cid, skill, oldlevel, newlevel)
if(skill == config.skill and newlevel >= config.level and getPlayerStorageValue(cid, config.storage) < 1) then
setPlayerStorageValue(cid, config.storage, 1)
doPlayerAddItem(cid, config.item, config.count)
end
return true
end