It's exp stages script for premium players, vip players or normal players. For working you must set empty exp stages in stages.xml
and setup in lua script.
creaturescripts.xml:
and creaturescripts/scripts/stages.lua:
When player advance lvl - stage auto changed.
and setup in lua script.
creaturescripts.xml:
PHP:
<event type="advance" name="stages" script="stages.lua"/>
and creaturescripts/scripts/stages.lua:
PHP:
config = {
vipSystem = "YES", -- Vip System Working?
vipStorage = 64621, -- STORAGE VALUE of Vip's
}
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
When player advance lvl - stage auto changed.
Last edited: