local config = {
levelReach = 250,
points = 120
}
function onAdvance(cid, skill, oldLevel, newLevel)
if(skill == SKILL__LEVEL and newLevel >= config.levelReach and getPlayerStorageValue(cid, 58558) == -1) then
setPlayerStorageValue(cid, 58558, 1)
db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points`+"..config.points.." WHERE `id` = "..getPlayerAccountId(cid)..";")
doPlayerSendTextMessage(cid,21,'Congratulations! You have reached level 100! As a special treat from Astoria OTS administrators, you have received 10 premium points.')
end
return TRUE
end