config = {
vipSystem = "YES", -- Vip System Working?
vipStorage = 11551, -- STORAGE VALUE of Vips
}
stages = {
normal = {
[1] = 100,
[20] = 80,
[60] = 60,
[100] = 40,
[200] = 20,
},
premium = {
[1] = 200,
[20] = 160,
[60] = 120,
[100] = 80,
[200] = 40,
},
vip = {
[1] = 250,
[20] = 190,
[60] = 180,
[100] = 120,
[200] = 60,
},
}
function onAdvance(cid, skill, oldlevel, newlevel)
if isPremium(cid) then
stage = stages.premium
elseif getPlayerStorageValue(cid, config.vipStorage) > 0 and string.upper(config.vipSystem) == "YES" then
stage = stages.vip
else
stage = stages.normal
end
if stage[newlevel] then
setPlayerExtraExpRate(cid, stage[newlevel])
end
end