alguem pode me ajudar , essa magia esta durando tudo q fika do lado dela até npc, eu queria que curace somente player q tiver envolta dela
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_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, 100, -1, 125, 5, 5, 7.6, 9.6)
function onGetFormulaValues(cid, level, maglevel)
local min = ((level/5)+(maglevel*7.6)+100)
local max = ((level/5)+(maglevel*9.6)+125)
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end