• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

VIP exp rate

Ok, well...
Use this script:
Change:
Code:
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

I think this work ; ]
 
I dont need

PHP:
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


??
 
Ech man u need function setPlayerExtraExpRate to work VIP extra rate. If you don't have this function, this script don't work. U can use somes engine who have this function or u can add setPlayerExtraExpRate if you know how to compile engine.
 
Back
Top