L
LordVissie
Guest
Hey guys, I got the 2 problems with my script as the title says.
here is the script:
Hope someone can help me.
Kr,
LordVissie
btw. I use cryingdamson 0.3.6 (8.60) V8.2.
here is the script:
Code:
local combat = createCombatObject()
pzprotected = true,
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 2.9 + maglevel * 1)
max = (level * 4.2 + maglevel * 1)
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Hope someone can help me.
Kr,
LordVissie
btw. I use cryingdamson 0.3.6 (8.60) V8.2.