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

Target Training Monk

icekis

Member
Joined
Jan 18, 2018
Messages
91
Reaction score
5
I would like to know if it is possible when i attack a training monk gain only 50% of the skill, as training offline

I am using OTX 3.9 based on TFS 1.2
 
I would like to know if it is possible when i attack a training monk gain only 50% of the skill, as training offline

I am using OTX 3.9 based on TFS 1.2
In player event Player:onGainSkillTries you can do something like this:
Lua:
local target = self:getTarget()
if target and target:getName() == "Training Monk" then
    tries = math.ceil(tries / 2)
end
 
In player event Player:onGainSkillTries you can do something like this:
Lua:
local target = self:getTarget()
if target and target:getName() == "Training Monk" then
    tries = math.ceil(tries / 2)
end

You mean this?

Lua:
function Player:onGainSkillTries(skill, tries)
    local target = self:getTarget()
    if target and target:getName() == "Training Monk" then
        tries = math.ceil(tries / 2)
    end
   
    if APPLY_SKILL_MULTIPLIER == false then
        return tries
    end

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