Hello guys, im new here in otland...
im developing a project and i need your help
i have this script
and it doesn't work, what i want it that it heals both mana and hp
i already have one manarune and one superuh and i did a mix of both but didn't work, could you help me plz?
thanks!!
TFS 0.3
im developing a project and i need your help
i have this script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
function onGetFormulaValues(cid, level, maglevel)
local min = (getCreatureMaxMana(cid) / 100) * 8
local max = (getCreatureMaxMana(cid) / 100) * 11
return min, max
end
function onGetFormulaValues(cid, level, maglevel)
local min = (getCreatureMaxHealth(cid) / 100) * 15
local max = (getCreatureMaxHealth(cid) / 100) * 20
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
and it doesn't work, what i want it that it heals both mana and hp
i already have one manarune and one superuh and i did a mix of both but didn't work, could you help me plz?
thanks!!
TFS 0.3