<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"/>
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.
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.
30 axe = 10x skillrate
40 axe = 8x skillrate
50 axe = 6x skillrate
100 axe = 1x skillrate
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
have you registered it at login.lua?dosnt work, no errors tho
have you registered it at login.lua?
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):Yea. Which tfs are you using?
local config = {
[1] = {level = 11, skillRatesDropTo = 50},
[2] = {level = 15, skillRatesDropTo = 1}
}
.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} }
Lucky i dont use tfs 1.0tfs 1.0 doesn't have doPlayerSetRate :/
http://otland.net/threads/tfs-1-0-0-vip-experience.205647/#post-1973570