• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ DMG Too High TFS 1.3 10.98

MopdaAll

New Member
Joined
May 29, 2020
Messages
26
Reaction score
2
Can anyone help me? My characters start with 40ML (because of set) and they start off at lvl 8 dealing damage at around 20~ dmg and they dont even have level 1 real ml yet and how are they now at lvl 25 dealing 50+ damage? I didn't make my weapon damage base off of level.
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLSTONE)

function onGetFormulaValues(cid, maglevel)
    local min = maglevel * 2.2
    local max = maglevel * 4.2
    return -min, -max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
    return doCombat(cid, combat, var)
end
 
Solution
Just decrease the formula damage a little maybe?
LUA:
    local min = maglevel * 1.8
    local max = maglevel * 3.1
Or change it so it depends on magic level/level instead of only magic level
LUA:
function onGetFormulaValues(player, level, maglevel)
    local min = (level / 2) + (maglevel * 1.3) + 12
    local max = (level / 5) + (maglevel * 4.4) + 18
    return -min, -max
end
Just decrease the formula damage a little maybe?
LUA:
    local min = maglevel * 1.8
    local max = maglevel * 3.1
Or change it so it depends on magic level/level instead of only magic level
LUA:
function onGetFormulaValues(player, level, maglevel)
    local min = (level / 2) + (maglevel * 1.3) + 12
    local max = (level / 5) + (maglevel * 4.4) + 18
    return -min, -max
end
 
Solution
Can anyone help me? My characters start with 40ML (because of set) and they start off at lvl 8 dealing damage at around 20~ dmg and they dont even have level 1 real ml yet and how are they now at lvl 25 dealing 50+ damage? I didn't make my weapon damage base off of level.
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLSTONE)

function onGetFormulaValues(cid, maglevel)
    local min = maglevel * 2.2
    local max = maglevel * 4.2
    return -min, -max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
    return doCombat(cid, combat, var)
end
go to combat.cpp and decrease this function, will affect all spells.
C++:
int32_t levelFormula = player->getLevel() * 2 + player->getMagicLevel() * 3;

maybe something like this, decrease magic level:
C++:
int32_t levelFormula = player->getLevel() * 2 + player->getMagicLevel() * 2;
 
Just decrease the formula damage a little maybe?
LUA:
    local min = maglevel * 1.8
    local max = maglevel * 3.1
Or change it so it depends on magic level/level instead of only magic level
LUA:
function onGetFormulaValues(player, level, maglevel)
    local min = (level / 2) + (maglevel * 1.3) + 12
    local max = (level / 5) + (maglevel * 4.4) + 18
    return -min, -max
end
thanks it worked

go to combat.cpp and decrease this function, will affect all spells.
C++:
int32_t levelFormula = player->getLevel() * 2 + player->getMagicLevel() * 3;

maybe something like this, decrease magic level:
C++:
int32_t levelFormula = player->getLevel() * 2 + player->getMagicLevel() * 2;
i don't want to recompile :(
 
Back
Top