lucas051191
Azore
Hello friends,
I have an tfs 1.3 with reset system, when the player reaches level 400, it uses a talkaction "/ reset" to return to level 8. Talkaction executes a db.query that changes only level, experience, x, Y, z, and registers a storage to count the resets.
the skills, mana, health not resets.
But when the player returns to level 8, the attack damage is low again, I would like to know how and where to change in tfs 1.3 to calculate the damage by resets and not by level, or ignore player level.
Do I need to edit the sources? or script.lua?
in lua functions adapt
I want, if more resets/skills, more damage , without player level
please help me
thank you
I have an tfs 1.3 with reset system, when the player reaches level 400, it uses a talkaction "/ reset" to return to level 8. Talkaction executes a db.query that changes only level, experience, x, Y, z, and registers a storage to count the resets.
the skills, mana, health not resets.
But when the player returns to level 8, the attack damage is low again, I would like to know how and where to change in tfs 1.3 to calculate the damage by resets and not by level, or ignore player level.
Do I need to edit the sources? or script.lua?
in lua functions adapt
Code:
https://otland.net/threads/formula-value.243988/page-2#post-2370750
https://otland.net/threads/tfs-1-0-critical-hit-permanent.212908/#post-2139419
LUA:
function onGetFormulaValues(player, skill, attack, parmeter, factor)
local skillTotal = skill * attack
local levelTotal = player:getLevel() / 5
local maglevelTotal = player:getMagicLevel()
damage_base = (skillTotal+levelTotal+maglevelTotal)
local min = -(damage_base*0.9)
local max = -(damage_base*1.1)
return min, max
end
I want, if more resets/skills, more damage , without player level
please help me
thank you
Last edited: