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

(TFS 1.3) Need Exura Gran with non-variable heal

antonio664

Member
Joined
Jan 9, 2013
Messages
129
Reaction score
5
is it possible to remove random cure?

just changing with increasing Level and MagicLvevel?
 
In data/spells/scripts/healing/intense_healing.lua
Change this
Lua:
function onGetFormulaValues(player, level, magicLevel)
    local min = (level / 5) + (magicLevel *
    local max = (level / 5) + (magicLevel * 5.4) + 40
    return min, max
end
To this
Lua:
function onGetFormulaValues(player, level, magicLevel)
    local min = here_your_healing_value
    local max = here_your_healing_value
    return min, max
end
I guess
 
is it possible to remove random cure?

just changing with increasing Level and MagicLvevel?

this will will remove 'random cure', works with increasing level/magic level

change your data/spells/scripts/healing/intense_healing.lua to code below

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

function onGetFormulaValues(player, level, magicLevel)
    local min = (level / 5) + (magicLevel * 4.4) + 20
    local max = (level / 5) + (magicLevel * 4.4) + 20
    return min, max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant)
    return combat:execute(creature, variant)
end
 
In data/spells/scripts/healing/intense_healing.lua
Change this
Lua:
function onGetFormulaValues(player, level, magicLevel)
    local min = (level / 5) + (magicLevel *
    local max = (level / 5) + (magicLevel * 5.4) + 40
    return min, max
end
To this
Lua:
function onGetFormulaValues(player, level, magicLevel)
    local min = here_your_healing_value
    local max = here_your_healing_value
    return min, max
end
I guess

1588808424122.png
1588808372934.png


if removing local, it also doesn't work
 
You are missing ) in line 8
Use code tags instead of screenshots to make it easier for us to help you.
 
this will will remove 'random cure', works with increasing level/magic level

change your data/spells/scripts/healing/intense_healing.lua to code below

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

function onGetFormulaValues(player, level, magicLevel)
    local min = (level / 5) + (magicLevel * 4.4) + 20
    local max = (level / 5) + (magicLevel * 4.4) + 20
    return min, max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, variant)
    return combat:execute(creature, variant)
end
it works!

thank you everybody
 
Back
Top