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?
just changing with increasing Level and MagicLvevel?
exact. Cure constant.Predictable = constant
Return the same value for min and max. Maybe this will work. Haven't tested myself
I've been breaking my head for two days.Just take a look at link that @M0ustafa provided for you and think a while. You should come up with solution
data/spells/scripts/healing/intense_healing.lua
function onGetFormulaValues(player, level, magicLevel)
local min = (level / 5) + (magicLevel *
local max = (level / 5) + (magicLevel * 5.4) + 40
return min, max
end
function onGetFormulaValues(player, level, magicLevel)
local min = here_your_healing_value
local max = here_your_healing_value
return min, max
end
is it possible to remove random cure?
just changing with increasing Level and MagicLvevel?
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
Indata/spells/scripts/healing/intense_healing.lua
Change this
To thisLua:function onGetFormulaValues(player, level, magicLevel) local min = (level / 5) + (magicLevel * local max = (level / 5) + (magicLevel * 5.4) + 40 return min, max end
I guessLua:function onGetFormulaValues(player, level, magicLevel) local min = here_your_healing_value local max = here_your_healing_value return min, max end
it works!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