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

TFS 0.X Skills in training monk 2x more slower

newby

Active Member
Joined
Jun 11, 2016
Messages
183
Reaction score
43
I would like to use training monk without kill the old train methods like train with your friend using summoned monks.
So some advance like skills grow 2x out of training monks would be amazing
How to do it?

It would be necessary sources changes?

Or it's possible to do on LUA like on 1.0:

By using the:
Code:
function Player:onGainSkillTries(skill, tries)
    if APPLY_SKILL_MULTIPLIER == false then
        return tries
    end

    -- Training Room Tile
    local tile = self:getTile()
    local ground = tile and tile:getGround()
    if ground and ground.actionid == 9000 then -- change 9000 to whatever action id you set the tiles to
        tries = math.floor(tries * 2) -- example: 2x skill rate
    end

    if skill == SKILL_MAGLEVEL then
        return tries * configManager.getNumber(configKeys.RATE_MAGIC)
    end
    return tries * configManager.getNumber(configKeys.RATE_SKILL)
end

Changing 2x multiplier to 0.5 instead.
Then in map editor the tile the player stands on when training just give it the action id of whatever you put on line 9.

Where is the function who works like onGainSkillTries 1.0 on 0.4
 
Back
Top