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

Healing over time spell tfs 1.2

Dominicana

New Member
Joined
Apr 16, 2018
Messages
7
Reaction score
0
Hello, im looking for healing over time spell, with healing values same as exura
lets say about 4 ticks every 1 second that heals
Can somebody teach me how to do it?

Thanks
 
Ok, but how to change its healing to scale with magic level?
I'm not sure if it will work 'cause I'm an amateur scripter, but you should try this:

Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

function onGetFormulaValues(player, level, magicLevel)
    local formula = (level / 5) + (magicLevel * 1.4) + 8
    return formula
end

local condition = Condition(CONDITION_REGENERATION)
condition:setParameter(CONDITION_PARAM_TICKS, 1 * 60 * 1000)
condition:setParameter(CONDITION_PARAM_HEALTHGAIN, "onGetFormulaValues")
condition:setParameter(CONDITION_PARAM_HEALTHTICKS, 3000)
condition:setParameter(CONDITION_PARAM_BUFF_SPELL, true)
combat:addCondition(condition)

function onCastSpell(creature, variant)
    return combat:execute(creature, variant)
end
 
Back
Top