• 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/premium/normal stage

xTremoxx

domasturb(cid, genital)
Joined
Aug 11, 2007
Messages
418
Reaction score
6
Location
Brazil
Hi i need stage for vip/premiums/normal/ player, i'm using this script, but don't work :/, this script is correct? i'm using tfs 0.3.2

PHP:
config = { 
    vipSystem = "YES",
    vipStorage = 54545
}
stages = {
    normal = {
        [1] = 11,
        [20] = 9,
        [60] = 7,
        [100] = 6,
        [280] = 7,
    },    
    premium = {
        [1] = 13,
        [20] = 10,
        [60] = 9,
        [100] = 7,
        [280] = 9,
    },
    vip = {
        [1] = 15,
        [20] = 13,
        [60] = 11,
        [100] = 10,
        [280] = 11,
    },
}
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

vip use storage value.
 
Back
Top