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

Ultimate Healing Rune tfs 1.2

Penthelisea

Member
Joined
Nov 13, 2011
Messages
61
Reaction score
16
Hello brother i have this on uh:


local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

function onGetFormulaValues(player, level, maglevel)
local base = 250
local variation = 0

local value = math.random(-variation, variation) + base
local formula = 3 * maglevel + (2 * level)

return formula * value / 100
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant, isHotkey)
creature:removeCondition(CONDITION_PARALYZE)
return combat:execute(creature, variant)
end


i tested with ek ml 5 and ever heal 172,172,172 tested with paladin and ever heal 125,125,125

but intense healing is :

local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

function onGetFormulaValues(player, level, maglevel)
local base = 70
local variation = 30

local value = math.random(-variation, variation) + base
local formula = 3 * maglevel + (2 * level)

return formula * value / 100
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant)
creature:removeCondition(CONDITION_PARALYZE)
return combat:execute(creature, variant)
end


maybe i need change variation on uh? THANKS A LOT BROTHERS^^
 
Formula is correct, UH had no variation. You should only add this (bold) line:

local value = math.random(-variation, variation) + base
local formula = 3 * maglevel + (2 * level)
if formula < 100 then formula = 100 end

return formula * value / 100

So that minimum healing will always be 250, as it should. IH should have that line as well.
 
Last edited:
now i have this :
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

function onGetFormulaValues(player, level, maglevel)
local base = 250
local variation = 0

local value = math.random(-variation, variation) + base
local formula = 3 * maglevel + (2 * level)
if formula < 100 then formula = 100

return formula * value / 100

end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant, isHotkey)
creature:removeCondition(CONDITION_PARALYZE)
return combat:execute(creature, variant)
end


and can't use uh now :(
 
Cause that's how UH works, when you have low spell power you will always heal 250. Try with some high level.
If you had any other purpose in mind, you did not specify it.
 
Back
Top