• 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!

skillstage

Elaney

Member
Joined
Jan 1, 2009
Messages
1,561
Reaction score
12
Location
Sweden
Would like to request a skillstage like expstages but for skills. The higher the skill the slower it gets. Should work with mlvl aswell.

Thanks in advanced
 
It is in data/XML/vocations.xml. Exactly that line:
Code:
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>

Example:
At sword fighting 10, you need 50 hits to get sword fighting of 11. - this is a base setting of the Tibia client.
With sword="2.0" to advance into 12 you need 2.0 times more hits.
Code:
10 to 11 - 50 hits
11 to 12 - 100 hits
12 to 13 - 200 hits
13 to 14 - 400 hits
14 to 15 - 800 hits
etc.

The same formula is for magic level.
 
It is in data/XML/vocations.xml. Exactly that line:
Code:
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>

Example:
At sword fighting 10, you need 50 hits to get sword fighting of 11. - this is a base setting of the Tibia client.
With sword="2.0" to advance into 12 you need 2.0 times more hits.
Code:
10 to 11 - 50 hits
11 to 12 - 100 hits
12 to 13 - 200 hits
13 to 14 - 400 hits
14 to 15 - 800 hits
etc.

The same formula is for magic level.

well i know about that :p kinda not what im looking for tho. Im looking for like this.

Code:
30 axe = 10x skillrate
40 axe = 8x skillrate
50 axe = 6x skillrate
100 axe = 1x skillrate

and same with the other skills.
 
Code:
local config = {
    [1] = {level = 30, skillRatesDropTo = 10},
    [2] = {level = 40, skillRatesDropTo = 8},
    [3] = {level = 50, skillRatesDropTo = 6},
    [4] = {level = 100, skillRatesDropTo = 1}
}

local skills = {SKILL_AXE, SKILL_CLUB, SKILL_DISTANCE, SKILL_FISHING, SKILL_FIST, SKILL_SHIELD, SKILL_SWORD, SKILL__MAGLEVEL}

function onAdvance(cid, skill, oldLevel, newLevel)
    if isInArray(skills, skill) == true then
        for i = 1, #config do
            if newLevel == config.level then
                doPlayerSetRate(cid, skill, config.skillRatesDropTo)
                break
            end
        end
    end
    return true
end
 
Code:
local config = {
    [1] = {level = 30, skillRatesDropTo = 10},
    [2] = {level = 40, skillRatesDropTo = 8},
    [3] = {level = 50, skillRatesDropTo = 6},
    [4] = {level = 100, skillRatesDropTo = 1}
}

local skills = {SKILL_AXE, SKILL_CLUB, SKILL_DISTANCE, SKILL_FISHING, SKILL_FIST, SKILL_SHIELD, SKILL_SWORD, SKILL__MAGLEVEL}

function onAdvance(cid, skill, oldLevel, newLevel)
    if isInArray(skills, skill) == true then
        for i = 1, #config do
            if newLevel == config.level then
                doPlayerSetRate(cid, skill, config.skillRatesDropTo)
                break
            end
        end
    end
    return true
end

dosnt work, no errors tho
 
Yea. Which tfs are you using?
tfs 1.0 but I have not tested it yet xD I'm setting up trainers so I can test and post here the result, btw I'll be using this in order to get the results (or not):

PHP:
local config = {
    [1] = {level = 11, skillRatesDropTo = 50},
    [2] = {level = 15, skillRatesDropTo = 1}
}
 
Back
Top