bobtuck
New Member
- Joined
- Mar 1, 2008
- Messages
- 41
- Reaction score
- 0
I must be a newb I can't seem to figure out how to change the current uh to heal a certain amount like potions do.
I dont want magic level or level to affect the healing. just want a min and a max. must be simple but I dont know i've screwed up so many times I thought i'd ask for help
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 0 + maglevel * 0) * 0
max = (level * 0 + maglevel * 0) * 0
if min < 800 then
min = 1000
end
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I dont want magic level or level to affect the healing. just want a min and a max. must be simple but I dont know i've screwed up so many times I thought i'd ask for help