proudera
New Member
- Joined
- Jun 11, 2017
- Messages
- 33
- Reaction score
- 0
I would like to increase magic damage in tfs 1.2, how should I do this? I'm not good with formulas.
Should I add * 2 at the end of the min max formula of my avalanche rune to increase the damage by 2?
Like this?
Should I do like this?
Should I add * 2 at the end of the min max formula of my avalanche rune to increase the damage by 2?
Like this?
Should I do like this?
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
combat:setArea(createCombatArea(AREA_CIRCLE3X3))
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 1.2) + 7
local max = (level / 5) + (maglevel * 2.85) + 16
return -min * 2, -max * 2
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
Last edited: