• 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

Try this:

create a file called vip.lua in data/creaturescripts/scripts and put this:

PHP:
function onLogin

if getPlayerStorageValue(cid, 29000) then
doPlayerAddExp(cid, exp)

end
end

Where is 29000, edit to your vip storage.

open creaturescripts.xml and add tag:

<event type="login" name="VipExp" event="script" value="vip.lua"/>

I didn't test it, so, i don't know if it works!! (Y)
 
Try this:

create a file called vip.lua in data/creaturescripts/scripts and put this:

PHP:
function onLogin

if getPlayerStorageValue(cid, 29000) then
doPlayerAddExp(cid, exp)

end
end

Where is 29000, edit to your vip storage.

open creaturescripts.xml and add tag:



I didn't test it, so, i don't know if it works!! (Y)

It wont work.. it just add some exp when the player log in.
 
/\ lawl

Lua:
local config = {setExp = 2}

function onLogin(cid)
    if getPlayerStorageValue(cid, 29000) == 1 then
        setPlayerExtraExpRate(cid, config.setExp)
    end
  return TRUE
end
 
try this:

Create a file called vip.lua in data/creaturescripts/scripts and put this:

PHP:
function onlogin

if getplayerstoragevalue(cid, 29000) then
doplayeraddexp(cid, exp)

end
end

where is 29000, edit to your vip storage.

Open creaturescripts.xml and add tag:



I didn't test it, so, i don't know if it works!! (y)


haha
:s

fail
 
Here you are:
creaturescripts.xml:
Code:
<event type="advance" name="stages" script="stages.lua"/>

and creaturescripts/scripts/stages.lua:
Code:
config = { 
    vipSystem = "YES", -- Vip System Working?
    vipStorage = 64621, -- 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
 
Here you are:
creaturescripts.xml:
Code:
<event type="advance" name="stages" script="stages.lua"/>

and creaturescripts/scripts/stages.lua:
Code:
config = { 
    vipSystem = "YES", -- Vip System Working?
    vipStorage = 64621, -- 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've already tried this and it doesn't give exp.
Any solutions?
 
Back
Top