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
vip use storage value.
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.